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

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

Issue 1224893004: Turn FrameView's paintBehavior into a real global (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed unused variable warning. Created 5 years, 5 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 ecb9949b8754a2887d8cd78fe8d51fed9e507d72..c5d58ca9278d723ee9887cfdb49aea9c0eeaf74e 100644
--- a/Source/core/paint/VideoPainter.cpp
+++ b/Source/core/paint/VideoPainter.cpp
@@ -44,7 +44,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()) {
+ } else if ((gGlobalPaintFlags & GlobalPaintFlattenCompositingLayers) || !m_layoutVideo.acceleratedRenderingInUse()) {
SkPaint videoPaint = context->fillPaint();
videoPaint.setColor(SK_ColorBLACK);
m_layoutVideo.videoElement()->paintCurrentFrame(context->canvas(), pixelSnappedIntRect(rect), &videoPaint);

Powered by Google App Engine
This is Rietveld 408576698