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

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.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/RecordingImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
index 5c51f5b3c698b6b1f60cbc7828e1e95c2b3974a5..0c187dd85e3b3225f79a8f5a7491c22cb77ddc6e 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
@@ -205,7 +205,7 @@ bool RecordingImageBufferSurface::finalizeFrameInternal()
return true;
}
-void RecordingImageBufferSurface::draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode op)
+void RecordingImageBufferSurface::draw(GraphicsContext& context, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode op)
{
if (m_fallbackSurface) {
m_fallbackSurface->draw(context, destRect, srcRect, op);
@@ -214,7 +214,7 @@ void RecordingImageBufferSurface::draw(GraphicsContext* context, const FloatRect
RefPtr<SkPicture> picture = getPicture();
if (picture) {
- context->compositePicture(picture.get(), destRect, srcRect, op);
+ context.compositePicture(picture.get(), destRect, srcRect, op);
} else {
ImageBufferSurface::draw(context, destRect, srcRect, op);
}

Powered by Google App Engine
This is Rietveld 408576698