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 SkProxyCanvas_DEFINED | 8 #ifndef SkProxyCanvas_DEFINED |
9 #define SkProxyCanvas_DEFINED | 9 #define SkProxyCanvas_DEFINED |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void drawImageRect(const SkImage* image, const SkRect* src, | 43 virtual void drawImageRect(const SkImage* image, const SkRect* src, |
44 const SkRect& dst, | 44 const SkRect& dst, |
45 const SkPaint* paint = NULL) SK_OVERRIDE; | 45 const SkPaint* paint = NULL) SK_OVERRIDE; |
46 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 46 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
47 const SkPaint* paint = NULL) SK_OVERRIDE; | 47 const SkPaint* paint = NULL) SK_OVERRIDE; |
48 virtual void drawVertices(VertexMode vmode, int vertexCount, | 48 virtual void drawVertices(VertexMode vmode, int vertexCount, |
49 const SkPoint vertices[], const SkPoint texs[], | 49 const SkPoint vertices[], const SkPoint texs[], |
50 const SkColor colors[], SkXfermode* xmode, | 50 const SkColor colors[], SkXfermode* xmode, |
51 const uint16_t indices[], int indexCount, | 51 const uint16_t indices[], int indexCount, |
52 const SkPaint& paint) SK_OVERRIDE; | 52 const SkPaint& paint) SK_OVERRIDE; |
53 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | |
54 | 53 |
55 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 54 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
56 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 55 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
57 virtual void endCommentGroup() SK_OVERRIDE; | 56 virtual void endCommentGroup() SK_OVERRIDE; |
58 | 57 |
59 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 58 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
60 | 59 |
61 protected: | 60 protected: |
62 virtual void willSave() SK_OVERRIDE; | 61 virtual void willSave() SK_OVERRIDE; |
63 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 62 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
(...skipping 24 matching lines...) Expand all Loading... |
88 | 87 |
89 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 88 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
90 | 89 |
91 private: | 90 private: |
92 SkCanvas* fProxy; | 91 SkCanvas* fProxy; |
93 | 92 |
94 typedef SkCanvas INHERITED; | 93 typedef SkCanvas INHERITED; |
95 }; | 94 }; |
96 | 95 |
97 #endif | 96 #endif |
OLD | NEW |