OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |