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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 926843003: Move canvas->surface association to the device subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@skimage-filters-03-sksurface-set-root-device-simple
Patch Set: Created 5 years, 10 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 | « src/image/SkSurface_Raster.cpp ('k') | no next file » | 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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { 237 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE {
238 return false; 238 return false;
239 } 239 }
240 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 240 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
241 const SkImageFilter::Context&, SkBitmap*, SkIPoint* ) SK_OVERRIDE { 241 const SkImageFilter::Context&, SkBitmap*, SkIPoint* ) SK_OVERRIDE {
242 return false; 242 return false;
243 } 243 }
244 244
245 private: 245 private:
246 void flush() SK_OVERRIDE; 246 void flush() SK_OVERRIDE;
247 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE {} 247 void replaceBitmapBackend(const SkBitmap&) SK_OVERRIDE {}
248 248
249 void beginRecording(); 249 void beginRecording();
250 void init(); 250 void init();
251 void aboutToDraw(); 251 void aboutToDraw();
252 void prepareForImmediatePixelWrite(); 252 void prepareForImmediatePixelWrite();
253 253
254 DeferredPipeController fPipeController; 254 DeferredPipeController fPipeController;
255 SkGPipeWriter fPipeWriter; 255 SkGPipeWriter fPipeWriter;
256 SkCanvas* fImmediateCanvas; 256 SkCanvas* fImmediateCanvas;
257 SkCanvas* fRecordingCanvas; 257 SkCanvas* fRecordingCanvas;
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 934 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
935 this->drawingCanvas()->setDrawFilter(filter); 935 this->drawingCanvas()->setDrawFilter(filter);
936 this->INHERITED::setDrawFilter(filter); 936 this->INHERITED::setDrawFilter(filter);
937 this->recordedDrawCommand(); 937 this->recordedDrawCommand();
938 return filter; 938 return filter;
939 } 939 }
940 940
941 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 941 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
942 return this->drawingCanvas(); 942 return this->drawingCanvas();
943 } 943 }
OLDNEW
« no previous file with comments | « src/image/SkSurface_Raster.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698