diff options
author | sheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-18 02:42:26 +0000 |
---|---|---|
committer | sheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-18 02:42:26 +0000 |
commit | 9ee2343406a6fae9c8aacc7303f7b1e5a04aab9e (patch) | |
tree | 3dc05a831a93c4ab05c333322a56e14273633ffd /cc/output | |
parent | 218db375e36b887c6d9cdbbb1f9e1b272ed410f4 (diff) | |
download | chromium_src-9ee2343406a6fae9c8aacc7303f7b1e5a04aab9e.zip chromium_src-9ee2343406a6fae9c8aacc7303f7b1e5a04aab9e.tar.gz chromium_src-9ee2343406a6fae9c8aacc7303f7b1e5a04aab9e.tar.bz2 |
Add gpu::MailboxHolder to hold state for a gpu::Mailbox
gpu::Mailbox by itself can hold only a texture id, but in common usage it comes
with texture target and syncpoint information for cross-context sharing. To
reduce repetition of this pattern, gpu::MailboxHolder holds:
* a gpu::Mailbox
* a GL texture target
* a syncpoint index
Refactor other classes to use a gpu::MailboxHolder instead of separate
gpu::Mailbox and associated state.
Syncpoints are created with uint32 indices; make sure all uses of syncpoints use uint32.
BUG=None
TEST=local build, unittests on CrOS snow, desktop Linux
Review URL: https://codereview.chromium.org/105743004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output')
-rw-r--r-- | cc/output/gl_renderer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc index 028c409..cef3bdb 100644 --- a/cc/output/gl_renderer.cc +++ b/cc/output/gl_renderer.cc @@ -2213,7 +2213,7 @@ void GLRenderer::GetFramebufferPixelsAsync( return; } } else { - mailbox = request->texture_mailbox().name(); + mailbox = request->texture_mailbox().mailbox(); DCHECK_EQ(static_cast<unsigned>(GL_TEXTURE_2D), request->texture_mailbox().target()); DCHECK(!mailbox.IsZero()); |