diff options
author | mmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-04 15:40:13 +0000 |
---|---|---|
committer | mmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-04 15:40:13 +0000 |
commit | 1d56e96465de6da2deaabb75160d8fc9f281d63a (patch) | |
tree | fc51246df0b366ee7bf8084e6fe36b8ac2c7776d /content/common/gpu/gpu_command_buffer_stub.h | |
parent | 38a53866a1037af0cbf2604b587840c16e518462 (diff) | |
download | chromium_src-1d56e96465de6da2deaabb75160d8fc9f281d63a.zip chromium_src-1d56e96465de6da2deaabb75160d8fc9f281d63a.tar.gz chromium_src-1d56e96465de6da2deaabb75160d8fc9f281d63a.tar.bz2 |
GpuMemoryManager should limit memory allocations based on viewport size for android.
On android, we identify devices with low system memory via viewport size. WK ContentTextureManager previously
used viewport size information to select texture allocation limits. Now that GpuMemoryManager is assigning
these limits, that logic needed to move here.
BUG=123382
TEST=content_unittest.GpuMemoryManagerTest and Manual
Review URL: http://codereview.chromium.org/10274009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135351 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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h index 6a589fd..abbd455 100644 --- a/content/common/gpu/gpu_command_buffer_stub.h +++ b/content/common/gpu/gpu_command_buffer_stub.h @@ -67,6 +67,8 @@ class CONTENT_EXPORT GpuCommandBufferStubBase { virtual bool has_surface_state() const = 0; virtual const SurfaceState& surface_state() const = 0; + virtual gfx::Size GetSurfaceSize() const = 0; + virtual bool IsInSameContextShareGroup( const GpuCommandBufferStubBase& other) const = 0; @@ -120,6 +122,9 @@ class GpuCommandBufferStub virtual const GpuCommandBufferStubBase::SurfaceState& surface_state() const OVERRIDE; + // Returns surface size. + virtual gfx::Size GetSurfaceSize() const OVERRIDE; + // Returns true iff |other| is in the same context share group as this stub. virtual bool IsInSameContextShareGroup( const GpuCommandBufferStubBase& other) const OVERRIDE; |