diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-08 07:20:43 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-08 07:20:43 +0000 |
commit | ebac3e5419fd6abecc9a4225a8a9e6d44bfbd0b5 (patch) | |
tree | 10a9aee75d3d80532ed4649d1b547fd706687898 /cc/test/test_context_provider.h | |
parent | c548d906788658674fa75e041f0b40091083cfb1 (diff) | |
download | chromium_src-ebac3e5419fd6abecc9a4225a8a9e6d44bfbd0b5.zip chromium_src-ebac3e5419fd6abecc9a4225a8a9e6d44bfbd0b5.tar.gz chromium_src-ebac3e5419fd6abecc9a4225a8a9e6d44bfbd0b5.tar.bz2 |
Route surface visibility notifications through ContextSupport/GpuControl
This obsoletes the WebGraphicsContext3D::setVisibilityCHROMIUM call and
instead routes surface visibility notifications from the compositor to
the gpu stack through gpu::ContextSupport and from the gpu stack to the
command buffer embedder through gpu::GpuControl. The implementation of
gpu::ContextSupport (GLES2Implementation) frees up command buffers/etc
that it owns and the implementation of gpu::GpuControl
(CommandBufferProxyImpl) sends the content IPC that drives the memory
manager.
This means migrating some logic from content::WebGraphicsContext3DCommandBufferImpl
down to gpu::GLES2Implementation, such as the free everything when invisible.
BUG=181120
R=piman
Review URL: https://codereview.chromium.org/107663002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_context_provider.h')
-rw-r--r-- | cc/test/test_context_provider.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h index 81167c6..6997f85 100644 --- a/cc/test/test_context_provider.h +++ b/cc/test/test_context_provider.h @@ -50,6 +50,8 @@ class TestContextProvider : public cc::ContextProvider { // makeContextCurrent on the context returned from this method. TestWebGraphicsContext3D* UnboundTestContext3d(); + TestContextSupport* support() { return &support_; } + void SetMemoryAllocation(const ManagedMemoryPolicy& policy); void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); |