| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const SkRect& dst, const SkPaint* paint) | 161 const SkRect& dst, const SkPaint* paint) |
| 162 SK_OVERRIDE; | 162 SK_OVERRIDE; |
| 163 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 163 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
| 164 const SkPaint* paint) SK_OVERRIDE; | 164 const SkPaint* paint) SK_OVERRIDE; |
| 165 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | 165 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; |
| 166 virtual void drawVertices(VertexMode vmode, int vertexCount, | 166 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 167 const SkPoint vertices[], const SkPoint texs[], | 167 const SkPoint vertices[], const SkPoint texs[], |
| 168 const SkColor colors[], SkXfermode* xmode, | 168 const SkColor colors[], SkXfermode* xmode, |
| 169 const uint16_t indices[], int indexCount, | 169 const uint16_t indices[], int indexCount, |
| 170 const SkPaint& paint) SK_OVERRIDE; | 170 const SkPaint& paint) SK_OVERRIDE; |
| 171 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; | |
| 172 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 171 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
| 173 | 172 |
| 174 protected: | 173 protected: |
| 175 virtual void willSave(SaveFlags) SK_OVERRIDE; | 174 virtual void willSave(SaveFlags) SK_OVERRIDE; |
| 176 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 175 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
| 177 virtual void willRestore() SK_OVERRIDE; | 176 virtual void willRestore() SK_OVERRIDE; |
| 178 | 177 |
| 179 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 178 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
| 180 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 179 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
| 181 | 180 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 void validate() const; | 240 void validate() const; |
| 242 void init(); | 241 void init(); |
| 243 bool fDeferredDrawing; | 242 bool fDeferredDrawing; |
| 244 | 243 |
| 245 friend class SkDeferredCanvasTester; // for unit testing | 244 friend class SkDeferredCanvasTester; // for unit testing |
| 246 typedef SkCanvas INHERITED; | 245 typedef SkCanvas INHERITED; |
| 247 }; | 246 }; |
| 248 | 247 |
| 249 | 248 |
| 250 #endif | 249 #endif |
| OLD | NEW |