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

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

Issue 667793004: Support single-threaded impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use numeric limits for raster task limit Created 6 years, 2 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ++it) { 46 ++it) {
47 RasterTask* task = it->task; 47 RasterTask* task = it->task;
48 48
49 task->WillSchedule(); 49 task->WillSchedule();
50 task->ScheduleOnOriginThread(this); 50 task->ScheduleOnOriginThread(this);
51 task->DidSchedule(); 51 task->DidSchedule();
52 52
53 completed_tasks_.push_back(task); 53 completed_tasks_.push_back(task);
54 } 54 }
55 } 55 }
56 void WaitForTasksToFinishRunning() override {
57 // Everything completes instantly; nothing to do.
58 }
56 void CheckForCompletedTasks() override { 59 void CheckForCompletedTasks() override {
57 for (RasterTask::Vector::iterator it = completed_tasks_.begin(); 60 for (RasterTask::Vector::iterator it = completed_tasks_.begin();
58 it != completed_tasks_.end(); 61 it != completed_tasks_.end();
59 ++it) { 62 ++it) {
60 RasterTask* task = it->get(); 63 RasterTask* task = it->get();
61 64
62 task->WillComplete(); 65 task->WillComplete();
63 task->CompleteOnOriginThread(this); 66 task->CompleteOnOriginThread(this);
64 task->DidComplete(); 67 task->DidComplete();
65 68
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 489 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
487 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 490 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
488 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 491 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
489 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 492 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
490 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 493 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
491 } 494 }
492 495
493 } // namespace 496 } // namespace
494 497
495 } // namespace cc 498 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698