| 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 "cc/layers/ui_resource_layer.h" | 5 #include "cc/layers/ui_resource_layer.h" |
| 6 | 6 |
| 7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
| 8 #include "cc/layers/layer_settings.h" |
| 8 #include "cc/resources/resource_provider.h" | 9 #include "cc/resources/resource_provider.h" |
| 9 #include "cc/resources/scoped_ui_resource.h" | 10 #include "cc/resources/scoped_ui_resource.h" |
| 10 #include "cc/test/fake_layer_tree_host.h" | 11 #include "cc/test/fake_layer_tree_host.h" |
| 11 #include "cc/test/fake_layer_tree_host_client.h" | 12 #include "cc/test/fake_layer_tree_host_client.h" |
| 12 #include "cc/test/fake_output_surface.h" | 13 #include "cc/test/fake_output_surface.h" |
| 13 #include "cc/test/fake_output_surface_client.h" | 14 #include "cc/test/fake_output_surface_client.h" |
| 14 #include "cc/test/geometry_test_utils.h" | 15 #include "cc/test/geometry_test_utils.h" |
| 15 #include "cc/test/test_task_graph_runner.h" | 16 #include "cc/test/test_task_graph_runner.h" |
| 16 #include "cc/trees/layer_tree_host.h" | 17 #include "cc/trees/layer_tree_host.h" |
| 17 #include "cc/trees/single_thread_proxy.h" | 18 #include "cc/trees/single_thread_proxy.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 143 |
| 143 test_layer->SetBitmap(bitmap); | 144 test_layer->SetBitmap(bitmap); |
| 144 ASSERT_FALSE(bitmap.pixelRef()->unique()); | 145 ASSERT_FALSE(bitmap.pixelRef()->unique()); |
| 145 | 146 |
| 146 test_layer->SetUIResourceId(0); | 147 test_layer->SetUIResourceId(0); |
| 147 EXPECT_TRUE(bitmap.pixelRef()->unique()); | 148 EXPECT_TRUE(bitmap.pixelRef()->unique()); |
| 148 } | 149 } |
| 149 | 150 |
| 150 } // namespace | 151 } // namespace |
| 151 } // namespace cc | 152 } // namespace cc |
| OLD | NEW |