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 Osman | b4d1873 | 2017-07-27 14:58:18 -0400 | [diff] [blame] | 18 | #define GR_CREATE_TRACE_MARKER_CONTEXT(classname, op, context) \ |
Robert Phillips | 0c4b7b1 | 2018-03-06 08:20:37 -0500 | [diff] [blame] | 19 | GR_AUDIT_TRAIL_AUTO_FRAME(context->contextPriv().getAuditTrail(), classname "::" op); \ |
Derek Sollenberger | edf3dc0 | 2017-08-16 10:35:28 -0400 | [diff] [blame] | 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 |