Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: cc/test/fake_tile_manager.cc

Issue 157293002: cc: Refactor WorkerPoolTaskClient::AcquireBufferForRaster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated unittests Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 } 53 }
54 virtual GLenum GetResourceTarget() const OVERRIDE { 54 virtual GLenum GetResourceTarget() const OVERRIDE {
55 return GL_TEXTURE_2D; 55 return GL_TEXTURE_2D;
56 } 56 }
57 virtual ResourceFormat GetResourceFormat() const OVERRIDE { 57 virtual ResourceFormat GetResourceFormat() const OVERRIDE {
58 return RGBA_8888; 58 return RGBA_8888;
59 } 59 }
60 60
61 // Overridden from internal::WorkerPoolTaskClient: 61 // Overridden from internal::WorkerPoolTaskClient:
62 virtual void* AcquireBufferForRaster(internal::RasterWorkerPoolTask* task, 62 virtual SkCanvas* AcquireCanvasForRaster(internal::RasterWorkerPoolTask* task)
63 int* stride) OVERRIDE { 63 OVERRIDE {
64 return NULL; 64 return NULL;
65 } 65 }
66 virtual void OnRasterCompleted(internal::RasterWorkerPoolTask* task, 66 virtual void OnRasterCompleted(internal::RasterWorkerPoolTask* task,
67 const PicturePileImpl::Analysis& analysis) 67 const PicturePileImpl::Analysis& analysis)
68 OVERRIDE {} 68 OVERRIDE {}
69 virtual void OnImageDecodeCompleted(internal::WorkerPoolTask* task) OVERRIDE { 69 virtual void OnImageDecodeCompleted(internal::WorkerPoolTask* task) OVERRIDE {
70 } 70 }
71 71
72 private: 72 private:
73 // Overridden from RasterWorkerPool: 73 // Overridden from RasterWorkerPool:
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void FakeTileManager::DidFinishRunningTasksForTesting() { 141 void FakeTileManager::DidFinishRunningTasksForTesting() {
142 DidFinishRunningTasks(); 142 DidFinishRunningTasks();
143 } 143 }
144 144
145 void FakeTileManager::Release(Tile* tile) { 145 void FakeTileManager::Release(Tile* tile) {
146 TileManager::Release(tile); 146 TileManager::Release(tile);
147 CleanUpReleasedTiles(); 147 CleanUpReleasedTiles();
148 } 148 }
149 149
150 } // namespace cc 150 } // namespace cc
OLDNEW
« cc/resources/resource_provider.h ('K') | « cc/resources/resource_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698