| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/tiles/picture_layer_tiling_set.h" | 5 #include "cc/tiles/picture_layer_tiling_set.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "cc/resources/resource_provider.h" | 11 #include "cc/resources/resource_provider.h" |
| 11 #include "cc/test/fake_output_surface.h" | 12 #include "cc/test/fake_output_surface.h" |
| 12 #include "cc/test/fake_output_surface_client.h" | 13 #include "cc/test/fake_output_surface_client.h" |
| 13 #include "cc/test/fake_picture_layer_tiling_client.h" | 14 #include "cc/test/fake_picture_layer_tiling_client.h" |
| 14 #include "cc/test/fake_raster_source.h" | 15 #include "cc/test/fake_raster_source.h" |
| 15 #include "cc/test/fake_resource_provider.h" | 16 #include "cc/test/fake_resource_provider.h" |
| 16 #include "cc/test/test_shared_bitmap_manager.h" | 17 #include "cc/test/test_shared_bitmap_manager.h" |
| 17 #include "cc/trees/layer_tree_settings.h" | 18 #include "cc/trees/layer_tree_settings.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "ui/gfx/geometry/size_conversions.h" | 20 #include "ui/gfx/geometry/size_conversions.h" |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 // UpdateTilePriorities for pending set gets called during UDP in commit. | 1033 // UpdateTilePriorities for pending set gets called during UDP in commit. |
| 1033 EXPECT_TRUE(pending_set->UpdateTilePriorities(viewport, 1.f, time, | 1034 EXPECT_TRUE(pending_set->UpdateTilePriorities(viewport, 1.f, time, |
| 1034 Occlusion(), true)); | 1035 Occlusion(), true)); |
| 1035 // No changes for active set until activation. | 1036 // No changes for active set until activation. |
| 1036 EXPECT_FALSE( | 1037 EXPECT_FALSE( |
| 1037 active_set->UpdateTilePriorities(viewport, 1.f, time, Occlusion(), true)); | 1038 active_set->UpdateTilePriorities(viewport, 1.f, time, Occlusion(), true)); |
| 1038 } | 1039 } |
| 1039 | 1040 |
| 1040 } // namespace | 1041 } // namespace |
| 1041 } // namespace cc | 1042 } // namespace cc |
| OLD | NEW |