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