GrTracing.h 614 B

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