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 Resource* resource, |
| 75 uint64_t new_content_id, |
| 76 uint64_t previous_content_id) override { |
75 return nullptr; | 77 return nullptr; |
76 } | 78 } |
77 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} | 79 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} |
78 | 80 |
79 private: | 81 private: |
80 RasterTask::Vector completed_tasks_; | 82 RasterTask::Vector completed_tasks_; |
81 }; | 83 }; |
82 base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner = | 84 base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner = |
83 LAZY_INSTANCE_INITIALIZER; | 85 LAZY_INSTANCE_INITIALIZER; |
84 | 86 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); | 476 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); |
475 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
476 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
477 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
478 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
479 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
480 } | 482 } |
481 | 483 |
482 } // namespace | 484 } // namespace |
483 } // namespace cc | 485 } // namespace cc |
OLD | NEW |