commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrTracing_DEFINED |
| 9 | #define GrTracing_DEFINED |
| 10 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "src/core/SkTraceEvent.h" |
commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 12 | |
Greg Daniel | f91aeb2 | 2019-06-18 09:58:02 -0400 | [diff] [blame] | 13 | #include "src/gpu/GrAuditTrail.h" |
| 14 | |
commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 15 | /** |
joshualitt | 87a721b | 2016-01-12 12:59:28 -0800 | [diff] [blame] | 16 | * Context level GrTracing macros, classname and op are const char*, context is GrContext |
joshualitt | 87a721b | 2016-01-12 12:59:28 -0800 | [diff] [blame] | 17 | */ |
Brian Salomon | 2335644 | 2018-11-30 15:33:19 -0500 | [diff] [blame] | 18 | #define GR_CREATE_TRACE_MARKER_CONTEXT(classname, op, context) \ |
Robert Phillips | d684148 | 2019-02-08 10:29:20 -0500 | [diff] [blame] | 19 | GR_AUDIT_TRAIL_AUTO_FRAME(context->priv().auditTrail(), classname "::" op); \ |
Brian Salomon | 2335644 | 2018-11-30 15:33:19 -0500 | [diff] [blame] | 20 | TRACE_EVENT0("skia.gpu", classname "::" op) |
commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 21 | #endif |