| 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" | |
| 12 #include "GrDrawTarget.h" | 11 #include "GrDrawTarget.h" |
| 13 #include "GrGpu.h" | 12 #include "GrGpu.h" |
| 14 #include "GrTraceMarker.h" | 13 #include "GrTraceMarker.h" |
| 15 #include "SkTLazy.h" | 14 #include "SkTLazy.h" |
| 16 #include "SkTraceEvent.h" | 15 #include "SkTraceEvent.h" |
| 17 | 16 |
| 18 /** | 17 /** |
| 19 * 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 |
| 20 */ | 19 */ |
| 21 class GrGpuTraceMarkerGenerator : public ::SkNoncopyable { | 20 class GrGpuTraceMarkerGenerator : public ::SkNoncopyable { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 GrGpuTraceMarkerGeneratorContext SK_MACRO_APPEND_LINE(TMG)(context);
\ | 122 GrGpuTraceMarkerGeneratorContext SK_MACRO_APPEND_LINE(TMG)(context);
\ |
| 124 bool SK_MACRO_APPEND_LINE(gpuTracingEnabled);
\ | 123 bool SK_MACRO_APPEND_LINE(gpuTracingEnabled);
\ |
| 125 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("skia.gpu"),
\ | 124 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("skia.gpu"),
\ |
| 126 &SK_MACRO_APPEND_LINE(gpuTracingEnabled)
); \ | 125 &SK_MACRO_APPEND_LINE(gpuTracingEnabled)
); \ |
| 127 if (SK_MACRO_APPEND_LINE(gpuTracingEnabled)) {
\ | 126 if (SK_MACRO_APPEND_LINE(gpuTracingEnabled)) {
\ |
| 128 SK_MACRO_APPEND_LINE(TMG).initialize(name, &name_counter);
\ | 127 SK_MACRO_APPEND_LINE(TMG).initialize(name, &name_counter);
\ |
| 129 }
| 128 }
|
| 130 #endif | 129 #endif |
| 131 | 130 |
| 132 #endif | 131 #endif |
| OLD | NEW |