| Index: cc/test/test_context_provider.cc
|
| diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc
|
| index 7bc949aae4ec3bf7e51e9411a7261908912e69b3..7ee96ef7ef006441a312262904af10e9310df8c2 100644
|
| --- a/cc/test/test_context_provider.cc
|
| +++ b/cc/test/test_context_provider.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/callback_helpers.h"
|
| #include "base/logging.h"
|
| #include "base/strings/string_split.h"
|
| +#include "cc/test/test_gles2_interface.h"
|
| #include "cc/test/test_web_graphics_context_3d.h"
|
|
|
| namespace cc {
|
| @@ -72,6 +73,7 @@ scoped_refptr<TestContextProvider> TestContextProvider::Create(
|
| TestContextProvider::TestContextProvider(
|
| scoped_ptr<TestWebGraphicsContext3D> context)
|
| : context3d_(context.Pass()),
|
| + context_gl_stub_(TestGLES2Interface::Create()),
|
| bound_(false),
|
| destroyed_(false) {
|
| DCHECK(main_thread_checker_.CalledOnValidThread());
|
| @@ -129,7 +131,7 @@ gpu::gles2::GLES2Interface* TestContextProvider::ContextGL() {
|
| DCHECK(bound_);
|
| DCHECK(context_thread_checker_.CalledOnValidThread());
|
|
|
| - return &context_gl_stub_;
|
| + return context_gl_stub_.get();;
|
| }
|
|
|
| gpu::ContextSupport* TestContextProvider::ContextSupport() {
|
|
|