aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTracing.h
blob: 6a8ded7bbe8a36fae7e48e48cf08a13ae67e11cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrTracing_DEFINED
#define GrTracing_DEFINED

#include "SkTraceEvent.h"

class GrContext;

/**
 * Context level GrTracing macros, classname and op are const char*, context is GrContext
 */
#define GR_CREATE_TRACE_MARKER_CONTEXT(classname, op, context)               \
    GR_AUDIT_TRAIL_AUTO_FRAME(context->contextPriv().getAuditTrail(), classname "::" op);  \
    TRACE_EVENT0("skia.gpu", classname "::" op);

#endif