diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-07 22:09:40 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-07 22:09:40 +0000 |
commit | f9e8f45a53dfb8829bfc9e7d09fc27602944d86e (patch) | |
tree | 8c35c6c8b32556cb524b0434b2a6b37ace8c2861 /ui/android | |
parent | 72d2d1b7f043edf5fe4e89a37e60e665dd747626 (diff) | |
download | chromium_src-f9e8f45a53dfb8829bfc9e7d09fc27602944d86e.zip chromium_src-f9e8f45a53dfb8829bfc9e7d09fc27602944d86e.tar.gz chromium_src-f9e8f45a53dfb8829bfc9e7d09fc27602944d86e.tar.bz2 |
cc: Allow pepper to avoid DCHECK but reuse gpu::Mailbox.
When setting a texture mailbox on TextureLayer, reusing the same
TextureMailbox is very fishy since the gpu::Mailbox would end up
being released back to the client multiple times.
However since pepper does magical bad things by using a single
texture that somehow is double buffered (this is wrong and
to be fixed), it needs to give the texture to cc multiple times.
It is safer in this case since its ReleaseCallback is empty. We
can encode this with a SetTextureMailboxWithoutReleaseCallback
method on TextureLayer that pepper can use, and it avoids this
DCHECK.
The method comes with a big warning. Pepper should be fixed to
avoid visual tearing, and this method should go away.
R=piman
BUG=350204
Review URL: https://codereview.chromium.org/189333003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/android')
0 files changed, 0 insertions, 0 deletions