Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment + android_arm64_dbg_recipe bot issue. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/command_buffer_proxy_impl.cc
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index 17ecca2741cc2db4748c4f974cb56c5dacc27614..fc0cb83a2d75b6a090abcfaca63392033f7048d2 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -68,8 +68,6 @@ bool CommandBufferProxyImpl::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(CommandBufferProxyImpl, message)
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_Destroyed, OnDestroyed);
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_ConsoleMsg, OnConsoleMessage);
- IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetMemoryAllocation,
- OnSetMemoryAllocation);
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SignalSyncPointAck,
OnSignalSyncPointAck);
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SwapBuffersCompleted,
@@ -128,17 +126,6 @@ void CommandBufferProxyImpl::OnConsoleMessage(
}
}
-void CommandBufferProxyImpl::SetMemoryAllocationChangedCallback(
- const MemoryAllocationChangedCallback& callback) {
- CheckLock();
- if (last_state_.error != gpu::error::kNoError)
- return;
-
- memory_allocation_changed_callback_ = callback;
- Send(new GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback(
- route_id_, !memory_allocation_changed_callback_.is_null()));
-}
-
void CommandBufferProxyImpl::AddDeletionObserver(DeletionObserver* observer) {
CheckLock();
deletion_observers_.AddObserver(observer);
@@ -150,12 +137,6 @@ void CommandBufferProxyImpl::RemoveDeletionObserver(
deletion_observers_.RemoveObserver(observer);
}
-void CommandBufferProxyImpl::OnSetMemoryAllocation(
- const gpu::MemoryAllocation& allocation) {
- if (!memory_allocation_changed_callback_.is_null())
- memory_allocation_changed_callback_.Run(allocation);
-}
-
void CommandBufferProxyImpl::OnSignalSyncPointAck(uint32 id) {
SignalTaskMap::iterator it = signal_tasks_.find(id);
DCHECK(it != signal_tasks_.end());
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | content/common/gpu/client/context_provider_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698