OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/test/fake_tile_manager.h" | 5 #include "cc/test/fake_tile_manager.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "cc/resources/raster_worker_pool.h" | 10 #include "cc/resources/raster_worker_pool.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } | 50 } |
51 } | 51 } |
52 virtual GLenum GetResourceTarget() const OVERRIDE { | 52 virtual GLenum GetResourceTarget() const OVERRIDE { |
53 return GL_TEXTURE_2D; | 53 return GL_TEXTURE_2D; |
54 } | 54 } |
55 virtual ResourceFormat GetResourceFormat() const OVERRIDE { | 55 virtual ResourceFormat GetResourceFormat() const OVERRIDE { |
56 return RGBA_8888; | 56 return RGBA_8888; |
57 } | 57 } |
58 | 58 |
59 // Overridden from internal::WorkerPoolTaskClient: | 59 // Overridden from internal::WorkerPoolTaskClient: |
60 virtual void* AcquireBufferForRaster(internal::RasterWorkerPoolTask* task, | 60 virtual SkCanvas* AcquireCanvasForRaster(internal::RasterWorkerPoolTask* task) |
61 int* stride) OVERRIDE { | 61 OVERRIDE { |
62 return NULL; | 62 return NULL; |
63 } | 63 } |
64 virtual void OnRasterCompleted(internal::RasterWorkerPoolTask* task, | 64 virtual void OnRasterCompleted(internal::RasterWorkerPoolTask* task, |
65 const PicturePileImpl::Analysis& analysis) | 65 const PicturePileImpl::Analysis& analysis) |
66 OVERRIDE {} | 66 OVERRIDE {} |
67 virtual void OnImageDecodeCompleted(internal::WorkerPoolTask* task) OVERRIDE { | 67 virtual void OnImageDecodeCompleted(internal::WorkerPoolTask* task) OVERRIDE { |
68 } | 68 } |
69 | 69 |
70 private: | 70 private: |
71 // Overridden from RasterWorkerPool: | 71 // Overridden from RasterWorkerPool: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void FakeTileManager::DidFinishRunningTasksForTesting() { | 139 void FakeTileManager::DidFinishRunningTasksForTesting() { |
140 DidFinishRunningTasks(); | 140 DidFinishRunningTasks(); |
141 } | 141 } |
142 | 142 |
143 void FakeTileManager::Release(Tile* tile) { | 143 void FakeTileManager::Release(Tile* tile) { |
144 TileManager::Release(tile); | 144 TileManager::Release(tile); |
145 CleanUpReleasedTiles(); | 145 CleanUpReleasedTiles(); |
146 } | 146 } |
147 | 147 |
148 } // namespace cc | 148 } // namespace cc |
OLD | NEW |