| Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
| index 7de1375e72544e4d7dcfdb487fc0dc3b2faf3404..5040c54fa100405e4cfbcc6e8786679d8dae0621 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
| @@ -7,6 +7,7 @@
|
| #include <algorithm>
|
| #include <string>
|
|
|
| +#include "base/memory/weak_ptr.h"
|
| #include "base/string_number_conversions.h"
|
| #include "gpu/command_buffer/common/gl_mock.h"
|
| #include "gpu/command_buffer/common/gles2_cmd_format.h"
|
| @@ -33,6 +34,7 @@ using ::testing::StrictMock;
|
|
|
| namespace gpu {
|
| namespace gles2 {
|
| +class ProgramCache;
|
|
|
| GLES2DecoderTestBase::GLES2DecoderTestBase()
|
| : surface_(NULL),
|
| @@ -83,7 +85,9 @@ void GLES2DecoderTestBase::InitDecoder(
|
| bool bind_generates_resource) {
|
| gl_.reset(new StrictMock<MockGLInterface>());
|
| ::gfx::GLInterface::SetGLInterface(gl_.get());
|
| - group_ = ContextGroup::Ref(new ContextGroup(NULL, bind_generates_resource));
|
| + group_ = ContextGroup::Ref(new ContextGroup(NULL,
|
| + bind_generates_resource,
|
| + base::WeakPtr<ProgramCache>()));
|
|
|
| InSequence sequence;
|
|
|
|
|