Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index 407ac03b1fbfb92011eb4bb31de74c4a0a855b09..4fd2d78a74e5ff636cbcf7f36b85bbae0c54988e 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -196,7 +196,6 @@ GpuCommandBufferStub::GpuCommandBufferStub( |
surface_id_(surface_id), |
software_(software), |
last_flush_count_(0), |
- last_memory_allocation_valid_(false), |
watchdog_(watchdog), |
sync_point_wait_count_(0), |
delayed_work_scheduled_(false), |
@@ -261,9 +260,7 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { |
message.type() != GpuCommandBufferMsg_RegisterTransferBuffer::ID && |
message.type() != GpuCommandBufferMsg_DestroyTransferBuffer::ID && |
message.type() != GpuCommandBufferMsg_RetireSyncPoint::ID && |
- message.type() != GpuCommandBufferMsg_SignalSyncPoint::ID && |
- message.type() != |
- GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback::ID) { |
+ message.type() != GpuCommandBufferMsg_SignalSyncPoint::ID) { |
if (!MakeCurrent()) |
return false; |
have_context = true; |
@@ -301,9 +298,6 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { |
OnSignalSyncPoint) |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SignalQuery, |
OnSignalQuery) |
- IPC_MESSAGE_HANDLER( |
- GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, |
- OnSetClientHasMemoryAllocationChangedCallback) |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_CreateImage, OnCreateImage); |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DestroyImage, OnDestroyImage); |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_CreateStreamTexture, |
@@ -440,8 +434,6 @@ void GpuCommandBufferStub::Destroy() { |
new GpuHostMsg_DestroyCommandBuffer(surface_id())); |
} |
- memory_manager_client_state_.reset(); |
- |
while (!sync_points_.empty()) |
OnRetireSyncPoint(sync_points_.front()); |
@@ -884,8 +876,6 @@ void GpuCommandBufferStub::OnCreateVideoEncoder( |
void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) { |
piman
2015/09/28 18:32:38
Sounds like we can remove the IPC too then. maybe
sohanjg
2015/09/29 14:19:26
Acknowledged.
|
TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSetSurfaceVisible"); |
- if (memory_manager_client_state_) |
- memory_manager_client_state_->SetVisible(visible); |
} |
void GpuCommandBufferStub::AddSyncPoint(uint32 sync_point) { |
@@ -977,22 +967,6 @@ void GpuCommandBufferStub::OnSignalQuery(uint32 query_id, uint32 id) { |
OnSignalSyncPointAck(id); |
} |
- |
-void GpuCommandBufferStub::OnSetClientHasMemoryAllocationChangedCallback( |
- bool has_callback) { |
- TRACE_EVENT0( |
- "gpu", |
- "GpuCommandBufferStub::OnSetClientHasMemoryAllocationChangedCallback"); |
- if (has_callback) { |
- if (!memory_manager_client_state_) { |
- memory_manager_client_state_.reset(GetMemoryManager()->CreateClientState( |
- this, surface_id_ != 0, true)); |
- } |
- } else { |
- memory_manager_client_state_.reset(); |
- } |
-} |
- |
void GpuCommandBufferStub::OnCreateImage(int32 id, |
gfx::GpuMemoryBufferHandle handle, |
gfx::Size size, |
@@ -1105,18 +1079,6 @@ gpu::gles2::MemoryTracker* GpuCommandBufferStub::GetMemoryTracker() const { |
return context_group_->memory_tracker(); |
} |
-void GpuCommandBufferStub::SetMemoryAllocation( |
- const gpu::MemoryAllocation& allocation) { |
- if (!last_memory_allocation_valid_ || |
- !allocation.Equals(last_memory_allocation_)) { |
- Send(new GpuCommandBufferMsg_SetMemoryAllocation( |
- route_id_, allocation)); |
- } |
- |
- last_memory_allocation_valid_ = true; |
- last_memory_allocation_ = allocation; |
-} |
- |
void GpuCommandBufferStub::SuggestHaveFrontBuffer( |
bool suggest_have_frontbuffer) { |
// This can be called outside of OnMessageReceived, so the context needs |