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

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch Created 8 years, 6 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: gpu/command_buffer/service/context_group.h
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 2f3eaf9631e76b7632a54d3663ea7d334e90ac81..e6b8d4e164b7b6c2b01e09c7b4acde4934809781 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -23,6 +23,7 @@ class TransferBufferManagerInterface;
namespace gles2 {
+class ProgramCache;
class BufferManager;
class GLES2Decoder;
class FramebufferManager;
@@ -41,7 +42,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
ContextGroup(
MailboxManager* mailbox_manager,
- bool bind_generates_resource);
+ bool bind_generates_resource,
+ ProgramCache* program_cache);
// This should only be called by GLES2Decoder. This must be paired with a
// call to destroy if it succeeds.
@@ -149,6 +151,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
uint32 max_varying_vectors_;
uint32 max_vertex_uniform_vectors_;
+ ProgramCache* program_cache_;
+
scoped_ptr<BufferManager> buffer_manager_;
scoped_ptr<FramebufferManager> framebuffer_manager_;

Powered by Google App Engine
This is Rietveld 408576698