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 "base/thread_task_runner_handle.h" | 5 #include "base/thread_task_runner_handle.h" |
6 #include "cc/resources/resource_pool.h" | 6 #include "cc/resources/resource_pool.h" |
7 #include "cc/test/begin_frame_args_test.h" | 7 #include "cc/test/begin_frame_args_test.h" |
8 #include "cc/test/fake_impl_proxy.h" | 8 #include "cc/test/fake_impl_proxy.h" |
9 #include "cc/test/fake_layer_tree_host_impl.h" | 9 #include "cc/test/fake_layer_tree_host_impl.h" |
10 #include "cc/test/fake_output_surface.h" | 10 #include "cc/test/fake_output_surface.h" |
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 host_impl_.tile_manager()->PrepareTiles(host_impl_.global_tile_state()); | 1414 host_impl_.tile_manager()->PrepareTiles(host_impl_.global_tile_state()); |
1415 EXPECT_TRUE(host_impl_.is_likely_to_require_a_draw()); | 1415 EXPECT_TRUE(host_impl_.is_likely_to_require_a_draw()); |
1416 | 1416 |
1417 scoped_ptr<ScopedResource> resource = | 1417 scoped_ptr<ScopedResource> resource = |
1418 host_impl_.resource_pool()->AcquireResource(gfx::Size(256, 256), | 1418 host_impl_.resource_pool()->AcquireResource(gfx::Size(256, 256), |
1419 RGBA_8888); | 1419 RGBA_8888); |
1420 | 1420 |
1421 host_impl_.tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting(); | 1421 host_impl_.tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting(); |
1422 EXPECT_FALSE(host_impl_.is_likely_to_require_a_draw()); | 1422 EXPECT_FALSE(host_impl_.is_likely_to_require_a_draw()); |
1423 | 1423 |
1424 host_impl_.resource_pool()->ReleaseResource(resource.Pass()); | 1424 host_impl_.resource_pool()->ReleaseResource(resource.Pass(), 0); |
1425 } | 1425 } |
1426 | 1426 |
1427 } // namespace | 1427 } // namespace |
1428 } // namespace cc | 1428 } // namespace cc |
OLD | NEW |