OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkDumpCanvas_DEFINED | 8 #ifndef SkDumpCanvas_DEFINED |
9 #define SkDumpCanvas_DEFINED | 9 #define SkDumpCanvas_DEFINED |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 kDrawData_Verb, // obsolete | 50 kDrawData_Verb, // obsolete |
51 | 51 |
52 kCull_Verb | 52 kCull_Verb |
53 }; | 53 }; |
54 | 54 |
55 /** Subclasses of this are installed on the DumpCanvas, and then called for | 55 /** Subclasses of this are installed on the DumpCanvas, and then called for |
56 each drawing command. | 56 each drawing command. |
57 */ | 57 */ |
58 class Dumper : public SkRefCnt { | 58 class Dumper : public SkRefCnt { |
59 public: | 59 public: |
60 SK_DECLARE_INST_COUNT(Dumper) | 60 |
61 | 61 |
62 virtual void dump(SkDumpCanvas*, SkDumpCanvas::Verb, const char str[], | 62 virtual void dump(SkDumpCanvas*, SkDumpCanvas::Verb, const char str[], |
63 const SkPaint*) = 0; | 63 const SkPaint*) = 0; |
64 | 64 |
65 private: | 65 private: |
66 typedef SkRefCnt INHERITED; | 66 typedef SkRefCnt INHERITED; |
67 }; | 67 }; |
68 | 68 |
69 Dumper* getDumper() const { return fDumper; } | 69 Dumper* getDumper() const { return fDumper; } |
70 void setDumper(Dumper*); | 70 void setDumper(Dumper*); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 public: | 158 public: |
159 SkDebugfDumper(); | 159 SkDebugfDumper(); |
160 | 160 |
161 private: | 161 private: |
162 typedef SkFormatDumper INHERITED; | 162 typedef SkFormatDumper INHERITED; |
163 }; | 163 }; |
164 | 164 |
165 #endif | 165 #endif |
166 | 166 |
167 #endif | 167 #endif |
OLD | NEW |