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

Unified Diff: third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.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/GradientGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
index eace3cd39b0520016d92b14319e58861a7b8e1db..724405a9ef530b66d57adce311c9c0b9af277c9f 100644
--- a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
@@ -44,10 +44,10 @@ void GradientGeneratedImage::draw(SkCanvas* canvas, const SkPaint& paint, const
canvas->drawRect(SkRect::MakeWH(m_size.width(), m_size.height()), gradientPaint);
}
-void GradientGeneratedImage::drawTile(GraphicsContext* context, const FloatRect& srcRect)
+void GradientGeneratedImage::drawTile(GraphicsContext& context, const FloatRect& srcRect)
{
- context->setFillGradient(m_gradient);
- context->fillRect(srcRect);
+ context.setFillGradient(m_gradient);
+ context.fillRect(srcRect);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698