| 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));
|
|
|