| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 13 #include "content/common/child_process_messages.h" | 13 #include "content/common/child_process_messages.h" |
| 14 #include "content/common/gpu/gpu_memory_allocation.h" | |
| 15 #include "content/common/gpu/client/gpu_channel_host.h" | 14 #include "content/common/gpu/client/gpu_channel_host.h" |
| 16 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" | 15 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
| 16 #include "content/common/gpu/gpu_memory_allocation.h" |
| 17 #include "content/common/gpu/gpu_messages.h" | 17 #include "content/common/gpu/gpu_messages.h" |
| 18 #include "content/common/plugin_messages.h" | |
| 19 #include "content/common/view_messages.h" | 18 #include "content/common/view_messages.h" |
| 20 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 19 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
| 21 #include "gpu/command_buffer/common/command_buffer_shared.h" | 20 #include "gpu/command_buffer/common/command_buffer_shared.h" |
| 22 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
| 23 | 22 |
| 24 namespace content { | 23 namespace content { |
| 25 | 24 |
| 26 CommandBufferProxyImpl::CommandBufferProxyImpl( | 25 CommandBufferProxyImpl::CommandBufferProxyImpl( |
| 27 GpuChannelHost* channel, | 26 GpuChannelHost* channel, |
| 28 int route_id) | 27 int route_id) |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 void CommandBufferProxyImpl::SendManagedMemoryStats( | 543 void CommandBufferProxyImpl::SendManagedMemoryStats( |
| 545 const GpuManagedMemoryStats& stats) { | 544 const GpuManagedMemoryStats& stats) { |
| 546 if (last_state_.error != gpu::error::kNoError) | 545 if (last_state_.error != gpu::error::kNoError) |
| 547 return; | 546 return; |
| 548 | 547 |
| 549 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, | 548 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, |
| 550 stats)); | 549 stats)); |
| 551 } | 550 } |
| 552 | 551 |
| 553 } // namespace content | 552 } // namespace content |
| OLD | NEW |