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

Side by Side Diff: cc/resources/tile_manager_perftest.cc

Issue 860813002: Remove the default format from ResourcePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ResourceFormat from TileManager and call TileTaskRunner::GetResourceFormat() directly instea… Created 5 years, 11 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
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/resources/tile_task_runner.h » ('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 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/time/time.h" 5 #include "base/time/time.h"
6 #include "cc/debug/lap_timer.h" 6 #include "cc/debug/lap_timer.h"
7 #include "cc/resources/raster_buffer.h" 7 #include "cc/resources/raster_buffer.h"
8 #include "cc/resources/tile.h" 8 #include "cc/resources/tile.h"
9 #include "cc/resources/tile_priority.h" 9 #include "cc/resources/tile_priority.h"
10 #include "cc/test/begin_frame_args_test.h" 10 #include "cc/test/begin_frame_args_test.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 RasterTask* task = it->get(); 57 RasterTask* task = it->get();
58 58
59 task->WillComplete(); 59 task->WillComplete();
60 task->CompleteOnOriginThread(this); 60 task->CompleteOnOriginThread(this);
61 task->DidComplete(); 61 task->DidComplete();
62 62
63 task->RunReplyOnOriginThread(); 63 task->RunReplyOnOriginThread();
64 } 64 }
65 completed_tasks_.clear(); 65 completed_tasks_.clear();
66 } 66 }
67 ResourceFormat GetResourceFormat() override {
68 return RGBA_8888;
69 }
67 70
68 // Overridden from TileTaskClient: 71 // Overridden from TileTaskClient:
69 scoped_ptr<RasterBuffer> AcquireBufferForRaster( 72 scoped_ptr<RasterBuffer> AcquireBufferForRaster(
70 const Resource* resource) override { 73 const Resource* resource) override {
71 return nullptr; 74 return nullptr;
72 } 75 }
73 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} 76 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {}
74 77
75 private: 78 private:
76 RasterTask::Vector completed_tasks_; 79 RasterTask::Vector completed_tasks_;
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); 472 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64);
470 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 473 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
471 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 474 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
472 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 475 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
473 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 476 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
474 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 477 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
475 } 478 }
476 479
477 } // namespace 480 } // namespace
478 } // namespace cc 481 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/resources/tile_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698