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/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 // considered to be valid. | 942 // considered to be valid. |
943 pending_child_layer->SetDrawsContent(true); | 943 pending_child_layer->SetDrawsContent(true); |
944 pending_child_layer->test_properties()->force_render_surface = true; | 944 pending_child_layer->test_properties()->force_render_surface = true; |
945 | 945 |
946 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); | 946 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); |
947 bool update_lcd_text = false; | 947 bool update_lcd_text = false; |
948 host_impl()->pending_tree()->property_trees()->needs_rebuild = true; | 948 host_impl()->pending_tree()->property_trees()->needs_rebuild = true; |
949 host_impl()->pending_tree()->BuildLayerListAndPropertyTreesForTesting(); | 949 host_impl()->pending_tree()->BuildLayerListAndPropertyTreesForTesting(); |
950 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); | 950 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); |
951 | 951 |
952 host_impl()->pending_tree()->property_trees()->effect_tree.OnOpacityAnimated( | 952 host_impl()->pending_tree()->SetOpacityMutated( |
953 0.0f, pending_child_layer->effect_tree_index(), | 953 pending_child_layer->element_id(), 0.0f); |
954 host_impl()->pending_tree()); | |
955 | 954 |
956 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); | 955 host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1)); |
957 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); | 956 host_impl()->pending_tree()->UpdateDrawProperties(update_lcd_text); |
958 | 957 |
959 // Renew all of the tile priorities. | 958 // Renew all of the tile priorities. |
960 gfx::Rect viewport(layer_bounds); | 959 gfx::Rect viewport(layer_bounds); |
961 pending_layer()->picture_layer_tiling_set()->UpdateTilePriorities( | 960 pending_layer()->picture_layer_tiling_set()->UpdateTilePriorities( |
962 viewport, 1.0f, 1.0, Occlusion(), true); | 961 viewport, 1.0f, 1.0, Occlusion(), true); |
963 pending_child_layer->picture_layer_tiling_set()->UpdateTilePriorities( | 962 pending_child_layer->picture_layer_tiling_set()->UpdateTilePriorities( |
964 viewport, 1.0f, 1.0, Occlusion(), true); | 963 viewport, 1.0f, 1.0, Occlusion(), true); |
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2376 // a part of raster tasks, the test should fail. | 2375 // a part of raster tasks, the test should fail. |
2377 host_impl()->tile_manager()->PrepareTiles(host_impl()->global_tile_state()); | 2376 host_impl()->tile_manager()->PrepareTiles(host_impl()->global_tile_state()); |
2378 EXPECT_TRUE(host_impl()->tile_manager()->HasScheduledTileTasksForTesting()); | 2377 EXPECT_TRUE(host_impl()->tile_manager()->HasScheduledTileTasksForTesting()); |
2379 static_cast<SynchronousTaskGraphRunner*>(task_graph_runner())->RunUntilIdle(); | 2378 static_cast<SynchronousTaskGraphRunner*>(task_graph_runner())->RunUntilIdle(); |
2380 base::RunLoop().RunUntilIdle(); | 2379 base::RunLoop().RunUntilIdle(); |
2381 EXPECT_FALSE(host_impl()->tile_manager()->HasScheduledTileTasksForTesting()); | 2380 EXPECT_FALSE(host_impl()->tile_manager()->HasScheduledTileTasksForTesting()); |
2382 } | 2381 } |
2383 | 2382 |
2384 } // namespace | 2383 } // namespace |
2385 } // namespace cc | 2384 } // namespace cc |
OLD | NEW |