Commit c24561b3 authored by junov@chromium.org's avatar junov@chromium.org

Fix display list canvas fallback to GPU accelerated mode

Right now when the display list canvas fallback is triggered,
and the fallback canvas is GPU-acclerated, we fail to notify
the GraphicsContext that it has become
accelerated.  This causes HTMLCanvasElement::paint to use
the CPU rendering code path. This change fix the problem by
notifying the GraphicsContext of whether GPU acceleration
is use by the fallback canvas.

BUG=426169

Review URL: https://codereview.chromium.org/669993004

git-svn-id: svn://svn.chromium.org/blink/trunk@184379 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 9891b77d
...@@ -103,6 +103,7 @@ void RecordingImageBufferSurface::fallBackToRasterCanvas() ...@@ -103,6 +103,7 @@ void RecordingImageBufferSurface::fallBackToRasterCanvas()
if (m_imageBuffer) { if (m_imageBuffer) {
m_imageBuffer->context()->setRegionTrackingMode(GraphicsContext::RegionTrackingDisabled); m_imageBuffer->context()->setRegionTrackingMode(GraphicsContext::RegionTrackingDisabled);
m_imageBuffer->context()->resetCanvas(m_fallbackSurface->canvas()); m_imageBuffer->context()->resetCanvas(m_fallbackSurface->canvas());
m_imageBuffer->context()->setAccelerated(m_fallbackSurface->isAccelerated());
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment