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/eviction_tile_priority_queue.h" | 6 #include "cc/resources/eviction_tile_priority_queue.h" |
7 #include "cc/resources/raster_tile_priority_queue.h" | 7 #include "cc/resources/raster_tile_priority_queue.h" |
8 #include "cc/resources/resource_pool.h" | 8 #include "cc/resources/resource_pool.h" |
9 #include "cc/resources/tile.h" | 9 #include "cc/resources/tile.h" |
10 #include "cc/resources/tile_priority.h" | 10 #include "cc/resources/tile_priority.h" |
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1412 host_impl_.tile_manager()->PrepareTiles(host_impl_.global_tile_state()); | 1412 host_impl_.tile_manager()->PrepareTiles(host_impl_.global_tile_state()); |
1413 EXPECT_TRUE(host_impl_.is_likely_to_require_a_draw()); | 1413 EXPECT_TRUE(host_impl_.is_likely_to_require_a_draw()); |
1414 | 1414 |
1415 scoped_ptr<ScopedResource> resource = | 1415 scoped_ptr<ScopedResource> resource = |
1416 host_impl_.resource_pool()->AcquireResource(gfx::Size(256, 256), | 1416 host_impl_.resource_pool()->AcquireResource(gfx::Size(256, 256), |
1417 RGBA_8888); | 1417 RGBA_8888); |
1418 | 1418 |
1419 host_impl_.tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting(); | 1419 host_impl_.tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting(); |
1420 EXPECT_FALSE(host_impl_.is_likely_to_require_a_draw()); | 1420 EXPECT_FALSE(host_impl_.is_likely_to_require_a_draw()); |
1421 | 1421 |
1422 host_impl_.resource_pool()->ReleaseResource(resource.Pass()); | 1422 host_impl_.resource_pool()->ReleaseResource(resource.Pass(), 0); |
1423 } | 1423 } |
1424 | 1424 |
1425 } // namespace | 1425 } // namespace |
1426 } // namespace cc | 1426 } // namespace cc |
OLD | NEW |