Lines Matching +full:skia +full:- +full:public
4 * Use of this source code is governed by a BSD-style license that can be
26 TRACE_EVENT_OBJECT_CREATED_WITH_ID("skia.objects", this->typeName(), this); in TracingShape()
29 TRACE_EVENT_OBJECT_DELETED_WITH_ID("skia.objects", this->typeName(), this); in ~TracingShape()
38 // base-class constructor/destructor where the actual type name isn't known yet. That's in traceSnapshot()
41 // Skia's JSON tracer handles this automatically, so SNAPSHOT macros can simply use the in traceSnapshot()
43 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("skia.objects", this->typeName(), this, in traceSnapshot()
44 TRACE_STR_COPY(this->toString().c_str())); in traceSnapshot()
51 struct TracingCircle : public TracingShape {
62 struct TracingRect : public TracingShape {
89 TRACE_EVENT0("skia", TRACE_FUNC); in test_trace_simple()
93 // can be any simple type. Strings need to be static/literal - we just copy pointers. in test_trace_simple()
95 TRACE_EVENT1("skia", "Nested work", in test_trace_simple()
104 TRACE_EVENT1("skia", "Dynamic String", "message", TRACE_STR_COPY(message.c_str())); in test_trace_simple()
110 TRACE_EVENT0("skia", TRACE_FUNC); in test_trace_counters()
113 TRACE_EVENT0("skia", "Single Counter"); in test_trace_counters()
115 // Counter macros allow recording a named value (which must be a 32-bit integer). in test_trace_counters()
119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
125 TRACE_EVENT0("skia", "Independent Counters"); in test_trace_counters()
130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
131 TRACE_COUNTER1("skia", "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
137 TRACE_EVENT0("skia", "Stacked Counters"); in test_trace_counters()
143 TRACE_COUNTER2("skia", "trig", in test_trace_counters()
152 TRACE_EVENT0("skia", TRACE_FUNC); in test_trace_objects()
158 circle->traceSnapshot(); in test_trace_objects()
163 rect->traceSnapshot(); in test_trace_objects()
167 circle->fCenter.offset(10, 10); in test_trace_objects()
168 circle->traceSnapshot(); in test_trace_objects()
171 // Other events (duration or instant) can refer directly to objects. For Skia's JSON in test_trace_objects()
174 TRACE_EVENT1("skia", "Processing Shape", "#shape", circle); in test_trace_objects()