Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..846ba2cc3d22fa63f89176e7ddf328deea4fdaee |
| --- /dev/null |
| +++ b/content/common/gpu/gpu_memory_manager.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ |
| +#define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ |
| +#pragma once |
| + |
| +#if defined(ENABLE_GPU) |
| + |
| +#include "content/common/gpu/gpu_memory_management.h" |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
|
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
|
| + |
| +class GpuMemoryManager { |
| +public: |
| + GpuMemoryManager(GpuMemoryManagerClient* client); |
| + ~GpuMemoryManager(); |
| + |
| + void SetMemoryManagerClient(GpuMemoryManagerClient* client); |
| + |
| + void ScheduleManage(); |
| + 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.
|
| + |
| +private: |
| + GpuMemoryManagerClient* client_; |
| + bool manage_scheduled_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GpuMemoryManager); |
| +}; |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| + |
| +#endif |
| + |
| +#endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ |