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 "gpu/ipc/client/command_buffer_proxy_impl.h" | 5 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; | 772 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; |
773 params_mac.surface_handle = params.surface_handle; | 773 params_mac.surface_handle = params.surface_handle; |
774 params_mac.ca_context_id = params.ca_context_id; | 774 params_mac.ca_context_id = params.ca_context_id; |
775 params_mac.fullscreen_low_power_ca_context_valid = | 775 params_mac.fullscreen_low_power_ca_context_valid = |
776 params.fullscreen_low_power_ca_context_valid; | 776 params.fullscreen_low_power_ca_context_valid; |
777 params_mac.fullscreen_low_power_ca_context_id = | 777 params_mac.fullscreen_low_power_ca_context_id = |
778 params.fullscreen_low_power_ca_context_id; | 778 params.fullscreen_low_power_ca_context_id; |
779 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); | 779 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); |
780 params_mac.pixel_size = params.pixel_size; | 780 params_mac.pixel_size = params.pixel_size; |
781 params_mac.scale_factor = params.scale_factor; | 781 params_mac.scale_factor = params.scale_factor; |
| 782 params_mac.responses = std::move(params.in_use_responses); |
782 gpu::GpuProcessHostedCALayerTreeParamsMac* mac_frame_ptr = ¶ms_mac; | 783 gpu::GpuProcessHostedCALayerTreeParamsMac* mac_frame_ptr = ¶ms_mac; |
783 #else | 784 #else |
784 gpu::GpuProcessHostedCALayerTreeParamsMac* mac_frame_ptr = nullptr; | 785 gpu::GpuProcessHostedCALayerTreeParamsMac* mac_frame_ptr = nullptr; |
785 #endif | 786 #endif |
786 | 787 |
787 if (!swap_buffers_completion_callback_.is_null()) { | 788 if (!swap_buffers_completion_callback_.is_null()) { |
788 if (!ui::LatencyInfo::Verify( | 789 if (!ui::LatencyInfo::Verify( |
789 params.latency_info, | 790 params.latency_info, |
790 "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { | 791 "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { |
791 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>(), | 792 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>(), |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 gpu_control_client_->OnGpuControlLostContext(); | 877 gpu_control_client_->OnGpuControlLostContext(); |
877 } | 878 } |
878 | 879 |
879 CommandBufferProxyImpl::ImageInfo::ImageInfo() {} | 880 CommandBufferProxyImpl::ImageInfo::ImageInfo() {} |
880 CommandBufferProxyImpl::ImageInfo::~ImageInfo() {} | 881 CommandBufferProxyImpl::ImageInfo::~ImageInfo() {} |
881 CommandBufferProxyImpl::ImageInfo::ImageInfo(ImageInfo&& other) = default; | 882 CommandBufferProxyImpl::ImageInfo::ImageInfo(ImageInfo&& other) = default; |
882 CommandBufferProxyImpl::ImageInfo& CommandBufferProxyImpl::ImageInfo::operator=( | 883 CommandBufferProxyImpl::ImageInfo& CommandBufferProxyImpl::ImageInfo::operator=( |
883 ImageInfo&& other) = default; | 884 ImageInfo&& other) = default; |
884 | 885 |
885 } // namespace gpu | 886 } // namespace gpu |
OLD | NEW |