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 29 matching lines...) Expand all Loading... |
40 kDrawOval_Verb, | 40 kDrawOval_Verb, |
41 kDrawRect_Verb, | 41 kDrawRect_Verb, |
42 kDrawRRect_Verb, | 42 kDrawRRect_Verb, |
43 kDrawDRRect_Verb, | 43 kDrawDRRect_Verb, |
44 kDrawPath_Verb, | 44 kDrawPath_Verb, |
45 kDrawBitmap_Verb, | 45 kDrawBitmap_Verb, |
46 kDrawText_Verb, | 46 kDrawText_Verb, |
47 kDrawPicture_Verb, | 47 kDrawPicture_Verb, |
48 kDrawVertices_Verb, | 48 kDrawVertices_Verb, |
49 kDrawPatch_Verb, | 49 kDrawPatch_Verb, |
50 kDrawData_Verb, | 50 kDrawData_Verb, // obsolete |
51 | 51 |
52 kBeginCommentGroup_Verb, | 52 kBeginCommentGroup_Verb, |
53 kAddComment_Verb, | 53 kAddComment_Verb, |
54 kEndCommentGroup_Verb, | 54 kEndCommentGroup_Verb, |
55 | 55 |
56 kCull_Verb | 56 kCull_Verb |
57 }; | 57 }; |
58 | 58 |
59 /** Subclasses of this are installed on the DumpCanvas, and then called for | 59 /** Subclasses of this are installed on the DumpCanvas, and then called for |
60 each drawing command. | 60 each drawing command. |
(...skipping 26 matching lines...) Expand all Loading... |
87 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 87 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
88 const SkRect& dst, const SkPaint* paint, | 88 const SkRect& dst, const SkPaint* paint, |
89 DrawBitmapRectFlags flags) SK_OVERRIDE; | 89 DrawBitmapRectFlags flags) SK_OVERRIDE; |
90 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 90 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
91 const SkPaint* paint) SK_OVERRIDE; | 91 const SkPaint* paint) SK_OVERRIDE; |
92 virtual void drawVertices(VertexMode vmode, int vertexCount, | 92 virtual void drawVertices(VertexMode vmode, int vertexCount, |
93 const SkPoint vertices[], const SkPoint texs[], | 93 const SkPoint vertices[], const SkPoint texs[], |
94 const SkColor colors[], SkXfermode* xmode, | 94 const SkColor colors[], SkXfermode* xmode, |
95 const uint16_t indices[], int indexCount, | 95 const uint16_t indices[], int indexCount, |
96 const SkPaint& paint) SK_OVERRIDE; | 96 const SkPaint& paint) SK_OVERRIDE; |
97 virtual void drawData(const void*, size_t) SK_OVERRIDE; | |
98 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 97 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
99 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 98 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
100 virtual void endCommentGroup() SK_OVERRIDE; | 99 virtual void endCommentGroup() SK_OVERRIDE; |
101 | 100 |
102 protected: | 101 protected: |
103 virtual void willSave() SK_OVERRIDE; | 102 virtual void willSave() SK_OVERRIDE; |
104 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 103 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
105 virtual void willRestore() SK_OVERRIDE; | 104 virtual void willRestore() SK_OVERRIDE; |
106 | 105 |
107 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 106 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 public: | 164 public: |
166 SkDebugfDumper(); | 165 SkDebugfDumper(); |
167 | 166 |
168 private: | 167 private: |
169 typedef SkFormatDumper INHERITED; | 168 typedef SkFormatDumper INHERITED; |
170 }; | 169 }; |
171 | 170 |
172 #endif | 171 #endif |
173 | 172 |
174 #endif | 173 #endif |
OLD | NEW |