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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 139173004: [#3] Pass gfx structs by const ref (gfx::SizeF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT and fixed build error for Android platform! Created 6 years, 11 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
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 is_replica = true; 593 is_replica = true;
594 layer->render_surface()->AppendQuads(&quad_culler, 594 layer->render_surface()->AppendQuads(&quad_culler,
595 append_quads_data, 595 append_quads_data,
596 is_replica, 596 is_replica,
597 contributing_render_pass->id); 597 contributing_render_pass->id);
598 } 598 }
599 } 599 }
600 600
601 static void AppendQuadsToFillScreen( 601 static void AppendQuadsToFillScreen(
602 ResourceProvider::ResourceId overhang_resource_id, 602 ResourceProvider::ResourceId overhang_resource_id,
603 gfx::SizeF overhang_resource_scaled_size, 603 const gfx::SizeF& overhang_resource_scaled_size,
604 const gfx::Rect& root_scroll_layer_rect, 604 const gfx::Rect& root_scroll_layer_rect,
605 RenderPass* target_render_pass, 605 RenderPass* target_render_pass,
606 LayerImpl* root_layer, 606 LayerImpl* root_layer,
607 SkColor screen_background_color, 607 SkColor screen_background_color,
608 const OcclusionTrackerImpl& occlusion_tracker) { 608 const OcclusionTrackerImpl& occlusion_tracker) {
609 if (!root_layer || !SkColorGetA(screen_background_color)) 609 if (!root_layer || !SkColorGetA(screen_background_color))
610 return; 610 return;
611 611
612 Region fill_region = occlusion_tracker.ComputeVisibleRegionInScreen(); 612 Region fill_region = occlusion_tracker.ComputeVisibleRegionInScreen();
613 if (fill_region.IsEmpty()) 613 if (fill_region.IsEmpty())
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2908 swap_promise_monitor_.erase(monitor); 2908 swap_promise_monitor_.erase(monitor);
2909 } 2909 }
2910 2910
2911 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { 2911 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() {
2912 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); 2912 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin();
2913 for (; it != swap_promise_monitor_.end(); it++) 2913 for (; it != swap_promise_monitor_.end(); it++)
2914 (*it)->OnSetNeedsRedrawOnImpl(); 2914 (*it)->OnSetNeedsRedrawOnImpl();
2915 } 2915 }
2916 2916
2917 } // namespace cc 2917 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698