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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
236 protected: | 236 protected: |
237 virtual SkCanvas* canvasForDrawIter(); | 237 virtual SkCanvas* canvasForDrawIter(); |
238 SkDeferredDevice* getDeferredDevice() const; | 238 SkDeferredDevice* getDeferredDevice() const; |
239 | 239 |
240 private: | 240 private: |
241 SkDeferredCanvas(SkDeferredDevice*); | 241 SkDeferredCanvas(SkDeferredDevice*); |
242 | 242 |
243 void recordedDrawCommand(); | 243 void recordedDrawCommand(); |
244 SkCanvas* drawingCanvas() const; | 244 SkCanvas* drawingCanvas() const; |
245 SkCanvas* immediateCanvas() const; | 245 SkCanvas* immediateCanvas() const; |
246 bool isFullFrame(const SkRect*, const SkPaint*) const; | 246 bool isFullFrame(const SkRect*, const SkPaint*); |
247 void validate() const; | 247 void validate() const; |
248 void init(); | 248 void init(); |
249 | 249 |
250 size_t fBitmapSizeThreshold; | 250 size_t fBitmapSizeThreshold; |
251 bool fDeferredDrawing; | 251 bool fDeferredDrawing; |
252 SkISize canvasSize; | |
reed1
2014/09/05 13:18:33
nit: fCanvasSize
yunchao
2014/09/09 08:58:00
Done.
| |
252 | 253 |
253 friend class SkDeferredCanvasTester; // for unit testing | 254 friend class SkDeferredCanvasTester; // for unit testing |
254 typedef SkCanvas INHERITED; | 255 typedef SkCanvas INHERITED; |
255 }; | 256 }; |
256 | 257 |
257 | 258 |
258 #endif | 259 #endif |
OLD | NEW |