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 | |
commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 11 | #include "SkTraceEvent.h" |
| 12 | |
Robert Phillips | 646e429 | 2017-06-13 12:44:56 -0400 | [diff] [blame] | 13 | class GrContext; |
| 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) \ |
| 19 | GR_AUDIT_TRAIL_AUTO_FRAME(context->contextPriv().getAuditTrail(), classname "::" op); \ |
| 20 | TRACE_EVENT0("skia.gpu", classname "::" op) |
egdaniel | 93a37bc | 2014-07-21 13:47:57 -0700 | [diff] [blame] | 21 | |
commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 22 | #endif |