| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrTracing_DEFINED | 8 #ifndef GrTracing_DEFINED |
| 9 #define GrTracing_DEFINED | 9 #define GrTracing_DEFINED |
| 10 | 10 |
| 11 #include "GrBufferedDrawTarget.h" |
| 11 #include "GrDrawTarget.h" | 12 #include "GrDrawTarget.h" |
| 12 #include "GrGpu.h" | 13 #include "GrGpu.h" |
| 13 #include "GrInOrderDrawBuffer.h" | |
| 14 #include "GrTraceMarker.h" | 14 #include "GrTraceMarker.h" |
| 15 #include "SkTraceEvent.h" | 15 #include "SkTraceEvent.h" |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Marker generation class used for adding and removing markers around code bloc
ks | 18 * Marker generation class used for adding and removing markers around code bloc
ks |
| 19 */ | 19 */ |
| 20 class GrGpuTraceMarkerGenerator : public ::SkNoncopyable { | 20 class GrGpuTraceMarkerGenerator : public ::SkNoncopyable { |
| 21 public: | 21 public: |
| 22 GrGpuTraceMarkerGenerator(GrDrawTarget* target) : fTarget(target) {} | 22 GrGpuTraceMarkerGenerator(GrDrawTarget* target) : fTarget(target) {} |
| 23 | 23 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 GrGpuTraceMarkerGeneratorContext SK_MACRO_APPEND_LINE(TMG)(context);
\ | 128 GrGpuTraceMarkerGeneratorContext SK_MACRO_APPEND_LINE(TMG)(context);
\ |
| 129 bool SK_MACRO_APPEND_LINE(gpuTracingEnabled);
\ | 129 bool SK_MACRO_APPEND_LINE(gpuTracingEnabled);
\ |
| 130 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("skia.gpu"),
\ | 130 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("skia.gpu"),
\ |
| 131 &SK_MACRO_APPEND_LINE(gpuTracingEnabled)
); \ | 131 &SK_MACRO_APPEND_LINE(gpuTracingEnabled)
); \ |
| 132 if (SK_MACRO_APPEND_LINE(gpuTracingEnabled)) {
\ | 132 if (SK_MACRO_APPEND_LINE(gpuTracingEnabled)) {
\ |
| 133 SK_MACRO_APPEND_LINE(TMG).initialize(name, &name_counter);
\ | 133 SK_MACRO_APPEND_LINE(TMG).initialize(name, &name_counter);
\ |
| 134 }
| 134 }
|
| 135 #endif | 135 #endif |
| 136 | 136 |
| 137 #endif | 137 #endif |
| OLD | NEW |