Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: gpu/ipc/client/command_buffer_proxy_impl.cc

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 = &params_mac; 783 gpu::GpuProcessHostedCALayerTreeParamsMac* mac_frame_ptr = &params_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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer_common.gypi ('k') | gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698