| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 const SkPaint& paint) SK_OVERRIDE; | 193 const SkPaint& paint) SK_OVERRIDE; |
| 194 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | 194 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; |
| 195 virtual void drawVertices(VertexMode vmode, int vertexCount, | 195 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 196 const SkPoint vertices[], const SkPoint texs[], | 196 const SkPoint vertices[], const SkPoint texs[], |
| 197 const SkColor colors[], SkXfermode* xmode, | 197 const SkColor colors[], SkXfermode* xmode, |
| 198 const uint16_t indices[], int indexCount, | 198 const uint16_t indices[], int indexCount, |
| 199 const SkPaint& paint) SK_OVERRIDE; | 199 const SkPaint& paint) SK_OVERRIDE; |
| 200 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; | 200 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; |
| 201 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 201 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
| 202 | 202 |
| 203 protected: |
| 204 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, |
| 205 const SkPaint&) SK_OVERRIDE; |
| 206 |
| 203 public: | 207 public: |
| 204 class NotificationClient { | 208 class NotificationClient { |
| 205 public: | 209 public: |
| 206 virtual ~NotificationClient() {} | 210 virtual ~NotificationClient() {} |
| 207 | 211 |
| 208 /** | 212 /** |
| 209 * Called before executing one or several draw commands, which means | 213 * Called before executing one or several draw commands, which means |
| 210 * once per flush when deferred rendering is enabled. | 214 * once per flush when deferred rendering is enabled. |
| 211 */ | 215 */ |
| 212 virtual void prepareForDraw() {} | 216 virtual void prepareForDraw() {} |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 void validate() const; | 251 void validate() const; |
| 248 void init(); | 252 void init(); |
| 249 bool fDeferredDrawing; | 253 bool fDeferredDrawing; |
| 250 | 254 |
| 251 friend class SkDeferredCanvasTester; // for unit testing | 255 friend class SkDeferredCanvasTester; // for unit testing |
| 252 typedef SkCanvas INHERITED; | 256 typedef SkCanvas INHERITED; |
| 253 }; | 257 }; |
| 254 | 258 |
| 255 | 259 |
| 256 #endif | 260 #endif |
| OLD | NEW |