Index: cc/gl_renderer.cc |
diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc |
index 59fa40669a36fbe322d96761bd31e50f93912055..2ea2870439540e187dbde6dc7000db88f11354f1 100644 |
--- a/cc/gl_renderer.cc |
+++ b/cc/gl_renderer.cc |
@@ -110,7 +110,6 @@ bool GLRenderer::Initialize() { |
if (!context_->makeContextCurrent()) |
return false; |
- context_->setContextLostCallback(this); |
context_->pushGroupMarkerEXT("CompositorContext"); |
std::string extensions_string = |
@@ -135,8 +134,6 @@ bool GLRenderer::Initialize() { |
if (client_->HasImplThread()) |
capabilities_.using_swap_complete_callback = |
extensions.count("GL_CHROMIUM_swapbuffers_complete_callback"); |
- if (capabilities_.using_swap_complete_callback) |
- context_->setSwapBuffersCompleteCallbackCHROMIUM(this); |
capabilities_.using_set_visibility = |
extensions.count("GL_CHROMIUM_set_visibility"); |
@@ -181,9 +178,7 @@ bool GLRenderer::Initialize() { |
} |
GLRenderer::~GLRenderer() { |
- context_->setSwapBuffersCompleteCallbackCHROMIUM(NULL); |
context_->setMemoryAllocationChangedCallbackCHROMIUM(NULL); |
- context_->setContextLostCallback(NULL); |
CleanupSharedObjects(); |
} |
@@ -1609,12 +1604,6 @@ bool GLRenderer::SwapBuffers() { |
return true; |
} |
-void GLRenderer::ReceiveCompositorFrameAck(const CompositorFrameAck& ack) { |
- onSwapBuffersComplete(); |
-} |
- |
-void GLRenderer::onSwapBuffersComplete() { client_->OnSwapBuffersComplete(); } |
- |
void GLRenderer::onMemoryAllocationChanged( |
WebGraphicsMemoryAllocation allocation) { |
// Just ignore the memory manager when it says to set the limit to zero |
@@ -1692,8 +1681,6 @@ void GLRenderer::EnsureBackbuffer() { |
is_backbuffer_discarded_ = false; |
} |
-void GLRenderer::onContextLost() { client_->DidLoseOutputSurface(); } |
- |
void GLRenderer::GetFramebufferPixels(void* pixels, gfx::Rect rect) { |
DCHECK(rect.right() <= ViewportWidth()); |
DCHECK(rect.bottom() <= ViewportHeight()); |