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

Unified Diff: content/common/gpu/gpu_channel.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
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/gpu_command_buffer_stub.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 7fc6baf2b86bff1e284b4e3212278e2aacdc2ad3..91e49354003c96aa0656394ede16e4b1655f6738 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -16,6 +16,7 @@
#include "base/process.h"
#include "build/build_config.h"
#include "content/common/gpu/gpu_command_buffer_stub.h"
+#include "content/common/gpu/gpu_memory_manager.h"
#include "content/common/message_router.h"
#include "ipc/ipc_sync_channel.h"
#include "ui/gfx/gl/gl_share_group.h"
@@ -36,6 +37,7 @@ class WaitableEvent;
// process. On the renderer side there's a corresponding GpuChannelHost.
class GpuChannel : public IPC::Channel::Listener,
public IPC::Message::Sender,
+ public GpuMemoryManagerClient,
jonathan.backer 2012/01/31 18:13:58 Necessary?
mmocny 2012/01/31 18:54:57 Indeed, no. On 2012/01/31 18:13:58, jonathan.backe
public base::RefCountedThreadSafe<GpuChannel> {
public:
// Takes ownership of the renderer process handle.
@@ -73,6 +75,12 @@ class GpuChannel : public IPC::Channel::Listener,
// IPC::Message::Sender implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
+ // GpuMemoryManagerClient implementation:
+ virtual void AppendAllCommandBufferStubs(
nduca 2012/01/31 06:53:47 Overkill. Just append them all. Then filter then a
mmocny 2012/01/31 18:54:57 Done.
+ std::vector<GpuMemoryManageableCommandBufferStub*>& stubs_with_surface,
+ std::vector<GpuMemoryManageableCommandBufferStub*>& stubs_without_surface)
+ OVERRIDE;
+
// Whether this channel is able to handle IPC messages.
bool IsScheduled();
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/gpu_command_buffer_stub.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698