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

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

Issue 83883002: cc: Allow TEXTURE_RECTANGLE_ARB to be used for tile textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback Created 7 years, 1 month 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/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | 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 15 matching lines...) Expand all
26 } 26 }
27 virtual void CheckForCompletedTasks() OVERRIDE { 27 virtual void CheckForCompletedTasks() OVERRIDE {
28 while (!completed_tasks_.empty()) { 28 while (!completed_tasks_.empty()) {
29 internal::RasterWorkerPoolTask* task = completed_tasks_.front().get(); 29 internal::RasterWorkerPoolTask* task = completed_tasks_.front().get();
30 task->WillComplete(); 30 task->WillComplete();
31 task->CompleteOnOriginThread(); 31 task->CompleteOnOriginThread();
32 task->DidComplete(); 32 task->DidComplete();
33 completed_tasks_.pop_front(); 33 completed_tasks_.pop_front();
34 } 34 }
35 } 35 }
36 virtual GLenum GetResourceTarget() const OVERRIDE {
37 return GL_TEXTURE_2D;
38 }
36 virtual ResourceFormat GetResourceFormat() const OVERRIDE { 39 virtual ResourceFormat GetResourceFormat() const OVERRIDE {
37 return RGBA_8888; 40 return RGBA_8888;
38 } 41 }
39 virtual void OnRasterTasksFinished() OVERRIDE {} 42 virtual void OnRasterTasksFinished() OVERRIDE {}
40 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE {} 43 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE {}
41 44
42 private: 45 private:
43 typedef std::deque<scoped_refptr<internal::RasterWorkerPoolTask> > TaskDeque; 46 typedef std::deque<scoped_refptr<internal::RasterWorkerPoolTask> > TaskDeque;
44 TaskDeque completed_tasks_; 47 TaskDeque completed_tasks_;
45 }; 48 };
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void FakeTileManager::CheckForCompletedTasks() { 97 void FakeTileManager::CheckForCompletedTasks() {
95 RasterWorkerPoolForTesting()->CheckForCompletedTasks(); 98 RasterWorkerPoolForTesting()->CheckForCompletedTasks();
96 } 99 }
97 100
98 void FakeTileManager::Release(Tile* tile) { 101 void FakeTileManager::Release(Tile* tile) {
99 TileManager::Release(tile); 102 TileManager::Release(tile);
100 CleanUpReleasedTiles(); 103 CleanUpReleasedTiles();
101 } 104 }
102 105
103 } // namespace cc 106 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698