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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.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/ImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
index 6ae446f9c4d972da3d43809a128a4fddd1ceef63..de6f39f5cdc33913c32d6bff282bc756a01d8e9d 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
@@ -70,14 +70,14 @@ void ImageBufferSurface::clear()
}
}
-void ImageBufferSurface::draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode op)
+void ImageBufferSurface::draw(GraphicsContext& context, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode op)
{
RefPtr<SkImage> snapshot = newImageSnapshot(PreferNoAcceleration);
if (!snapshot)
return;
RefPtr<Image> image = StaticBitmapImage::create(snapshot.release());
- context->drawImage(image.get(), destRect, srcRect, op);
+ context.drawImage(image.get(), destRect, srcRect, op);
}
void ImageBufferSurface::flush()

Powered by Google App Engine
This is Rietveld 408576698