summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.h
diff options
context:
space:
mode:
authormmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-11 01:13:55 +0000
committermmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-11 01:13:55 +0000
commit74b407d576a540dacfc1bc5564713ac8105eb2cf (patch)
tree6fbfc9417d99316e8d802b1c52896e65db2749b8 /content/common/gpu/gpu_command_buffer_stub.h
parent9f14afa5c6cf0a1ecb390e82cf7154a036995146 (diff)
downloadchromium_src-74b407d576a540dacfc1bc5564713ac8105eb2cf.zip
chromium_src-74b407d576a540dacfc1bc5564713ac8105eb2cf.tar.gz
chromium_src-74b407d576a540dacfc1bc5564713ac8105eb2cf.tar.bz2
Drop frontbuffers for hibernated tabs using image_transport_surface_win.
BUG=112842 TEST=Manual Review URL: http://codereview.chromium.org/9317056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.h')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index 61cd479..66c3431 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -15,6 +15,7 @@
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "content/common/gpu/media/gpu_video_decode_accelerator.h"
+#include "content/common/gpu/gpu_memory_allocation.h"
#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/service/command_buffer_service.h"
#include "gpu/command_buffer/service/context_group.h"
@@ -59,6 +60,9 @@ class CONTENT_EXPORT GpuCommandBufferStubBase {
virtual void SendMemoryAllocationToProxy(
const GpuMemoryAllocation& allocation) = 0;
+
+ virtual void SetMemoryAllocation(
+ const GpuMemoryAllocation& allocation) = 0;
};
class GpuCommandBufferStub
@@ -98,6 +102,10 @@ class GpuCommandBufferStub
virtual void SendMemoryAllocationToProxy(
const GpuMemoryAllocation& allocation) OVERRIDE;
+ // Sets buffer usage depending on Memory Allocation
+ virtual void SetMemoryAllocation(
+ const GpuMemoryAllocation& allocation) OVERRIDE;
+
// Whether this command buffer can currently handle IPC messages.
bool IsScheduled();
@@ -181,6 +189,7 @@ class GpuCommandBufferStub
bool software_;
uint32 last_flush_count_;
scoped_ptr<GpuCommandBufferStubBase::SurfaceState> surface_state_;
+ GpuMemoryAllocation allocation_;
scoped_ptr<gpu::CommandBufferService> command_buffer_;
scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;