| 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 "cc/resources/gpu_memory_buffer_manager.h" | |
| 13 #include "content/common/child_process_messages.h" | 12 #include "content/common/child_process_messages.h" |
| 14 #include "content/common/gpu/client/gpu_channel_host.h" | 13 #include "content/common/gpu/client/gpu_channel_host.h" |
| 15 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" | 14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
| 16 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" | 15 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" |
| 17 #include "content/common/gpu/gpu_messages.h" | 16 #include "content/common/gpu/gpu_messages.h" |
| 18 #include "content/common/view_messages.h" | 17 #include "content/common/view_messages.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 "ui/gfx/size.h" | 22 #include "ui/gfx/size.h" |
| 23 #include "ui/gl/gl_bindings.h" | 23 #include "ui/gl/gl_bindings.h" |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 gfx::GpuMemoryBuffer::Format ImageFormatToGpuMemoryBufferFormat( | 28 gfx::GpuMemoryBuffer::Format ImageFormatToGpuMemoryBufferFormat( |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 if (!ui::LatencyInfo::Verify( | 582 if (!ui::LatencyInfo::Verify( |
| 583 latency_info, "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { | 583 latency_info, "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { |
| 584 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>()); | 584 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>()); |
| 585 return; | 585 return; |
| 586 } | 586 } |
| 587 swap_buffers_completion_callback_.Run(latency_info); | 587 swap_buffers_completion_callback_.Run(latency_info); |
| 588 } | 588 } |
| 589 } | 589 } |
| 590 | 590 |
| 591 } // namespace content | 591 } // namespace content |
| OLD | NEW |