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/memory/shared_memory.h" |
10 #include "base/process_util.h" | 11 #include "base/process_util.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/client/gpu_channel_host.h" | 14 #include "content/common/gpu/client/gpu_channel_host.h" |
15 #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" | 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/view_messages.h" | 18 #include "content/common/view_messages.h" |
19 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 19 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
20 #include "gpu/command_buffer/common/command_buffer_shared.h" | 20 #include "gpu/command_buffer/common/command_buffer_shared.h" |
21 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 void CommandBufferProxyImpl::SendManagedMemoryStats( | 548 void CommandBufferProxyImpl::SendManagedMemoryStats( |
549 const GpuManagedMemoryStats& stats) { | 549 const GpuManagedMemoryStats& stats) { |
550 if (last_state_.error != gpu::error::kNoError) | 550 if (last_state_.error != gpu::error::kNoError) |
551 return; | 551 return; |
552 | 552 |
553 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, | 553 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, |
554 stats)); | 554 stats)); |
555 } | 555 } |
556 | 556 |
557 } // namespace content | 557 } // namespace content |
OLD | NEW |