Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: include/utils/SkDeferredCanvas.h

Issue 804813002: Cleanup: Mark some overridden methods with 'SK_OVERRIDE'. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | src/effects/SkColorMatrixFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 /** 229 /**
230 * Called after pending draw commands have been skipped, meaning 230 * Called after pending draw commands have been skipped, meaning
231 * that they were optimized-out because the canvas is cleared 231 * that they were optimized-out because the canvas is cleared
232 * or completely overwritten by the command currently being recorded. 232 * or completely overwritten by the command currently being recorded.
233 */ 233 */
234 virtual void skippedPendingDrawCommands() {} 234 virtual void skippedPendingDrawCommands() {}
235 }; 235 };
236 236
237 protected: 237 protected:
238 virtual SkCanvas* canvasForDrawIter(); 238 virtual SkCanvas* canvasForDrawIter() SK_OVERRIDE;
239 SkDeferredDevice* getDeferredDevice() const; 239 SkDeferredDevice* getDeferredDevice() const;
240 240
241 private: 241 private:
242 SkDeferredCanvas(SkDeferredDevice*); 242 SkDeferredCanvas(SkDeferredDevice*);
243 243
244 void recordedDrawCommand(); 244 void recordedDrawCommand();
245 SkCanvas* drawingCanvas() const; 245 SkCanvas* drawingCanvas() const;
246 SkCanvas* immediateCanvas() const; 246 SkCanvas* immediateCanvas() const;
247 bool isFullFrame(const SkRect*, const SkPaint*) const; 247 bool isFullFrame(const SkRect*, const SkPaint*) const;
248 void validate() const; 248 void validate() const;
249 void init(); 249 void init();
250 250
251 size_t fBitmapSizeThreshold; 251 size_t fBitmapSizeThreshold;
252 bool fDeferredDrawing; 252 bool fDeferredDrawing;
253 253
254 mutable SkISize fCachedCanvasSize; 254 mutable SkISize fCachedCanvasSize;
255 mutable bool fCachedCanvasSizeDirty; 255 mutable bool fCachedCanvasSizeDirty;
256 256
257 friend class SkDeferredCanvasTester; // for unit testing 257 friend class SkDeferredCanvasTester; // for unit testing
258 typedef SkCanvas INHERITED; 258 typedef SkCanvas INHERITED;
259 }; 259 };
260 260
261 261
262 #endif 262 #endif
OLDNEW
« no previous file with comments | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | src/effects/SkColorMatrixFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698