| 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/location.h" | 5 #include "base/location.h" |
| 6 #include "base/thread_task_runner_handle.h" | 6 #include "base/thread_task_runner_handle.h" |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "cc/debug/lap_timer.h" | 8 #include "cc/debug/lap_timer.h" |
| 9 #include "cc/raster/raster_buffer.h" | 9 #include "cc/raster/raster_buffer.h" |
| 10 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 task->RunReplyOnOriginThread(); | 64 task->RunReplyOnOriginThread(); |
| 65 } | 65 } |
| 66 completed_tasks_.clear(); | 66 completed_tasks_.clear(); |
| 67 } | 67 } |
| 68 ResourceFormat GetResourceFormat() override { | 68 ResourceFormat GetResourceFormat() override { |
| 69 return RGBA_8888; | 69 return RGBA_8888; |
| 70 } | 70 } |
| 71 | 71 |
| 72 // Overridden from TileTaskClient: | 72 // Overridden from TileTaskClient: |
| 73 scoped_ptr<RasterBuffer> AcquireBufferForRaster( | 73 scoped_ptr<RasterBuffer> AcquireBufferForRaster( |
| 74 const Resource* resource) override { | 74 const TileTaskData& data) override { |
| 75 return nullptr; | 75 return nullptr; |
| 76 } | 76 } |
| 77 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} | 77 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 RasterTask::Vector completed_tasks_; | 80 RasterTask::Vector completed_tasks_; |
| 81 }; | 81 }; |
| 82 base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner = | 82 base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner = |
| 83 LAZY_INSTANCE_INITIALIZER; | 83 LAZY_INSTANCE_INITIALIZER; |
| 84 | 84 |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); | 474 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); |
| 475 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 475 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
| 476 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 476 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
| 477 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 477 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
| 478 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 478 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
| 479 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 479 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
| 480 } | 480 } |
| 481 | 481 |
| 482 } // namespace | 482 } // namespace |
| 483 } // namespace cc | 483 } // namespace cc |
| OLD | NEW |