OLD | NEW |
1 // Copyright (c) 2014 Google Inc. | 1 // Copyright (c) 2014 Google Inc. |
2 // | 2 // |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 // This header file defines implementation details of how the trace macros in | 6 // This header file defines implementation details of how the trace macros in |
7 // SkTraceEventCommon.h collect and store trace events. Anything not | 7 // SkTraceEventCommon.h collect and store trace events. Anything not |
8 // implementation-specific should go in SkTraceEventCommon.h instead of here. | 8 // implementation-specific should go in SkTraceEventCommon.h instead of here. |
9 | 9 |
10 #ifndef SkTraceEvent_DEFINED | 10 #ifndef SkTraceEvent_DEFINED |
11 #define SkTraceEvent_DEFINED | 11 #define SkTraceEvent_DEFINED |
12 | 12 |
13 #include "SkAtomics.h" | 13 #include "../private/SkAtomics.h" |
14 #include "SkEventTracer.h" | 14 #include "SkEventTracer.h" |
15 #include "SkTraceEventCommon.h" | 15 #include "SkTraceEventCommon.h" |
16 | 16 |
17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
18 // Implementation specific tracing API definitions. | 18 // Implementation specific tracing API definitions. |
19 | 19 |
20 // By default, const char* argument values are assumed to have long-lived scope | 20 // By default, const char* argument values are assumed to have long-lived scope |
21 // and will not be copied. Use this macro to force a const char* to be copied. | 21 // and will not be copied. Use this macro to force a const char* to be copied. |
22 #define TRACE_STR_COPY(str) \ | 22 #define TRACE_STR_COPY(str) \ |
23 skia::tracing_internals::TraceStringWithCopy(str) | 23 skia::tracing_internals::TraceStringWithCopy(str) |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 } | 525 } |
526 | 526 |
527 private: | 527 private: |
528 const char* previous_state_; | 528 const char* previous_state_; |
529 }; | 529 }; |
530 | 530 |
531 } // namespace tracing_internals | 531 } // namespace tracing_internals |
532 } // namespace skia | 532 } // namespace skia |
533 | 533 |
534 #endif | 534 #endif |
OLD | NEW |