| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |