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

Side by Side Diff: include/core/SkDevice.h

Issue 1239193002: remove all guards for changes to drawBitmapRect / drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 4 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 | « include/core/SkCanvas.h ('k') | include/utils/SkDeferredCanvas.h » ('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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 210 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
211 int x, int y, const SkPaint& paint) = 0; 211 int x, int y, const SkPaint& paint) = 0;
212 212
213 /** 213 /**
214 * The default impl. will create a bitmap-shader from the bitmap, 214 * The default impl. will create a bitmap-shader from the bitmap,
215 * and call drawRect with it. 215 * and call drawRect with it.
216 */ 216 */
217 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, 217 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&,
218 const SkRect* srcOrNull, const SkRect& dst, 218 const SkRect* srcOrNull, const SkRect& dst,
219 const SkPaint& paint, 219 const SkPaint& paint,
220 SK_VIRTUAL_CONSTRAINT_TYPE) = 0; 220 SkCanvas::SrcRectConstraint) = 0;
221 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c enter, 221 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c enter,
222 const SkRect& dst, const SkPaint&); 222 const SkRect& dst, const SkPaint&);
223 223
224 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y , const SkPaint&); 224 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y , const SkPaint&);
225 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst, 225 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst,
226 const SkPaint&, SkCanvas::SrcRectConstraint); 226 const SkPaint&, SkCanvas::SrcRectConstraint);
227 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen ter, 227 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen ter,
228 const SkRect& dst, const SkPaint&); 228 const SkRect& dst, const SkPaint&);
229 229
230 /** 230 /**
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 SkSurfaceProps fSurfaceProps; 400 SkSurfaceProps fSurfaceProps;
401 401
402 #ifdef SK_DEBUG 402 #ifdef SK_DEBUG
403 bool fAttachedToCanvas; 403 bool fAttachedToCanvas;
404 #endif 404 #endif
405 405
406 typedef SkRefCnt INHERITED; 406 typedef SkRefCnt INHERITED;
407 }; 407 };
408 408
409 #endif 409 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDeferredCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698