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_CLIENT_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ | 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 12 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
13 #include "gpu/command_buffer/service/memory_tracking.h" | 13 #include "gpu/command_buffer/service/memory_tracking.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/geometry/size.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class GpuMemoryManager; | 18 class GpuMemoryManager; |
19 class GpuMemoryTrackingGroup; | 19 class GpuMemoryTrackingGroup; |
20 | 20 |
21 // The interface that the GPU memory manager uses to manipulate a client (to | 21 // The interface that the GPU memory manager uses to manipulate a client (to |
22 // send it allocation information and query its properties). | 22 // send it allocation information and query its properties). |
23 class CONTENT_EXPORT GpuMemoryManagerClient { | 23 class CONTENT_EXPORT GpuMemoryManagerClient { |
24 public: | 24 public: |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool list_iterator_valid_; | 81 bool list_iterator_valid_; |
82 | 82 |
83 // Set to disable allocating a frontbuffer or to disable allocations | 83 // Set to disable allocating a frontbuffer or to disable allocations |
84 // for clients that don't have surfaces. | 84 // for clients that don't have surfaces. |
85 bool hibernated_; | 85 bool hibernated_; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace content | 88 } // namespace content |
89 | 89 |
90 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ | 90 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
OLD | NEW |