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