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

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: memory limit + lru 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..38c1329b53163d4f248715ee23644089b297c363 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -11,6 +11,7 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
greggman 2012/06/25 18:53:03 Is this needed?
dmurph 2012/06/26 02:32:56 Nope, thought I had caught all of these haha.
#include "gpu/command_buffer/common/gles2_cmd_format.h"
#include "gpu/command_buffer/service/gles2_cmd_validation.h"
#include "gpu/command_buffer/service/feature_info.h"
@@ -23,6 +24,7 @@ class TransferBufferManagerInterface;
namespace gles2 {
+class ProgramCache;
class BufferManager;
class GLES2Decoder;
class FramebufferManager;
@@ -41,7 +43,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 +152,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