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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: solid in-memory implementation 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/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index 14db7734484cd868a4d0afb2fff488b4dfd0a0cb..4703883733d2b8ccd96cd9f1e8a7baf4c67244b0 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -4,6 +4,7 @@
#include "base/at_exit.h"
#include "base/bind.h"
+#include "base/memory/weak_ptr.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/gles2_lib.h"
#include "gpu/command_buffer/client/transfer_buffer.h"
@@ -19,6 +20,9 @@
#include "ui/gl/gl_surface.h"
namespace gpu {
+namespace gles2 {
+class ProgramCache;
+}
GLManager::GLManager() {
}
@@ -95,7 +99,9 @@ void GLManager::Setup(
if (!context_group) {
context_group = new gles2::ContextGroup(
- mailbox_manager_.get(), kBindGeneratesResource);
+ mailbox_manager_.get(),
+ kBindGeneratesResource,
+ base::WeakPtr<gles2::ProgramCache>());
}
decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group));

Powered by Google App Engine
This is Rietveld 408576698