OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 // considered to be valid. | 908 // considered to be valid. |
909 pending_child_layer->SetDrawsContent(true); | 909 pending_child_layer->SetDrawsContent(true); |
910 pending_child_layer->test_properties()->force_render_surface = true; | 910 pending_child_layer->test_properties()->force_render_surface = true; |
911 | 911 |
912 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); | 912 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); |
913 bool update_lcd_text = false; | 913 bool update_lcd_text = false; |
914 host_impl()->pending_tree()->property_trees()->needs_rebuild = true; | 914 host_impl()->pending_tree()->property_trees()->needs_rebuild = true; |
915 host_impl()->pending_tree()->BuildLayerListAndPropertyTreesForTesting(); | 915 host_impl()->pending_tree()->BuildLayerListAndPropertyTreesForTesting(); |
916 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); | 916 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); |
917 | 917 |
918 pending_child_layer->OnOpacityAnimated(0.0); | 918 host_impl()->pending_tree()->property_trees()->effect_tree.OnOpacityAnimated( |
| 919 0.0f, pending_child_layer->effect_tree_index(), |
| 920 host_impl()->pending_tree()); |
919 | 921 |
920 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); | 922 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); |
921 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); | 923 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); |
922 | 924 |
923 // Renew all of the tile priorities. | 925 // Renew all of the tile priorities. |
924 gfx::Rect viewport(layer_bounds); | 926 gfx::Rect viewport(layer_bounds); |
925 pending_layer()->picture_layer_tiling_set()->UpdateTilePriorities( | 927 pending_layer()->picture_layer_tiling_set()->UpdateTilePriorities( |
926 viewport, 1.0f, 1.0, Occlusion(), true); | 928 viewport, 1.0f, 1.0, Occlusion(), true); |
927 pending_child_layer->picture_layer_tiling_set()->UpdateTilePriorities( | 929 pending_child_layer->picture_layer_tiling_set()->UpdateTilePriorities( |
928 viewport, 1.0f, 1.0, Occlusion(), true); | 930 viewport, 1.0f, 1.0, Occlusion(), true); |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 } | 1890 } |
1889 | 1891 |
1890 // Ensures that the tile manager does not attempt to reuse tiles when partial | 1892 // Ensures that the tile manager does not attempt to reuse tiles when partial |
1891 // raster is disabled. | 1893 // raster is disabled. |
1892 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { | 1894 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { |
1893 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); | 1895 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); |
1894 } | 1896 } |
1895 | 1897 |
1896 } // namespace | 1898 } // namespace |
1897 } // namespace cc | 1899 } // namespace cc |
OLD | NEW |