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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void setBitmapSizeThreshold(size_t sizeThreshold); | 138 void setBitmapSizeThreshold(size_t sizeThreshold); |
139 size_t getBitmapSizeThreshold() const { return fBitmapSizeThreshold; } | 139 size_t getBitmapSizeThreshold() const { return fBitmapSizeThreshold; } |
140 | 140 |
141 /** | 141 /** |
142 * Executes all pending commands without drawing | 142 * Executes all pending commands without drawing |
143 */ | 143 */ |
144 void silentFlush(); | 144 void silentFlush(); |
145 | 145 |
146 // Overrides of the SkCanvas interface | 146 // Overrides of the SkCanvas interface |
147 virtual bool isDrawingToLayer() const SK_OVERRIDE; | 147 virtual bool isDrawingToLayer() const SK_OVERRIDE; |
| 148 virtual void clear(SkColor) SK_OVERRIDE; |
148 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 149 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
149 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 150 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
150 const SkPaint& paint) SK_OVERRIDE; | 151 const SkPaint& paint) SK_OVERRIDE; |
151 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 152 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
152 virtual void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE; | 153 virtual void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE; |
153 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 154 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
154 virtual void drawPath(const SkPath& path, const SkPaint& paint) | 155 virtual void drawPath(const SkPath& path, const SkPaint& paint) |
155 SK_OVERRIDE; | 156 SK_OVERRIDE; |
156 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, | 157 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, |
157 SkScalar top, const SkPaint* paint) | 158 SkScalar top, const SkPaint* paint) |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 256 |
256 mutable SkISize fCachedCanvasSize; | 257 mutable SkISize fCachedCanvasSize; |
257 mutable bool fCachedCanvasSizeDirty; | 258 mutable bool fCachedCanvasSizeDirty; |
258 | 259 |
259 friend class SkDeferredCanvasTester; // for unit testing | 260 friend class SkDeferredCanvasTester; // for unit testing |
260 typedef SkCanvas INHERITED; | 261 typedef SkCanvas INHERITED; |
261 }; | 262 }; |
262 | 263 |
263 | 264 |
264 #endif | 265 #endif |
OLD | NEW |