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

Unified Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 1013803002: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: I think I caught the last one Created 5 years, 9 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 | « Source/platform/graphics/Canvas2DLayerBridge.cpp ('k') | Source/platform/graphics/GraphicsContextState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index 7206c74fd2f48389712891db8e0691057d406556..165063ffc4f01a03107a21900d50c6224bbe3cd3 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -549,7 +549,7 @@ void GraphicsContext::compositePicture(SkPicture* picture, const FloatRect& dest
SkMatrix pictureTransform;
pictureTransform.setRectToRect(sourceBounds, skBounds, SkMatrix::kFill_ScaleToFit);
m_canvas->concat(pictureTransform);
- RefPtr<SkPictureImageFilter> pictureFilter = adoptRef(SkPictureImageFilter::CreateForLocalSpace(picture, sourceBounds, static_cast<SkPaint::FilterLevel>(imageInterpolationQuality())));
+ RefPtr<SkPictureImageFilter> pictureFilter = adoptRef(SkPictureImageFilter::CreateForLocalSpace(picture, sourceBounds, static_cast<SkFilterQuality>(imageInterpolationQuality())));
picturePaint.setImageFilter(pictureFilter.get());
m_canvas->saveLayer(&sourceBounds, &picturePaint);
m_canvas->restore();
@@ -1822,7 +1822,7 @@ int GraphicsContext::preparePaintForDrawRectToRect(
resampling = InterpolationLow;
}
resampling = limitInterpolationQuality(this, resampling);
- paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling));
+ paint->setFilterQuality(static_cast<SkFilterQuality>(resampling));
return initialSaveCount;
}
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerBridge.cpp ('k') | Source/platform/graphics/GraphicsContextState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698