| 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 28 matching lines...) Expand all Loading... |
| 39 kDrawPoints_Verb, | 39 kDrawPoints_Verb, |
| 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 kDrawData_Verb, | 50 kDrawData_Verb, |
| 50 | 51 |
| 51 kBeginCommentGroup_Verb, | 52 kBeginCommentGroup_Verb, |
| 52 kAddComment_Verb, | 53 kAddComment_Verb, |
| 53 kEndCommentGroup_Verb, | 54 kEndCommentGroup_Verb, |
| 54 | 55 |
| 55 kCull_Verb | 56 kCull_Verb |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 /** 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 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 88 DrawBitmapRectFlags flags) SK_OVERRIDE; | 89 DrawBitmapRectFlags flags) SK_OVERRIDE; |
| 89 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 90 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
| 90 const SkPaint* paint) SK_OVERRIDE; | 91 const SkPaint* paint) SK_OVERRIDE; |
| 91 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 92 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
| 92 const SkPaint* paint) SK_OVERRIDE; | 93 const SkPaint* paint) SK_OVERRIDE; |
| 93 virtual void drawVertices(VertexMode vmode, int vertexCount, | 94 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 94 const SkPoint vertices[], const SkPoint texs[], | 95 const SkPoint vertices[], const SkPoint texs[], |
| 95 const SkColor colors[], SkXfermode* xmode, | 96 const SkColor colors[], SkXfermode* xmode, |
| 96 const uint16_t indices[], int indexCount, | 97 const uint16_t indices[], int indexCount, |
| 97 const SkPaint& paint) SK_OVERRIDE; | 98 const SkPaint& paint) SK_OVERRIDE; |
| 99 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; |
| 98 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 100 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
| 99 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 101 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
| 100 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 102 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
| 101 virtual void endCommentGroup() SK_OVERRIDE; | 103 virtual void endCommentGroup() SK_OVERRIDE; |
| 102 | 104 |
| 103 protected: | 105 protected: |
| 104 virtual void willSave() SK_OVERRIDE; | 106 virtual void willSave() SK_OVERRIDE; |
| 105 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 107 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
| 106 virtual void willRestore() SK_OVERRIDE; | 108 virtual void willRestore() SK_OVERRIDE; |
| 107 | 109 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 public: | 165 public: |
| 164 SkDebugfDumper(); | 166 SkDebugfDumper(); |
| 165 | 167 |
| 166 private: | 168 private: |
| 167 typedef SkFormatDumper INHERITED; | 169 typedef SkFormatDumper INHERITED; |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 #endif | 172 #endif |
| 171 | 173 |
| 172 #endif | 174 #endif |
| OLD | NEW |