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

Side by Side Diff: content/browser/android/synchronous_compositor_host.cc

Issue 2455763002: sync compositor: Remove camel casing (Closed)
Patch Set: Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/synchronous_compositor_host.h" 5 #include "content/browser/android/synchronous_compositor_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const gfx::Rect& viewport_rect_for_tile_priority, 101 const gfx::Rect& viewport_rect_for_tile_priority,
102 const gfx::Transform& transform_for_tile_priority) { 102 const gfx::Transform& transform_for_tile_priority) {
103 SyncCompositorDemandDrawHwParams params(viewport_size, 103 SyncCompositorDemandDrawHwParams params(viewport_size,
104 viewport_rect_for_tile_priority, 104 viewport_rect_for_tile_priority,
105 transform_for_tile_priority); 105 transform_for_tile_priority);
106 scoped_refptr<FrameFuture> frame_future = new FrameFuture(); 106 scoped_refptr<FrameFuture> frame_future = new FrameFuture();
107 if (SynchronousCompositorBrowserFilter* filter = GetFilter()) { 107 if (SynchronousCompositorBrowserFilter* filter = GetFilter()) {
108 filter->SetFrameFuture(routing_id_, frame_future); 108 filter->SetFrameFuture(routing_id_, frame_future);
109 sender_->Send(new SyncCompositorMsg_DemandDrawHwAsync(routing_id_, params)); 109 sender_->Send(new SyncCompositorMsg_DemandDrawHwAsync(routing_id_, params));
110 } else { 110 } else {
111 frame_future->setFrame(nullptr); 111 frame_future->SetFrame(nullptr);
112 } 112 }
113 return frame_future; 113 return frame_future;
114 } 114 }
115 115
116 SynchronousCompositor::Frame SynchronousCompositorHost::DemandDrawHw( 116 SynchronousCompositor::Frame SynchronousCompositorHost::DemandDrawHw(
117 const gfx::Size& viewport_size, 117 const gfx::Size& viewport_size,
118 const gfx::Rect& viewport_rect_for_tile_priority, 118 const gfx::Rect& viewport_rect_for_tile_priority,
119 const gfx::Transform& transform_for_tile_priority) { 119 const gfx::Transform& transform_for_tile_priority) {
120 SyncCompositorDemandDrawHwParams params(viewport_size, 120 SyncCompositorDemandDrawHwParams params(viewport_size,
121 viewport_rect_for_tile_priority, 121 viewport_rect_for_tile_priority,
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 if (params.page_scale_factor) { 415 if (params.page_scale_factor) {
416 client_->UpdateRootLayerState( 416 client_->UpdateRootLayerState(
417 this, gfx::ScrollOffsetToVector2dF(params.total_scroll_offset), 417 this, gfx::ScrollOffsetToVector2dF(params.total_scroll_offset),
418 gfx::ScrollOffsetToVector2dF(params.max_scroll_offset), 418 gfx::ScrollOffsetToVector2dF(params.max_scroll_offset),
419 params.scrollable_size, params.page_scale_factor, 419 params.scrollable_size, params.page_scale_factor,
420 params.min_page_scale_factor, params.max_page_scale_factor); 420 params.min_page_scale_factor, params.max_page_scale_factor);
421 } 421 }
422 } 422 }
423 423
424 } // namespace content 424 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698