OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/layers/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 "devtools.timeline.layers"), | 902 "devtools.timeline.layers"), |
903 &is_tracing); | 903 &is_tracing); |
904 if (is_tracing) | 904 if (is_tracing) |
905 layer->SetDebugInfo(TakeDebugInfo()); | 905 layer->SetDebugInfo(TakeDebugInfo()); |
906 | 906 |
907 layer->SetDoubleSided(double_sided_); | 907 layer->SetDoubleSided(double_sided_); |
908 layer->SetDrawCheckerboardForMissingTiles( | 908 layer->SetDrawCheckerboardForMissingTiles( |
909 draw_checkerboard_for_missing_tiles_); | 909 draw_checkerboard_for_missing_tiles_); |
910 layer->SetDrawsContent(DrawsContent()); | 910 layer->SetDrawsContent(DrawsContent()); |
911 layer->SetHideLayerAndSubtree(hide_layer_and_subtree_); | 911 layer->SetHideLayerAndSubtree(hide_layer_and_subtree_); |
912 layer->SetHasRenderSurface(has_render_surface_); | 912 layer->SetHasRenderSurface(has_render_surface_ || layer->HasCopyRequest()); |
913 if (!layer->FilterIsAnimatingOnImplOnly() && !FilterIsAnimating()) | 913 if (!layer->FilterIsAnimatingOnImplOnly() && !FilterIsAnimating()) |
914 layer->SetFilters(filters_); | 914 layer->SetFilters(filters_); |
915 DCHECK(!(FilterIsAnimating() && layer->FilterIsAnimatingOnImplOnly())); | 915 DCHECK(!(FilterIsAnimating() && layer->FilterIsAnimatingOnImplOnly())); |
916 layer->SetBackgroundFilters(background_filters()); | 916 layer->SetBackgroundFilters(background_filters()); |
917 layer->SetMasksToBounds(masks_to_bounds_); | 917 layer->SetMasksToBounds(masks_to_bounds_); |
918 layer->SetShouldScrollOnMainThread(should_scroll_on_main_thread_); | 918 layer->SetShouldScrollOnMainThread(should_scroll_on_main_thread_); |
919 layer->SetHaveWheelEventHandlers(have_wheel_event_handlers_); | 919 layer->SetHaveWheelEventHandlers(have_wheel_event_handlers_); |
920 layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_); | 920 layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_); |
921 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); | 921 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); |
922 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); | 922 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 } | 1323 } |
1324 | 1324 |
1325 void Layer::SetFrameTimingRequests( | 1325 void Layer::SetFrameTimingRequests( |
1326 const std::vector<FrameTimingRequest>& requests) { | 1326 const std::vector<FrameTimingRequest>& requests) { |
1327 frame_timing_requests_ = requests; | 1327 frame_timing_requests_ = requests; |
1328 frame_timing_requests_dirty_ = true; | 1328 frame_timing_requests_dirty_ = true; |
1329 SetNeedsCommit(); | 1329 SetNeedsCommit(); |
1330 } | 1330 } |
1331 | 1331 |
1332 } // namespace cc | 1332 } // namespace cc |
OLD | NEW |