• Home
  • Raw
  • Download

Lines Matching +full:skia +full:- +full:public

4  * Use of this source code is governed by a BSD-style license that can be
25 TRACE_EVENT_OBJECT_CREATED_WITH_ID("skia.objects", this->typeName(), this); in TracingShape()
28 TRACE_EVENT_OBJECT_DELETED_WITH_ID("skia.objects", this->typeName(), this); in ~TracingShape()
37 // base-class constructor/destructor where the actual type name isn't known yet. That's in traceSnapshot()
40 // Skia's JSON tracer handles this automatically, so SNAPSHOT macros can simply use the in traceSnapshot()
42 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("skia.objects", this->typeName(), this, in traceSnapshot()
43 TRACE_STR_COPY(this->toString().c_str())); in traceSnapshot()
50 struct TracingCircle : public TracingShape {
61 struct TracingRect : public TracingShape {
88 TRACE_EVENT0("skia", TRACE_FUNC); in test_trace_simple()
92 // can be any simple type. Strings need to be static/literal - we just copy pointers. in test_trace_simple()
94 TRACE_EVENT1("skia", "Nested work", in test_trace_simple()
103 TRACE_EVENT1("skia", "Dynamic String", "message", TRACE_STR_COPY(message.c_str())); in test_trace_simple()
109 TRACE_EVENT0("skia", TRACE_FUNC); in test_trace_counters()
112 TRACE_EVENT0("skia", "Single Counter"); in test_trace_counters()
114 // Counter macros allow recording a named value (which must be a 32-bit integer). in test_trace_counters()
118 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
124 TRACE_EVENT0("skia", "Independent Counters"); in test_trace_counters()
131 TRACE_COUNTER1("skia", "sin", sin * 1000.0f + 1000.0f); in test_trace_counters()
132 TRACE_COUNTER1("skia", "cos", cos * 1000.0f + 1000.0f); in test_trace_counters()
138 TRACE_EVENT0("skia", "Stacked Counters"); in test_trace_counters()
146 TRACE_COUNTER2("skia", "trig", in test_trace_counters()
155 TRACE_EVENT0("skia", TRACE_FUNC); in test_trace_objects()
161 circle->traceSnapshot(); in test_trace_objects()
166 rect->traceSnapshot(); in test_trace_objects()
170 circle->fCenter.offset(10, 10); in test_trace_objects()
171 circle->traceSnapshot(); in test_trace_objects()
174 // Other events (duration or instant) can refer directly to objects. For Skia's JSON in test_trace_objects()
177 TRACE_EVENT1("skia", "Processing Shape", "#shape", circle); in test_trace_objects()