Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
index 6fcce8a4014f5d56b32aeff0aa7a06136ec7d11c..7533d044cd3226162d9a368bf60eeb1a2ac922b6 100644 |
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
@@ -264,10 +264,6 @@ bool WebGraphicsContext3DCommandBufferImpl::MaybeInitializeGL( |
g_all_shared_contexts.Pointer()->insert(this); |
} |
- command_buffer_->SetMemoryAllocationChangedCallback(base::Bind( |
- &WebGraphicsContext3DCommandBufferImpl::OnMemoryAllocationChanged, |
- weak_ptr_factory_.GetWeakPtr())); |
- |
visible_ = true; |
initialized_ = true; |
return true; |
@@ -680,6 +676,10 @@ void WebGraphicsContext3DCommandBufferImpl:: |
setMemoryAllocationChangedCallbackCHROMIUM( |
WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { |
memory_allocation_changed_callback_ = callback; |
+ |
nduca
2012/04/23 22:12:18
what if they clear clear it? You need to remove th
|
+ command_buffer_->SetMemoryAllocationChangedCallback(base::Bind( |
+ &WebGraphicsContext3DCommandBufferImpl::OnMemoryAllocationChanged, |
+ weak_ptr_factory_.GetWeakPtr())); |
} |