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

Unified Diff: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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
Index: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
index 17900c5eb07b150b8d4bb73922bd315d7c9775f6..77f921feff168b93961b7c5e7c4cf45d94063e69 100644
--- a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
+++ b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
@@ -243,9 +243,9 @@ bool nearlyIntegral(float value)
return fabs(value - floorf(value)) < std::numeric_limits<float>::epsilon();
}
-InterpolationQuality limitInterpolationQuality(const GraphicsContext* context, InterpolationQuality resampling)
+InterpolationQuality limitInterpolationQuality(const GraphicsContext& context, InterpolationQuality resampling)
{
- return std::min(resampling, context->imageInterpolationQuality());
+ return std::min(resampling, context.imageInterpolationQuality());
}
InterpolationQuality computeInterpolationQuality(

Powered by Google App Engine
This is Rietveld 408576698