Chromium Code Reviews
DescriptionMake 2D canvas disable gpu acceleration when getImageData is called
In order to optimize performance, GPU-accelerated canvases should
permanently switch out of accalerated mode as soon as
getImageData is called. The cost of getImageData on the GPU is
so prohibitively high that it almost always outways the benefit
of acceleration.
This is the first time we implement a SW/GPU switch that can happen
after the first frame was presented, which may result in a small one
time glitch due to rendering engine discrepancies. Let's see if we get
any complaints about this. If there are complaints, we may inhibit
the switch based on what kind of content was rendered to the canvas.
BUG=606688
Committed: https://crrev.com/33732aec33c88cb18c212544da7d0a4ba53cd9ce
Cr-Commit-Position: refs/heads/master@{#401751}
Patch Set 1 #
Total comments: 2
Patch Set 2 : fixed bugs #Patch Set 3 : bug fixes #Patch Set 4 : included missing file #
Total comments: 2
Patch Set 5 : unit test build fix #
Total comments: 2
Patch Set 6 : address comments and fix test failures #Messages
Total messages: 16 (4 generated)
|