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

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

Issue 12218126: Only allow one frontbuffer on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_manager.h
diff --git a/content/common/gpu/gpu_memory_manager.h b/content/common/gpu/gpu_memory_manager.h
index 895f7b9b3c8f6a595131421ad455bc034d3c003e..a75984b59a246cf40f752f3f9916ed94227472ed 100644
--- a/content/common/gpu/gpu_memory_manager.h
+++ b/content/common/gpu/gpu_memory_manager.h
@@ -28,7 +28,11 @@ class GpuMemoryTrackingGroup;
class CONTENT_EXPORT GpuMemoryManager :
public base::SupportsWeakPtr<GpuMemoryManager> {
public:
+#if defined(OS_ANDROID)
enum { kDefaultMaxSurfacesWithFrontbufferSoftLimit = 8 };
epenner 2013/02/12 22:28:19 This looks reversed.
piman 2013/02/12 22:31:16 It does...
+#else
+ enum { kDefaultMaxSurfacesWithFrontbufferSoftLimit = 1 };
+#endif
enum ScheduleManageTime {
// Add a call to Manage to the thread's message loop immediately.
kScheduleManageNow,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698