| 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/memory/shared_memory.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "content/common/child_process_messages.h" | 12 #include "content/common/child_process_messages.h" |
| 13 #include "content/common/gpu/client/gpu_channel_host.h" | 13 #include "content/common/gpu/client/gpu_channel_host.h" |
| 14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" | 14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
| 15 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" | 15 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" |
| 16 #include "content/common/gpu/gpu_messages.h" | 16 #include "content/common/gpu/gpu_messages.h" |
| 17 #include "content/common/view_messages.h" | 17 #include "content/common/view_messages.h" |
| 18 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 18 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.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 "gpu/command_buffer/common/gpu_memory_allocation.h" | 21 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 22 #include "gpu/command_buffer/service/image_factory.h" | 22 #include "gpu/command_buffer/service/image_factory.h" |
| 23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/geometry/size.h" |
| 24 #include "ui/gl/gl_bindings.h" | 24 #include "ui/gl/gl_bindings.h" |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 | 27 |
| 28 CommandBufferProxyImpl::CommandBufferProxyImpl( | 28 CommandBufferProxyImpl::CommandBufferProxyImpl( |
| 29 GpuChannelHost* channel, | 29 GpuChannelHost* channel, |
| 30 int route_id) | 30 int route_id) |
| 31 : channel_(channel), | 31 : channel_(channel), |
| 32 route_id_(route_id), | 32 route_id_(route_id), |
| 33 flush_count_(0), | 33 flush_count_(0), |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 if (!ui::LatencyInfo::Verify( | 532 if (!ui::LatencyInfo::Verify( |
| 533 latency_info, "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { | 533 latency_info, "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { |
| 534 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>()); | 534 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>()); |
| 535 return; | 535 return; |
| 536 } | 536 } |
| 537 swap_buffers_completion_callback_.Run(latency_info); | 537 swap_buffers_completion_callback_.Run(latency_info); |
| 538 } | 538 } |
| 539 } | 539 } |
| 540 | 540 |
| 541 } // namespace content | 541 } // namespace content |
| OLD | NEW |