summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 11:13:07 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 11:13:07 +0000
commit5dfc457b046705366bc8e58f5006b4e27c58f5c6 (patch)
treec7571ceaf0c4dc7ebc32b978b89950630ad540b7 /content/common/gpu/gpu_command_buffer_stub.cc
parentdf4c9c7f61a4de12ccc7e8020bcca9dcb5454192 (diff)
downloadchromium_src-5dfc457b046705366bc8e58f5006b4e27c58f5c6.zip
chromium_src-5dfc457b046705366bc8e58f5006b4e27c58f5c6.tar.gz
chromium_src-5dfc457b046705366bc8e58f5006b4e27c58f5c6.tar.bz2
Add GL entry points for DiscardBackbufferCHROMIUM
This adds and uses a GL command buffer command for DiscardBackbufferCHROMIUM instead of having a WebGraphicsContext3D entry point + common/ IPC message. This is used to deallocate, if possible, the backbuffer when no longer in use. BUG=181120 Review URL: https://codereview.chromium.org/104823005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index cc75813..4a1cbfd 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -213,8 +213,6 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) {
OnCreateVideoDecoder)
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetSurfaceVisible,
OnSetSurfaceVisible)
- IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DiscardBackbuffer,
- OnDiscardBackbuffer)
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_EnsureBackbuffer,
OnEnsureBackbuffer)
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_RetireSyncPoint,
@@ -760,19 +758,6 @@ void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) {
memory_manager_client_state_->SetVisible(visible);
}
-void GpuCommandBufferStub::OnDiscardBackbuffer() {
- TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnDiscardBackbuffer");
- if (!surface_.get())
- return;
- if (surface_->DeferDraws()) {
- DCHECK(!IsScheduled());
- channel_->RequeueMessage();
- } else {
- if (!surface_->SetBackbufferAllocation(false))
- channel_->DestroySoon();
- }
-}
-
void GpuCommandBufferStub::OnEnsureBackbuffer() {
TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnEnsureBackbuffer");
if (!surface_.get())