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

Unified Diff: include/effects/SkBitmapSource.h

Issue 1072603002: Add GM to repro crbug.com/472795 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: renamed filter to filterQuality Created 5 years, 8 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/gmslides.gypi ('k') | src/effects/SkBitmapSource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkBitmapSource.h
diff --git a/include/effects/SkBitmapSource.h b/include/effects/SkBitmapSource.h
index cd43e8f61f8f153a5278dbad31dfeaf48d66c527..55b5bedabedf7e9e60c70d60b101fe2c4d0d7828 100644
--- a/include/effects/SkBitmapSource.h
+++ b/include/effects/SkBitmapSource.h
@@ -16,9 +16,10 @@ public:
static SkBitmapSource* Create(const SkBitmap& bitmap) {
return SkNEW_ARGS(SkBitmapSource, (bitmap));
}
- static SkBitmapSource* Create(const SkBitmap& bitmap, const SkRect& srcRect,
- const SkRect& dstRect) {
- return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect));
+ static SkBitmapSource* Create(const SkBitmap& bitmap,
+ const SkRect& srcRect, const SkRect& dstRect,
+ SkFilterQuality filterQuality = kHigh_SkFilterQuality) {
+ return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect, filterQuality));
}
void computeFastBounds(const SkRect& src, SkRect* dst) const override;
@@ -27,7 +28,9 @@ public:
protected:
explicit SkBitmapSource(const SkBitmap& bitmap);
- SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
+ SkBitmapSource(const SkBitmap& bitmap,
+ const SkRect& srcRect, const SkRect& dstRect,
+ SkFilterQuality filterQuality);
void flatten(SkWriteBuffer&) const override;
virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
@@ -36,6 +39,8 @@ protected:
private:
SkBitmap fBitmap;
SkRect fSrcRect, fDstRect;
+ SkFilterQuality fFilterQuality;
+
typedef SkImageFilter INHERITED;
};
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/effects/SkBitmapSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698