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

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

Issue 19977003: drawBitmap* cleanup (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed bugs Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/utils/SkPictureUtils.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 /* 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 {SkASSERT(0);} 196 {SkASSERT(0);}
197 virtual void drawRect(const SkDraw&, const SkRect& r, 197 virtual void drawRect(const SkDraw&, const SkRect& r,
198 const SkPaint& paint) SK_OVERRIDE 198 const SkPaint& paint) SK_OVERRIDE
199 {SkASSERT(0);} 199 {SkASSERT(0);}
200 virtual void drawPath(const SkDraw&, const SkPath& path, 200 virtual void drawPath(const SkDraw&, const SkPath& path,
201 const SkPaint& paint, 201 const SkPaint& paint,
202 const SkMatrix* prePathMatrix = NULL, 202 const SkMatrix* prePathMatrix = NULL,
203 bool pathIsMutable = false) SK_OVERRIDE 203 bool pathIsMutable = false) SK_OVERRIDE
204 {SkASSERT(0);} 204 {SkASSERT(0);}
205 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 205 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
206 const SkIRect* srcRectOrNull,
207 const SkMatrix& matrix, const SkPaint& paint) SK_OVE RRIDE 206 const SkMatrix& matrix, const SkPaint& paint) SK_OVE RRIDE
208 {SkASSERT(0);} 207 {SkASSERT(0);}
209 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 208 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
210 int x, int y, const SkPaint& paint) SK_OVERRIDE 209 int x, int y, const SkPaint& paint) SK_OVERRIDE
211 {SkASSERT(0);} 210 {SkASSERT(0);}
212 virtual void drawText(const SkDraw&, const void* text, size_t len, 211 virtual void drawText(const SkDraw&, const void* text, size_t len,
213 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVE RRIDE 212 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVE RRIDE
214 {SkASSERT(0);} 213 {SkASSERT(0);}
215 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 214 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
216 const SkScalar pos[], SkScalar constY, 215 const SkScalar pos[], SkScalar constY,
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 1007 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
1009 this->drawingCanvas()->setDrawFilter(filter); 1008 this->drawingCanvas()->setDrawFilter(filter);
1010 this->INHERITED::setDrawFilter(filter); 1009 this->INHERITED::setDrawFilter(filter);
1011 this->recordedDrawCommand(); 1010 this->recordedDrawCommand();
1012 return filter; 1011 return filter;
1013 } 1012 }
1014 1013
1015 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 1014 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
1016 return this->drawingCanvas(); 1015 return this->drawingCanvas();
1017 } 1016 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698