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

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: fixed cc_perftests compile error 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
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698