Index: content/common/gpu/client/context_provider_command_buffer.cc |
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc |
index ba9f0ebfbed6a6f75196c29a7bf89da933557773..8111186f210a7b095d27ebf8bdd6e15d26eeb219 100644 |
--- a/content/common/gpu/client/context_provider_command_buffer.cc |
+++ b/content/common/gpu/client/context_provider_command_buffer.cc |
@@ -67,8 +67,6 @@ ContextProviderCommandBuffer::~ContextProviderCommandBuffer() { |
// Destroy references to the context3d_ before leaking it. |
if (context3d_->GetCommandBufferProxy()) { |
context3d_->GetCommandBufferProxy()->SetLock(nullptr); |
- context3d_->GetCommandBufferProxy()->SetMemoryAllocationChangedCallback( |
- CommandBufferProxyImpl::MemoryAllocationChangedCallback()); |
} |
lost_context_callback_proxy_.reset(); |
} |
@@ -232,19 +230,4 @@ void ContextProviderCommandBuffer::SetLostContextCallback( |
lost_context_callback_ = lost_context_callback; |
} |
-void ContextProviderCommandBuffer::SetMemoryPolicyChangedCallback( |
- const MemoryPolicyChangedCallback& memory_policy_changed_callback) { |
- DCHECK(context_thread_checker_.CalledOnValidThread()); |
- DCHECK(memory_policy_changed_callback_.is_null() || |
- memory_policy_changed_callback.is_null()); |
- memory_policy_changed_callback_ = memory_policy_changed_callback; |
- |
- if (!memory_policy_changed_callback_.is_null()) { |
- DCHECK(context3d_->GetCommandBufferProxy()); |
- context3d_->GetCommandBufferProxy()->SetMemoryAllocationChangedCallback( |
- base::Bind(&ContextProviderCommandBuffer::OnMemoryAllocationChanged, |
- base::Unretained(this))); |
- } |
-} |
- |
} // namespace content |