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

Unified Diff: third_party/WebKit/Source/platform/graphics/GeneratedImage.h

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/GeneratedImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/GeneratedImage.h b/third_party/WebKit/Source/platform/graphics/GeneratedImage.h
index 643312cc3b1626705ca83fdc881180e196276586..a02ff7d4dfc68b08bb1cf3d5fd174f0d9b30a078 100644
--- a/third_party/WebKit/Source/platform/graphics/GeneratedImage.h
+++ b/third_party/WebKit/Source/platform/graphics/GeneratedImage.h
@@ -49,7 +49,7 @@ public:
PassRefPtr<SkImage> imageForCurrentFrame() override;
protected:
- void drawPattern(GraphicsContext*, const FloatRect&,
+ void drawPattern(GraphicsContext&, const FloatRect&,
const FloatSize&, const FloatPoint&, SkXfermode::Mode,
const FloatRect&, const FloatSize& repeatSpacing) final;
@@ -58,7 +58,7 @@ protected:
GeneratedImage(const IntSize& size) : m_size(size) { }
- virtual void drawTile(GraphicsContext*, const FloatRect&) = 0;
+ virtual void drawTile(GraphicsContext&, const FloatRect&) = 0;
IntSize m_size;
};

Powered by Google App Engine
This is Rietveld 408576698