diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 23:30:22 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 23:30:22 +0000 |
commit | c76fe6734b1b5e4985828c634e582063b0267eb9 (patch) | |
tree | b447ac0e87aa8828b8664cbfa8195ae13821c918 /content/common/gpu/gpu_command_buffer_stub.cc | |
parent | b597d9b28154b9a6a707b483c4fdab7efa8e7c47 (diff) | |
download | chromium_src-c76fe6734b1b5e4985828c634e582063b0267eb9.zip chromium_src-c76fe6734b1b5e4985828c634e582063b0267eb9.tar.gz chromium_src-c76fe6734b1b5e4985828c634e582063b0267eb9.tar.bz2 |
Implicitly ensure backbuffer creation on draw
Instead of having a special IPC channel to ensure a backbuffer is allocated
for a given GL context, we can create it implicitly on the first draw attempt
into FBO 0. If this fails, the context is considered lost.
BUG=181120
Review URL: https://codereview.chromium.org/112303002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240797 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.cc | 15 |
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 4a1cbfd..44eaf90 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_EnsureBackbuffer, - OnEnsureBackbuffer) IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_RetireSyncPoint, OnRetireSyncPoint) IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SignalSyncPoint, @@ -758,19 +756,6 @@ void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) { memory_manager_client_state_->SetVisible(visible); } -void GpuCommandBufferStub::OnEnsureBackbuffer() { - TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnEnsureBackbuffer"); - if (!surface_.get()) - return; - if (surface_->DeferDraws()) { - DCHECK(!IsScheduled()); - channel_->RequeueMessage(); - } else { - if (!surface_->SetBackbufferAllocation(true)) - channel_->DestroySoon(); - } -} - void GpuCommandBufferStub::AddSyncPoint(uint32 sync_point) { sync_points_.push_back(sync_point); } |