| Index: gpu/command_buffer/service/gl_context_virtual.cc
|
| diff --git a/gpu/command_buffer/service/gl_context_virtual.cc b/gpu/command_buffer/service/gl_context_virtual.cc
|
| index 77341a9cb3f857d515d4973ba1913a5985cdc2c8..998d553d69ae97cf21dcd3a8addfdf5bc5eb36ad 100644
|
| --- a/gpu/command_buffer/service/gl_context_virtual.cc
|
| +++ b/gpu/command_buffer/service/gl_context_virtual.cc
|
| @@ -106,21 +106,6 @@ void GLContextVirtual::SetUnbindFboOnMakeCurrent() {
|
| shared_context_->SetUnbindFboOnMakeCurrent();
|
| }
|
|
|
| -base::Closure GLContextVirtual::GetStateWasDirtiedExternallyCallback() {
|
| - return shared_context_->GetStateWasDirtiedExternallyCallback();
|
| -}
|
| -
|
| -void GLContextVirtual::RestoreStateIfDirtiedExternally() {
|
| - // The dirty bit should only be cleared after the state has been restored,
|
| - // which should be done only when the context is current.
|
| - DCHECK(IsCurrent(NULL));
|
| - if (!shared_context_->GetStateWasDirtiedExternally())
|
| - return;
|
| - gfx::ScopedSetGLToRealGLApi scoped_set_gl_api;
|
| - GetGLStateRestorer()->RestoreState(NULL);
|
| - shared_context_->SetStateWasDirtiedExternally(false);
|
| -}
|
| -
|
| GLContextVirtual::~GLContextVirtual() {
|
| Destroy();
|
| }
|
|
|