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

Unified Diff: content/common/gpu/gpu_memory_manager.h

Issue 9289052: Adding GpuMemoryManager to track GpuCommandBufferStub visibility and last_used_time and dictate mem… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor updates, working on tests Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698