OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkDeferredCanvas_DEFINED | 8 #ifndef SkDeferredCanvas_DEFINED |
9 #define SkDeferredCanvas_DEFINED | 9 #define SkDeferredCanvas_DEFINED |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, | 157 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, |
158 SkScalar top, const SkPaint* paint) | 158 SkScalar top, const SkPaint* paint) |
159 SK_OVERRIDE; | 159 SK_OVERRIDE; |
160 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 160 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
161 const SkRect& dst, const SkPaint* paint, | 161 const SkRect& dst, const SkPaint* paint, |
162 DrawBitmapRectFlags flags) SK_OVERRIDE; | 162 DrawBitmapRectFlags flags) SK_OVERRIDE; |
163 | 163 |
164 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 164 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
165 const SkPaint* paint) SK_OVERRIDE; | 165 const SkPaint* paint) SK_OVERRIDE; |
166 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 166 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
167 const SkRect& dst, const SkPaint* paint) | 167 const SkRect& dst, const SkPaint* paint) SK_OVER
RIDE; |
168 SK_OVERRIDE; | 168 virtual void drawImage(const SkImage* image, SkScalar left, SkScalar top, |
| 169 const SkPaint* paint) SK_OVERRIDE; |
| 170 virtual void drawImageRect(const SkImage* image, const SkRect* src, |
| 171 const SkRect& dst, |
| 172 const SkPaint* paint) SK_OVERRIDE; |
169 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 173 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
170 const SkPaint* paint) SK_OVERRIDE; | 174 const SkPaint* paint) SK_OVERRIDE; |
171 virtual void drawVertices(VertexMode vmode, int vertexCount, | 175 virtual void drawVertices(VertexMode vmode, int vertexCount, |
172 const SkPoint vertices[], const SkPoint texs[], | 176 const SkPoint vertices[], const SkPoint texs[], |
173 const SkColor colors[], SkXfermode* xmode, | 177 const SkColor colors[], SkXfermode* xmode, |
174 const uint16_t indices[], int indexCount, | 178 const uint16_t indices[], int indexCount, |
175 const SkPaint& paint) SK_OVERRIDE; | 179 const SkPaint& paint) SK_OVERRIDE; |
176 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 180 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
177 | 181 |
178 protected: | 182 protected: |
(...skipping 11 matching lines...) Expand all Loading... |
190 const SkPaint&) SK_OVERRIDE; | 194 const SkPaint&) SK_OVERRIDE; |
191 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 195 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
192 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 196 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
193 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 197 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
194 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 198 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
195 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 199 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
196 const SkPaint& paint) SK_OVERRIDE; | 200 const SkPaint& paint) SK_OVERRIDE; |
197 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 201 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
198 const SkPoint texCoords[4], SkXfermode* xmode, | 202 const SkPoint texCoords[4], SkXfermode* xmode, |
199 const SkPaint& paint) SK_OVERRIDE; | 203 const SkPaint& paint) SK_OVERRIDE; |
200 | 204 |
201 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 205 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
202 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 206 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
203 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 207 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
204 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 208 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
205 | 209 |
206 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 210 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
207 | 211 |
208 public: | 212 public: |
209 class NotificationClient { | 213 class NotificationClient { |
210 public: | 214 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 261 |
258 mutable SkISize fCachedCanvasSize; | 262 mutable SkISize fCachedCanvasSize; |
259 mutable bool fCachedCanvasSizeDirty; | 263 mutable bool fCachedCanvasSizeDirty; |
260 | 264 |
261 friend class SkDeferredCanvasTester; // for unit testing | 265 friend class SkDeferredCanvasTester; // for unit testing |
262 typedef SkCanvas INHERITED; | 266 typedef SkCanvas INHERITED; |
263 }; | 267 }; |
264 | 268 |
265 | 269 |
266 #endif | 270 #endif |
OLD | NEW |