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

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: 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..3839faef064672f9a1a98231241f50c2d4098952 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,7 @@
#include "ui/gl/gl_surface.h"
namespace gpu {
+class ShaderCache;
GLManager::GLManager() {
}
@@ -94,8 +96,9 @@ void GLManager::Setup(
attribs.push_back(EGL_NONE);
if (!context_group) {
- context_group = new gles2::ContextGroup(
- mailbox_manager_.get(), kBindGeneratesResource);
+ context_group = new gles2::ContextGroup(mailbox_manager_.get(),
+ kBindGeneratesResource,
+ base::WeakPtr<ShaderCache>());
}
decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group));

Powered by Google App Engine
This is Rietveld 408576698