Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1180)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 10274009: GpuMemoryManager should limit memory allocations based on viewport size for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding const Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index 892c0d9ae39b35a6ea24c9577ecc41566c7ca9b7..2cda614513c7264ec6fb789e6ffb7dd0da7ef01a 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;
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698