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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 void onDrawRect(const SkRect&, const SkPaint&) override; | 171 void onDrawRect(const SkRect&, const SkPaint&) override; |
172 void onDrawOval(const SkRect&, const SkPaint&) override; | 172 void onDrawOval(const SkRect&, const SkPaint&) override; |
173 void onDrawRRect(const SkRRect&, const SkPaint&) override; | 173 void onDrawRRect(const SkRRect&, const SkPaint&) override; |
174 void onDrawPath(const SkPath&, const SkPaint&) override; | 174 void onDrawPath(const SkPath&, const SkPaint&) override; |
175 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 175 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
176 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 176 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
177 DrawBitmapRectFlags flags) override; | 177 DrawBitmapRectFlags flags) override; |
178 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 178 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
179 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 179 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
180 const SkPaint*) override; | 180 const SkPaint*) override; |
| 181 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds
t, |
| 182 const SkPaint*) override; |
181 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 183 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
182 const SkPaint*) override; | 184 const SkPaint*) override; |
183 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; | 185 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; |
184 void onDrawVertices(VertexMode vmode, int vertexCount, | 186 void onDrawVertices(VertexMode vmode, int vertexCount, |
185 const SkPoint vertices[], const SkPoint texs[], | 187 const SkPoint vertices[], const SkPoint texs[], |
186 const SkColor colors[], SkXfermode* xmode, | 188 const SkColor colors[], SkXfermode* xmode, |
187 const uint16_t indices[], int indexCount, | 189 const uint16_t indices[], int indexCount, |
188 const SkPaint&) override; | 190 const SkPaint&) override; |
189 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], int count, | 191 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], int count, |
190 SkXfermode::Mode, const SkRect* cullRect, const SkPaint*) o
verride; | 192 SkXfermode::Mode, const SkRect* cullRect, const SkPaint*) o
verride; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 252 |
251 mutable SkISize fCachedCanvasSize; | 253 mutable SkISize fCachedCanvasSize; |
252 mutable bool fCachedCanvasSizeDirty; | 254 mutable bool fCachedCanvasSizeDirty; |
253 | 255 |
254 friend class SkDeferredCanvasTester; // for unit testing | 256 friend class SkDeferredCanvasTester; // for unit testing |
255 typedef SkCanvas INHERITED; | 257 typedef SkCanvas INHERITED; |
256 }; | 258 }; |
257 | 259 |
258 | 260 |
259 #endif | 261 #endif |
OLD | NEW |