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

Unified Diff: Source/platform/graphics/RecordingImageBufferSurface.cpp

Issue 799103002: Fix display list canvas not rendering correctly on high dpi displays (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: corrections Created 6 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
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/RecordingImageBufferSurface.cpp
diff --git a/Source/platform/graphics/RecordingImageBufferSurface.cpp b/Source/platform/graphics/RecordingImageBufferSurface.cpp
index 9c8921bffeb229283b9fb52b6186e3bd7c8e4251..6cdf05f207ff668c4e2fda0599ccbbb818c576c5 100644
--- a/Source/platform/graphics/RecordingImageBufferSurface.cpp
+++ b/Source/platform/graphics/RecordingImageBufferSurface.cpp
@@ -178,6 +178,21 @@ void RecordingImageBufferSurface::willDrawVideo()
fallBackToRasterCanvas();
}
+void RecordingImageBufferSurface::draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator op, WebBlendMode blendMode, bool needsCopy)
+{
+ if (m_fallbackSurface) {
+ m_fallbackSurface->draw(context, destRect, srcRect, op, blendMode, needsCopy);
+ return;
+ }
+
+ RefPtr<SkPicture> picture = getPicture();
+ if (picture) {
+ context->compositePicture(picture.get(), destRect, srcRect, op, blendMode);
+ } else {
+ ImageBufferSurface::draw(context, destRect, srcRect, op, blendMode, needsCopy);
+ }
+}
+
// Fallback passthroughs
const SkBitmap& RecordingImageBufferSurface::bitmap()
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698