OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkRecorder_DEFINED | 8 #ifndef SkRecorder_DEFINED |
9 #define SkRecorder_DEFINED | 9 #define SkRecorder_DEFINED |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const SkRect& dst, | 42 const SkRect& dst, |
43 const SkPaint* paint = NULL, | 43 const SkPaint* paint = NULL, |
44 DrawBitmapRectFlags flags = kNone_DrawBitmapRectFl
ag) SK_OVERRIDE; | 44 DrawBitmapRectFlags flags = kNone_DrawBitmapRectFl
ag) SK_OVERRIDE; |
45 void drawBitmapMatrix(const SkBitmap& bitmap, | 45 void drawBitmapMatrix(const SkBitmap& bitmap, |
46 const SkMatrix& m, | 46 const SkMatrix& m, |
47 const SkPaint* paint = NULL) SK_OVERRIDE; | 47 const SkPaint* paint = NULL) SK_OVERRIDE; |
48 void drawBitmapNine(const SkBitmap& bitmap, | 48 void drawBitmapNine(const SkBitmap& bitmap, |
49 const SkIRect& center, | 49 const SkIRect& center, |
50 const SkRect& dst, | 50 const SkRect& dst, |
51 const SkPaint* paint = NULL) SK_OVERRIDE; | 51 const SkPaint* paint = NULL) SK_OVERRIDE; |
| 52 virtual void drawImage(const SkImage* image, SkScalar left, SkScalar top, |
| 53 const SkPaint* paint = NULL) SK_OVERRIDE; |
| 54 virtual void drawImageRect(const SkImage* image, const SkRect* src, |
| 55 const SkRect& dst, |
| 56 const SkPaint* paint = NULL) SK_OVERRIDE; |
52 void drawSprite(const SkBitmap& bitmap, | 57 void drawSprite(const SkBitmap& bitmap, |
53 int left, | 58 int left, |
54 int top, | 59 int top, |
55 const SkPaint* paint = NULL) SK_OVERRIDE; | 60 const SkPaint* paint = NULL) SK_OVERRIDE; |
56 void drawVertices(VertexMode vmode, | 61 void drawVertices(VertexMode vmode, |
57 int vertexCount, | 62 int vertexCount, |
58 const SkPoint vertices[], | 63 const SkPoint vertices[], |
59 const SkPoint texs[], | 64 const SkPoint texs[], |
60 const SkColor colors[], | 65 const SkColor colors[], |
61 SkXfermode* xmode, | 66 SkXfermode* xmode, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 return devBounds; | 135 return devBounds; |
131 } | 136 } |
132 | 137 |
133 SkRecord* fRecord; | 138 SkRecord* fRecord; |
134 | 139 |
135 int fSaveLayerCount; | 140 int fSaveLayerCount; |
136 SkTDArray<SkBool8> fSaveIsSaveLayer; | 141 SkTDArray<SkBool8> fSaveIsSaveLayer; |
137 }; | 142 }; |
138 | 143 |
139 #endif//SkRecorder_DEFINED | 144 #endif//SkRecorder_DEFINED |
OLD | NEW |