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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.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/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 2cd05cf5c983758b0e5e2e2b3e13aec8c6e470bc..4b768c8df45a12c7d42dcba72c688322d3b9d213 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -829,21 +829,21 @@ SkFilterQuality GraphicsContext::computeFilterQuality(Image* image, const FloatR
resampling = InterpolationLow;
}
}
- return static_cast<SkFilterQuality>(limitInterpolationQuality(this, resampling));
+ return static_cast<SkFilterQuality>(limitInterpolationQuality(*this, resampling));
}
void GraphicsContext::drawTiledImage(Image* image, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& tileSize, SkXfermode::Mode op, const FloatSize& repeatSpacing)
{
if (contextDisabled() || !image)
return;
- image->drawTiled(this, destRect, srcPoint, tileSize, op, repeatSpacing);
+ image->drawTiled(*this, destRect, srcPoint, tileSize, op, repeatSpacing);
}
void GraphicsContext::drawTiledImage(Image* image, const IntRect& destRect, const IntPoint& srcPoint, const IntSize& tileSize, SkXfermode::Mode op, const IntSize& repeatSpacing)
{
if (contextDisabled() || !image)
return;
- image->drawTiled(this, destRect, srcPoint, FloatSize(tileSize), op, FloatSize(repeatSpacing));
+ image->drawTiled(*this, destRect, srcPoint, FloatSize(tileSize), op, FloatSize(repeatSpacing));
}
void GraphicsContext::drawTiledImage(Image* image, const FloatRect& dest, const FloatRect& srcRect,
@@ -858,7 +858,7 @@ void GraphicsContext::drawTiledImage(Image* image, const FloatRect& dest, const
return;
}
- image->drawTiled(this, dest, srcRect, tileScaleFactor, hRule, vRule, op);
+ image->drawTiled(*this, dest, srcRect, tileScaleFactor, hRule, vRule, op);
}
void GraphicsContext::drawOval(const SkRect& oval, const SkPaint& paint)

Powered by Google App Engine
This is Rietveld 408576698