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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 337303003: CARemoteLayer alive-ish (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1423 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1424 ack_params.sync_point = 0; 1424 ack_params.sync_point = 0;
1425 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, 1425 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id,
1426 params.gpu_process_host_id, 1426 params.gpu_process_host_id,
1427 ack_params); 1427 ack_params);
1428 return; 1428 return;
1429 } 1429 }
1430 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params; 1430 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params;
1431 gpu_params.surface_id = params.surface_id; 1431 gpu_params.surface_id = params.surface_id;
1432 gpu_params.surface_handle = params.surface_handle; 1432 gpu_params.surface_handle = params.surface_handle;
1433 gpu_params.ca_context_id = params.ca_context_id;
1433 gpu_params.route_id = params.route_id; 1434 gpu_params.route_id = params.route_id;
1434 gpu_params.size = params.size; 1435 gpu_params.size = params.size;
1435 gpu_params.scale_factor = params.scale_factor; 1436 gpu_params.scale_factor = params.scale_factor;
1436 gpu_params.latency_info = params.latency_info; 1437 gpu_params.latency_info = params.latency_info;
1437 for (size_t i = 0; i < gpu_params.latency_info.size(); i++) 1438 for (size_t i = 0; i < gpu_params.latency_info.size(); i++)
1438 AddLatencyInfoComponentIds(&gpu_params.latency_info[i]); 1439 AddLatencyInfoComponentIds(&gpu_params.latency_info[i]);
1439 view_->AcceleratedSurfaceBuffersSwapped(gpu_params, 1440 view_->AcceleratedSurfaceBuffersSwapped(gpu_params,
1440 params.gpu_process_host_id); 1441 params.gpu_process_host_id);
1441 view_->DidReceiveRendererFrame(); 1442 view_->DidReceiveRendererFrame();
1442 } 1443 }
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 } 2306 }
2306 } 2307 }
2307 2308
2308 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { 2309 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() {
2309 if (view_) 2310 if (view_)
2310 return view_->PreferredReadbackFormat(); 2311 return view_->PreferredReadbackFormat();
2311 return SkBitmap::kARGB_8888_Config; 2312 return SkBitmap::kARGB_8888_Config;
2312 } 2313 }
2313 2314
2314 } // namespace content 2315 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698