Commit 1dbe1136 authored by fserb's avatar fserb Committed by Commit bot

Do compositing update when switching from software to accelerated canvas

Also, re-enables switching from sw to accelerated canvas.

BUG=704571

Review-Url: https://codereview.chromium.org/2799033002
Cr-Original-Commit-Position: refs/heads/master@{#462706}
Committed: https://chromium.googlesource.com/chromium/src/+/2f0fa56eb8fc2eee27d437e7b6c8038ba5a52d87
Review-Url: https://codereview.chromium.org/2799033002
Cr-Commit-Position: refs/heads/master@{#462900}
parent f25963e5
...@@ -1246,6 +1246,7 @@ void HTMLCanvasElement::willDrawImageTo2DContext(CanvasImageSource* source) { ...@@ -1246,6 +1246,7 @@ void HTMLCanvasElement::willDrawImageTo2DContext(CanvasImageSource* source) {
createAcceleratedImageBufferSurface(opacityMode, &msaaSampleCount); createAcceleratedImageBufferSurface(opacityMode, &msaaSampleCount);
if (surface) { if (surface) {
buffer()->setSurface(std::move(surface)); buffer()->setSurface(std::move(surface));
setNeedsCompositingUpdate();
} }
} }
} }
......
...@@ -98,7 +98,7 @@ enum { ...@@ -98,7 +98,7 @@ enum {
// acceleration on the destination first. If that does not succeed, // acceleration on the destination first. If that does not succeed,
// we disable acceleration on the source canvas. Either way, future // we disable acceleration on the source canvas. Either way, future
// readbacks are prevented. // readbacks are prevented.
EnableAccelerationToAvoidReadbacks = 0, EnableAccelerationToAvoidReadbacks = 1,
}; // enum }; // enum
......
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