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 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 onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 181 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
182 const SkPaint*) override; | 182 const SkPaint*) override; |
183 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; | 183 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; |
184 void onDrawVertices(VertexMode vmode, int vertexCount, | 184 void onDrawVertices(VertexMode vmode, int vertexCount, |
185 const SkPoint vertices[], const SkPoint texs[], | 185 const SkPoint vertices[], const SkPoint texs[], |
186 const SkColor colors[], SkXfermode* xmode, | 186 const SkColor colors[], SkXfermode* xmode, |
187 const uint16_t indices[], int indexCount, | 187 const uint16_t indices[], int indexCount, |
188 const SkPaint&) override; | 188 const SkPaint&) override; |
| 189 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], int count, |
| 190 SkXfermode::Mode, const SkRect* cullRect, const SkPaint*) o
verride; |
189 | 191 |
190 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 192 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
191 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 193 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
192 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 194 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
193 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 195 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
194 | 196 |
195 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 197 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
196 | 198 |
197 public: | 199 public: |
198 class NotificationClient { | 200 class NotificationClient { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 250 |
249 mutable SkISize fCachedCanvasSize; | 251 mutable SkISize fCachedCanvasSize; |
250 mutable bool fCachedCanvasSizeDirty; | 252 mutable bool fCachedCanvasSizeDirty; |
251 | 253 |
252 friend class SkDeferredCanvasTester; // for unit testing | 254 friend class SkDeferredCanvasTester; // for unit testing |
253 typedef SkCanvas INHERITED; | 255 typedef SkCanvas INHERITED; |
254 }; | 256 }; |
255 | 257 |
256 | 258 |
257 #endif | 259 #endif |
OLD | NEW |