Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ | |
| 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #if defined(ENABLE_GPU) | |
| 10 | |
| 11 #include "content/common/gpu/gpu_memory_management.h" | |
| 12 | |
| 13 //////////////////////////////////////////////////////////////////////////////// | |
|
nduca
2012/01/31 06:53:47
not sure we do /// delimiters?
mmocny
2012/01/31 18:54:57
I've seen it used, even inside content/common sour
| |
| 14 | |
| 15 class GpuMemoryManager { | |
| 16 public: | |
| 17 GpuMemoryManager(GpuMemoryManagerClient* client); | |
| 18 ~GpuMemoryManager(); | |
| 19 | |
| 20 void SetMemoryManagerClient(GpuMemoryManagerClient* client); | |
| 21 | |
| 22 void ScheduleManage(); | |
| 23 void Manage(); | |
|
nduca
2012/01/31 06:53:47
You might put a comment on Manage() like "// Publi
mmocny
2012/01/31 18:54:57
Done.
| |
| 24 | |
| 25 private: | |
| 26 GpuMemoryManagerClient* client_; | |
| 27 bool manage_scheduled_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(GpuMemoryManager); | |
| 30 }; | |
| 31 | |
| 32 //////////////////////////////////////////////////////////////////////////////// | |
| 33 | |
| 34 #endif | |
| 35 | |
| 36 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ | |
| OLD | NEW |