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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
49 const SkPaint& paint) SK_OVERRIDE; | 49 const SkPaint& paint) SK_OVERRIDE; |
50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
51 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 51 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
52 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 52 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
53 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 53 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
54 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 54 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
55 const SkPaint* paint = NULL) SK_OVERRIDE; | 55 const SkPaint* paint = NULL) SK_OVERRIDE; |
56 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 56 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
57 const SkRect& dst, const SkPaint* paint = NULL)
SK_OVERRIDE; | 57 const SkRect& dst, const SkPaint* paint, |
| 58 DrawBitmapRectFlags flags) SK_OVERRIDE; |
58 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 59 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
59 const SkPaint* paint = NULL) SK_OVERRIDE; | 60 const SkPaint* paint = NULL) SK_OVERRIDE; |
60 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 61 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
61 const SkPaint* paint = NULL) SK_OVERRIDE; | 62 const SkPaint* paint = NULL) SK_OVERRIDE; |
62 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | 63 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
63 SkScalar y, const SkPaint& paint) SK_OVERRIDE; | 64 SkScalar y, const SkPaint& paint) SK_OVERRIDE; |
64 virtual void drawPosText(const void* text, size_t byteLength, | 65 virtual void drawPosText(const void* text, size_t byteLength, |
65 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; | 66 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; |
66 virtual void drawPosTextH(const void* text, size_t byteLength, | 67 virtual void drawPosTextH(const void* text, size_t byteLength, |
67 const SkScalar xpos[], SkScalar constY, | 68 const SkScalar xpos[], SkScalar constY, |
(...skipping 16 matching lines...) Expand all Loading... |
84 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; | 85 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; |
85 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 86 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
86 | 87 |
87 private: | 88 private: |
88 SkCanvas* fProxy; | 89 SkCanvas* fProxy; |
89 | 90 |
90 typedef SkCanvas INHERITED; | 91 typedef SkCanvas INHERITED; |
91 }; | 92 }; |
92 | 93 |
93 #endif | 94 #endif |
OLD | NEW |