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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 DrawBitmapRectFlags flags) SK_OVERRIDE; | 179 DrawBitmapRectFlags flags) SK_OVERRIDE; |
180 #if 0 | 180 #if 0 |
181 // rely on conversion to bitmap(for now) | 181 // rely on conversion to bitmap(for now) |
182 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) SK_OVERRIDE; | 182 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) SK_OVERRIDE; |
183 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 183 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
184 const SkPaint*) SK_OVERRIDE; | 184 const SkPaint*) SK_OVERRIDE; |
185 #endif | 185 #endif |
186 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 186 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
187 const SkPaint*) SK_OVERRIDE; | 187 const SkPaint*) SK_OVERRIDE; |
188 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE
RRIDE; | 188 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE
RRIDE; |
| 189 void onDrawSprite(const SkImage&, int left, int top, const SkPaint*) SK_OVER
RIDE; |
189 void onDrawVertices(VertexMode vmode, int vertexCount, | 190 void onDrawVertices(VertexMode vmode, int vertexCount, |
190 const SkPoint vertices[], const SkPoint texs[], | 191 const SkPoint vertices[], const SkPoint texs[], |
191 const SkColor colors[], SkXfermode* xmode, | 192 const SkColor colors[], SkXfermode* xmode, |
192 const uint16_t indices[], int indexCount, | 193 const uint16_t indices[], int indexCount, |
193 const SkPaint&) SK_OVERRIDE; | 194 const SkPaint&) SK_OVERRIDE; |
194 | 195 |
195 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; | 196 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
196 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; | 197 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
197 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; | 198 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
198 void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 199 void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 254 |
254 mutable SkISize fCachedCanvasSize; | 255 mutable SkISize fCachedCanvasSize; |
255 mutable bool fCachedCanvasSizeDirty; | 256 mutable bool fCachedCanvasSizeDirty; |
256 | 257 |
257 friend class SkDeferredCanvasTester; // for unit testing | 258 friend class SkDeferredCanvasTester; // for unit testing |
258 typedef SkCanvas INHERITED; | 259 typedef SkCanvas INHERITED; |
259 }; | 260 }; |
260 | 261 |
261 | 262 |
262 #endif | 263 #endif |
OLD | NEW |