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

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

Issue 454843002: cc: Do bitmap conversion for RasterBuffer in the worker thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 6 years, 3 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/tile.h" 7 #include "cc/resources/tile.h"
8 #include "cc/resources/tile_priority.h" 8 #include "cc/resources/tile_priority.h"
9 #include "cc/test/begin_frame_args_test.h" 9 #include "cc/test/begin_frame_args_test.h"
10 #include "cc/test/fake_impl_proxy.h" 10 #include "cc/test/fake_impl_proxy.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 task->WillComplete(); 61 task->WillComplete();
62 task->CompleteOnOriginThread(this); 62 task->CompleteOnOriginThread(this);
63 task->DidComplete(); 63 task->DidComplete();
64 64
65 task->RunReplyOnOriginThread(); 65 task->RunReplyOnOriginThread();
66 } 66 }
67 completed_tasks_.clear(); 67 completed_tasks_.clear();
68 } 68 }
69 69
70 // Overridden from RasterizerTaskClient: 70 // Overridden from RasterizerTaskClient:
71 virtual SkCanvas* AcquireCanvasForRaster(RasterTask* task) OVERRIDE { 71 virtual RasterBuffer* AcquireBufferForRaster(RasterTask* task) OVERRIDE {
72 return NULL; 72 return NULL;
73 } 73 }
74 virtual void ReleaseCanvasForRaster(RasterTask* task) OVERRIDE {} 74 virtual void ReleaseBufferForRaster(RasterTask* task) OVERRIDE {}
75 75
76 private: 76 private:
77 RasterTask::Vector completed_tasks_; 77 RasterTask::Vector completed_tasks_;
78 }; 78 };
79 base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer = 79 base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer =
80 LAZY_INSTANCE_INITIALIZER; 80 LAZY_INSTANCE_INITIALIZER;
81 81
82 class TileManagerPerfTest : public testing::Test { 82 class TileManagerPerfTest : public testing::Test {
83 public: 83 public:
84 TileManagerPerfTest() 84 TileManagerPerfTest()
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
482 } 482 }
483 483
484 } // namespace 484 } // namespace
485 485
486 } // namespace cc 486 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698