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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.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/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index bcf6000a79379797055b1eae0a78fa7e58a7aef8..b8f33f384230a096da856ae4422de1fb9519c856 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -145,7 +145,7 @@ public:
virtual PassRefPtr<SkImage> imageForCurrentFrame() = 0;
virtual PassRefPtr<Image> imageForDefaultFrame();
- virtual void drawPattern(GraphicsContext*, const FloatRect&,
+ virtual void drawPattern(GraphicsContext&, const FloatRect&,
const FloatSize&, const FloatPoint& phase, SkXfermode::Mode,
const FloatRect&, const FloatSize& repeatSpacing = FloatSize());
@@ -159,9 +159,9 @@ public:
protected:
Image(ImageObserver* = 0);
- void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize,
+ void drawTiled(GraphicsContext&, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize,
SkXfermode::Mode, const FloatSize& repeatSpacing);
- void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, const FloatSize& tileScaleFactor, TileRule hRule, TileRule vRule, SkXfermode::Mode);
+ void drawTiled(GraphicsContext&, const FloatRect& dstRect, const FloatRect& srcRect, const FloatSize& tileScaleFactor, TileRule hRule, TileRule vRule, SkXfermode::Mode);
private:
RefPtr<SharedBuffer> m_encodedImageData;

Powered by Google App Engine
This is Rietveld 408576698