| Index: cc/test/test_context_provider.cc
 | 
| diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc
 | 
| index 4c24fe1efebaaa4bcdc376212aa606f4345270fb..bf85ea3a7d735f413479a31c0c060ffce841d117 100644
 | 
| --- a/cc/test/test_context_provider.cc
 | 
| +++ b/cc/test/test_context_provider.cc
 | 
| @@ -13,7 +13,7 @@
 | 
|  #include "cc/test/test_gles2_interface.h"
 | 
|  #include "cc/test/test_web_graphics_context_3d.h"
 | 
|  #include "third_party/skia/include/gpu/GrContext.h"
 | 
| -#include "third_party/skia/include/gpu/gl/GrGLInterface.h"
 | 
| +#include "third_party/skia/include/gpu/gl/SkNullGLContext.h"
 | 
|  
 | 
|  namespace cc {
 | 
|  
 | 
| @@ -69,6 +69,10 @@ bool TestContextProvider::BindToCurrentThread() {
 | 
|    return true;
 | 
|  }
 | 
|  
 | 
| +void TestContextProvider::DetachFromThread() {
 | 
| +  context_thread_checker_.DetachFromThread();
 | 
| +}
 | 
| +
 | 
|  ContextProvider::Capabilities TestContextProvider::ContextCapabilities() {
 | 
|    DCHECK(bound_);
 | 
|    DCHECK(context_thread_checker_.CalledOnValidThread());
 | 
| @@ -95,14 +99,21 @@ class GrContext* TestContextProvider::GrContext() {
 | 
|    if (gr_context_)
 | 
|      return gr_context_.get();
 | 
|  
 | 
| -  skia::RefPtr<const GrGLInterface> null_interface =
 | 
| -      skia::AdoptRef(GrGLCreateNullInterface());
 | 
| +  skia::RefPtr<class SkGLContext> gl_context =
 | 
| +      skia::AdoptRef(SkNullGLContext::Create(kNone_GrGLStandard));
 | 
| +  gl_context->makeCurrent();
 | 
|    gr_context_ = skia::AdoptRef(GrContext::Create(
 | 
| -      kOpenGL_GrBackend,
 | 
| -      reinterpret_cast<GrBackendContext>(null_interface.get())));
 | 
| +      kOpenGL_GrBackend, reinterpret_cast<GrBackendContext>(gl_context->gl())));
 | 
|    return gr_context_.get();
 | 
|  }
 | 
|  
 | 
| +void TestContextProvider::SetupLock() {
 | 
| +}
 | 
| +
 | 
| +base::Lock* TestContextProvider::GetLock() {
 | 
| +  return &context_lock_;
 | 
| +}
 | 
| +
 | 
|  bool TestContextProvider::IsContextLost() {
 | 
|    DCHECK(bound_);
 | 
|    DCHECK(context_thread_checker_.CalledOnValidThread());
 | 
| 
 |