| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 void onDrawPaint(const SkPaint&) override; | 171 void onDrawPaint(const SkPaint&) override; |
| 172 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; | 172 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; |
| 173 void onDrawRect(const SkRect&, const SkPaint&) override; | 173 void onDrawRect(const SkRect&, const SkPaint&) override; |
| 174 void onDrawOval(const SkRect&, const SkPaint&) override; | 174 void onDrawOval(const SkRect&, const SkPaint&) override; |
| 175 void onDrawRRect(const SkRRect&, const SkPaint&) override; | 175 void onDrawRRect(const SkRRect&, const SkPaint&) override; |
| 176 void onDrawPath(const SkPath&, const SkPaint&) override; | 176 void onDrawPath(const SkPath&, const SkPaint&) override; |
| 177 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 177 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
| 178 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 178 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
| 179 DrawBitmapRectFlags flags) override; | 179 DrawBitmapRectFlags flags) override; |
| 180 #if 0 |
| 181 // rely on conversion to bitmap(for now) |
| 180 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 182 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
| 181 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 183 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
| 182 const SkPaint*) override; | 184 const SkPaint*) override; |
| 185 #endif |
| 183 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 186 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
| 184 const SkPaint*) override; | 187 const SkPaint*) override; |
| 185 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; | 188 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; |
| 186 void onDrawVertices(VertexMode vmode, int vertexCount, | 189 void onDrawVertices(VertexMode vmode, int vertexCount, |
| 187 const SkPoint vertices[], const SkPoint texs[], | 190 const SkPoint vertices[], const SkPoint texs[], |
| 188 const SkColor colors[], SkXfermode* xmode, | 191 const SkColor colors[], SkXfermode* xmode, |
| 189 const uint16_t indices[], int indexCount, | 192 const uint16_t indices[], int indexCount, |
| 190 const SkPaint&) override; | 193 const SkPaint&) override; |
| 191 | 194 |
| 192 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 195 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 253 |
| 251 mutable SkISize fCachedCanvasSize; | 254 mutable SkISize fCachedCanvasSize; |
| 252 mutable bool fCachedCanvasSizeDirty; | 255 mutable bool fCachedCanvasSizeDirty; |
| 253 | 256 |
| 254 friend class SkDeferredCanvasTester; // for unit testing | 257 friend class SkDeferredCanvasTester; // for unit testing |
| 255 typedef SkCanvas INHERITED; | 258 typedef SkCanvas INHERITED; |
| 256 }; | 259 }; |
| 257 | 260 |
| 258 | 261 |
| 259 #endif | 262 #endif |
| OLD | NEW |