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

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

Issue 1156073003: remove unneeded device:lockpixels (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/core/SkBitmapDevice.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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 int indexCount, const SkPaint& paint) override 245 int indexCount, const SkPaint& paint) override
246 {SkASSERT(0);} 246 {SkASSERT(0);}
247 void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors [4], 247 void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors [4],
248 const SkPoint texCoords[4], SkXfermode* xmode, 248 const SkPoint texCoords[4], SkXfermode* xmode,
249 const SkPaint& paint) override 249 const SkPaint& paint) override
250 {SkASSERT(0);} 250 {SkASSERT(0);}
251 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 251 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
252 const SkPaint&) override 252 const SkPaint&) override
253 {SkASSERT(0);} 253 {SkASSERT(0);}
254 254
255 void lockPixels() override {}
256 void unlockPixels() override {}
257
258 bool canHandleImageFilter(const SkImageFilter*) override { 255 bool canHandleImageFilter(const SkImageFilter*) override {
259 return false; 256 return false;
260 } 257 }
261 bool filterImage(const SkImageFilter*, const SkBitmap&, 258 bool filterImage(const SkImageFilter*, const SkBitmap&,
262 const SkImageFilter::Context&, SkBitmap*, SkIPoint*) overri de { 259 const SkImageFilter::Context&, SkBitmap*, SkIPoint*) overri de {
263 return false; 260 return false;
264 } 261 }
265 262
266 private: 263 private:
267 void flush() override; 264 void flush() override;
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 982 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
986 this->drawingCanvas()->setDrawFilter(filter); 983 this->drawingCanvas()->setDrawFilter(filter);
987 this->INHERITED::setDrawFilter(filter); 984 this->INHERITED::setDrawFilter(filter);
988 this->recordedDrawCommand(); 985 this->recordedDrawCommand();
989 return filter; 986 return filter;
990 } 987 }
991 988
992 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 989 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
993 return this->drawingCanvas(); 990 return this->drawingCanvas();
994 } 991 }
OLDNEW
« no previous file with comments | « src/core/SkBitmapDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698