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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 183 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
184 const SkPaint*) override; | 184 const SkPaint*) override; |
185 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; |
186 void onDrawVertices(VertexMode vmode, int vertexCount, | 186 void onDrawVertices(VertexMode vmode, int vertexCount, |
187 const SkPoint vertices[], const SkPoint texs[], | 187 const SkPoint vertices[], const SkPoint texs[], |
188 const SkColor colors[], SkXfermode* xmode, | 188 const SkColor colors[], SkXfermode* xmode, |
189 const uint16_t indices[], int indexCount, | 189 const uint16_t indices[], int indexCount, |
190 const SkPaint&) override; | 190 const SkPaint&) override; |
191 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, |
192 SkXfermode::Mode, const SkRect* cullRect, const SkPaint*) o
verride; | 192 SkXfermode::Mode, const SkRect* cullRect, const SkPaint*) o
verride; |
| 193 void onDrawLitAtlas(const SkImage*, const SkRSXform[], |
| 194 const SkRect diffTex[], const SkRect normTex[], |
| 195 const SkColor[], int count, |
| 196 SkXfermode::Mode, const SkRect* cullRect, |
| 197 const SkPaint*, const SkLight lights[], int numLights) o
verride; |
193 | 198 |
194 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 199 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
195 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 200 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
196 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 201 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
197 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 202 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
198 | 203 |
199 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 204 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
200 | 205 |
201 public: | 206 public: |
202 class NotificationClient { | 207 class NotificationClient { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 257 |
253 mutable SkISize fCachedCanvasSize; | 258 mutable SkISize fCachedCanvasSize; |
254 mutable bool fCachedCanvasSizeDirty; | 259 mutable bool fCachedCanvasSizeDirty; |
255 | 260 |
256 friend class SkDeferredCanvasTester; // for unit testing | 261 friend class SkDeferredCanvasTester; // for unit testing |
257 typedef SkCanvas INHERITED; | 262 typedef SkCanvas INHERITED; |
258 }; | 263 }; |
259 | 264 |
260 | 265 |
261 #endif | 266 #endif |
OLD | NEW |