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

Unified Diff: include/core/SkCanvas.h

Issue 1230823007: Revert of guard to remove DrawBitmapRectFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index c7d5089307da8e01d3e06f85a1f003d9401f5803..ca6818518d74078401d0d73a1b3cfdc61d842010 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -35,7 +35,7 @@
class GrContext;
class GrRenderTarget;
-//#define SK_SUPPORT_LEGACY_DRAWBITMAPRECTFLAGS_TYPE
+//#define SK_SUPPORT_LEGACY_ONDRAWIMAGERECT
class SkCanvasState;
@@ -834,19 +834,17 @@
* @param constraint Control the tradeoff between speed and exactness w.r.t. the src-rect.
*/
void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
- const SkPaint* paint, SrcRectConstraint = kStrict_SrcRectConstraint);
-
- void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst) {
- this->drawImageRect(image, src, dst, NULL, kStrict_SrcRectConstraint);
+ const SkPaint* paint, SrcRectConstraint);
+
+ void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
+ const SkPaint* paint = NULL) {
+ this->drawImageRect(image, src, dst, paint, kStrict_SrcRectConstraint);
}
void drawImageRect(const SkImage* image, const SkRect& dst, const SkPaint* paint = NULL) {
// With no src-rect, the constraint value is ignored, so we just use the default.
this->drawImageRect(image, NULL, dst, paint, kStrict_SrcRectConstraint);
}
-
- void drawImageRect(const SkImage* image, const SkIRect& isrc, const SkRect& dst,
- const SkPaint* paint, SrcRectConstraint = kStrict_SrcRectConstraint);
/**
* Draw the image stretched differentially to fit into dst.
@@ -895,22 +893,13 @@
* @param paint The paint used to draw the bitmap, or NULL
* @param constraint Control the tradeoff between speed and exactness w.r.t. the src-rect.
*/
-#ifdef SK_SUPPORT_LEGACY_DRAWBITMAPRECTFLAGS_TYPE
void drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
const SkPaint* paint, SrcRectConstraint);
-#else
- void drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
- const SkPaint* paint, SrcRectConstraint = kStrict_SrcRectConstraint);
-#endif
void drawBitmapRect(const SkBitmap& bitmap, const SkRect& dst, const SkPaint* paint = NULL) {
this->drawBitmapRect(bitmap, NULL, dst, paint, kStrict_SrcRectConstraint);
}
- void drawBitmapRect(const SkBitmap& bitmap, const SkIRect& isrc, const SkRect& dst,
- const SkPaint* paint, SrcRectConstraint = kStrict_SrcRectConstraint);
-
-#ifdef SK_SUPPORT_LEGACY_DRAWBITMAPRECTFLAGS_TYPE
// IMPORTANT that thse be value-equal with SrcRectConstraint (during transition period)
enum DrawBitmapRectFlags {
kNone_DrawBitmapRectFlag = 0x0,
@@ -945,7 +934,6 @@
}
this->drawBitmapRectToRect(bitmap, realSrcPtr, dst, paint, flags);
}
-#endif
/**
* Draw the bitmap stretched differentially to fit into dst.
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698