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

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

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: more tests Created 8 years, 5 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_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 0605cc0cb5110713e489ad6b038785cb57b7b7fd..6a3a737f7336d9fbe57f81ddc8a030430d3087ac 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -7,6 +7,7 @@
#include <deque>
#include <string>
+#include <vector>
#include "base/id_map.h"
#include "base/memory/ref_counted.h"
@@ -34,6 +35,9 @@ class WaitableEvent;
namespace gpu {
struct RefCountedCounter;
+namespace gles2 {
+class ProgramCache;
+}
}
// Encapsulates an IPC channel between the GPU process and one renderer
@@ -48,7 +52,8 @@ class GpuChannel : public IPC::Listener,
gfx::GLShareGroup* share_group,
gpu::gles2::MailboxManager* mailbox_manager,
int client_id,
- bool software);
+ bool software,
+ gpu::gles2::ProgramCache* program_cache);
bool Init(base::MessageLoopProxy* io_message_loop,
base::WaitableEvent* shutdown_event);
@@ -138,6 +143,8 @@ class GpuChannel : public IPC::Listener,
// are destroyed. So a raw pointer is safe.
GpuChannelManager* gpu_channel_manager_;
+ gpu::gles2::ProgramCache* program_cache_;
+
scoped_ptr<IPC::SyncChannel> channel_;
// Number of routed messages for pending processing on a stub.
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | gpu/command_buffer/service/memory_program_cache_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698