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 11 #include "src/core/SkTraceEvent.h" 12 13 #include "src/gpu/GrAuditTrail.h" 14 15 class GrContext; 16 17 /** 18 * Context level GrTracing macros, classname and op are const char*, context is GrContext 19 */ 20 #define GR_CREATE_TRACE_MARKER_CONTEXT(classname, op, context) \ 21 GR_AUDIT_TRAIL_AUTO_FRAME(context->priv().auditTrail(), classname "::" op); \ 22 TRACE_EVENT0("skia.gpu", classname "::" op) 23 #endif 24