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

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

Issue 545813002: Picture Recording: fix the performance bottleneck in SkDeferredCanvas::isFullFrame (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: use interface in SkDeferredCanvas Created 6 years, 3 months 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 | « no previous file | src/utils/SkDeferredCanvas.cpp » ('j') | src/utils/SkDeferredCanvas.cpp » ('J')
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | src/utils/SkDeferredCanvas.cpp » ('j') | src/utils/SkDeferredCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698