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

Unified Diff: Source/core/paint/VideoPainter.cpp

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months 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: Source/core/paint/VideoPainter.cpp
diff --git a/Source/core/paint/VideoPainter.cpp b/Source/core/paint/VideoPainter.cpp
index 8d60d98aee21c0fa68af7a6c32e672d7e380e62a..91634069316bc47043d0b91fe47e864a885556c8 100644
--- a/Source/core/paint/VideoPainter.cpp
+++ b/Source/core/paint/VideoPainter.cpp
@@ -45,7 +45,7 @@ void VideoPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
if (displayingPoster)
ImagePainter(m_layoutVideo).paintIntoRect(context, rect);
else if ((m_layoutVideo.document().view() && m_layoutVideo.document().view()->paintBehavior() & PaintBehaviorFlattenCompositingLayers) || !m_layoutVideo.acceleratedRenderingInUse())
- m_layoutVideo.videoElement()->paintCurrentFrameInContext(context, pixelSnappedIntRect(rect));
+ m_layoutVideo.videoElement()->paintCurrentFrame(context->canvas(), pixelSnappedIntRect(rect), &context->fillPaint());
if (clip)
context->restore();

Powered by Google App Engine
This is Rietveld 408576698