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

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

Issue 15689003: Part 3/3 (RWH/IOSurface) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missed lines Created 7 years, 7 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 | Annotate | Revision Log
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1741 void RenderProcessHostImpl::OnUserMetricsRecordAction( 1741 void RenderProcessHostImpl::OnUserMetricsRecordAction(
1742 const std::string& action) { 1742 const std::string& action) {
1743 RecordComputedAction(action); 1743 RecordComputedAction(action);
1744 } 1744 }
1745 1745
1746 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1746 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1747 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); 1747 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size);
1748 } 1748 }
1749 1749
1750 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( 1750 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost(
1751 int32 surface_id, 1751 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) {
1752 uint64 surface_handle,
1753 int32 route_id,
1754 const gfx::Size& size,
1755 int32 gpu_process_host_id) {
1756 TRACE_EVENT0("renderer_host", 1752 TRACE_EVENT0("renderer_host",
1757 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1753 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1758 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1754 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1759 ack_params.sync_point = 0; 1755 ack_params.sync_point = 0;
1760 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1756 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id,
1761 gpu_process_host_id, 1757 params.gpu_process_host_id,
1762 ack_params); 1758 ack_params);
1763 } 1759 }
1764 1760
1765 } // namespace content 1761 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698