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