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

Unified Diff: content/common/gpu/gpu_memory_manager_unittest.cc

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 | « content/common/gpu/gpu_memory_manager.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_manager_unittest.cc
diff --git a/content/common/gpu/gpu_memory_manager_unittest.cc b/content/common/gpu/gpu_memory_manager_unittest.cc
index 3e562031a2776821942c69b98c6b8d6c272769c4..cc527801314926b19fb7fc0628ff70a3c6991377 100644
--- a/content/common/gpu/gpu_memory_manager_unittest.cc
+++ b/content/common/gpu/gpu_memory_manager_unittest.cc
@@ -33,6 +33,9 @@ class FakeCommandBufferStub : public GpuCommandBufferStubBase {
return surface_state_;
}
+ virtual gfx::Size GetSurfaceSize() const {
+ return gfx::Size();
+ }
virtual bool IsInSameContextShareGroup(
const GpuCommandBufferStubBase& stub) const {
return false;
@@ -64,6 +67,9 @@ class FakeCommandBufferStubWithoutSurface : public GpuCommandBufferStubBase {
return *surface_state_;
}
+ virtual gfx::Size GetSurfaceSize() const {
+ return gfx::Size();
+ }
virtual bool IsInSameContextShareGroup(
const GpuCommandBufferStubBase& stub) const {
return std::find(share_group_.begin(),
« no previous file with comments | « content/common/gpu/gpu_memory_manager.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698