diff options
author | reveman <reveman@chromium.org> | 2014-10-13 13:52:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-13 20:52:24 +0000 |
commit | 22dd9298e4365cfbc3662e98c3b387fe7f3ce6a3 (patch) | |
tree | dd30022f67c3a45551c67b2d5a1664364b3bf0c9 /cc/layers/texture_layer_unittest.cc | |
parent | 6e402f141ae341c5df18ca81e892089c47fae54f (diff) | |
download | chromium_src-22dd9298e4365cfbc3662e98c3b387fe7f3ce6a3.zip chromium_src-22dd9298e4365cfbc3662e98c3b387fe7f3ce6a3.tar.gz chromium_src-22dd9298e4365cfbc3662e98c3b387fe7f3ce6a3.tar.bz2 |
gpu: Compositor management of GpuMemoryBuffer instances.
This is a refactor of the CHROMIUM_image extension that allows
the compositor to map/unmap GpuMemoryBuffers on worker threads
and potentially also allocate these buffers on worker threads.
CreateImageCHROMIUM now takes an opaque ClientBuffer as first
parameter. ClientBuffer is implementation specific and in the
case of chromium a gfx::GpuMemoryBuffer. Or more specifically
a content::GpuMemoryBufferImpl when used with the content layer.
This allows the compositor to allocate and use GpuMemoryBuffers
without a GLES2Interface.
A GpuMemoryBufferManager interface has been introduced. This
interface provides a mechanism for the compositor to allocate
GpuMemoryBuffer instances in the renderer and browser process.
BUG=418553
Review URL: https://codereview.chromium.org/634083002
Cr-Commit-Position: refs/heads/master@{#299360}
Diffstat (limited to 'cc/layers/texture_layer_unittest.cc')
-rw-r--r-- | cc/layers/texture_layer_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/layers/texture_layer_unittest.cc b/cc/layers/texture_layer_unittest.cc index 2c8b4bd..9b59b96 100644 --- a/cc/layers/texture_layer_unittest.cc +++ b/cc/layers/texture_layer_unittest.cc @@ -51,7 +51,7 @@ gpu::Mailbox MailboxFromChar(char value) { class MockLayerTreeHost : public LayerTreeHost { public: explicit MockLayerTreeHost(FakeLayerTreeHostClient* client) - : LayerTreeHost(client, nullptr, LayerTreeSettings()) { + : LayerTreeHost(client, nullptr, nullptr, LayerTreeSettings()) { InitializeSingleThreaded(client, base::MessageLoopProxy::current()); } |