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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 10 matching lines...) Expand all
21 namespace content { 21 namespace content {
22 22
23 class GpuChannelManager; 23 class GpuChannelManager;
24 class GpuMemoryManagerClient; 24 class GpuMemoryManagerClient;
25 class GpuMemoryManagerClientState; 25 class GpuMemoryManagerClientState;
26 class GpuMemoryTrackingGroup; 26 class GpuMemoryTrackingGroup;
27 27
28 class CONTENT_EXPORT GpuMemoryManager : 28 class CONTENT_EXPORT GpuMemoryManager :
29 public base::SupportsWeakPtr<GpuMemoryManager> { 29 public base::SupportsWeakPtr<GpuMemoryManager> {
30 public: 30 public:
31 #if defined(OS_ANDROID)
31 enum { kDefaultMaxSurfacesWithFrontbufferSoftLimit = 8 }; 32 enum { kDefaultMaxSurfacesWithFrontbufferSoftLimit = 8 };
epenner 2013/02/12 22:28:19 This looks reversed.
piman 2013/02/12 22:31:16 It does...
33 #else
34 enum { kDefaultMaxSurfacesWithFrontbufferSoftLimit = 1 };
35 #endif
32 enum ScheduleManageTime { 36 enum ScheduleManageTime {
33 // Add a call to Manage to the thread's message loop immediately. 37 // Add a call to Manage to the thread's message loop immediately.
34 kScheduleManageNow, 38 kScheduleManageNow,
35 // Add a Manage call to the thread's message loop for execution 1/60th of 39 // Add a Manage call to the thread's message loop for execution 1/60th of
36 // of a second from now. 40 // of a second from now.
37 kScheduleManageLater, 41 kScheduleManageLater,
38 }; 42 };
39 43
40 GpuMemoryManager(GpuChannelManager* channel_manager, 44 GpuMemoryManager(GpuChannelManager* channel_manager,
41 uint64 max_surfaces_with_frontbuffer_soft_limit); 45 uint64 max_surfaces_with_frontbuffer_soft_limit);
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 287
284 // Used to disable automatic changes to Manage() in testing. 288 // Used to disable automatic changes to Manage() in testing.
285 bool disable_schedule_manage_; 289 bool disable_schedule_manage_;
286 290
287 DISALLOW_COPY_AND_ASSIGN(GpuMemoryManager); 291 DISALLOW_COPY_AND_ASSIGN(GpuMemoryManager);
288 }; 292 };
289 293
290 } // namespace content 294 } // namespace content
291 295
292 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ 296 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_
OLDNEW
« 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