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

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: More code refactoring and some interface changes. Created 6 years, 4 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/fake_impl_proxy.h" 9 #include "cc/test/fake_impl_proxy.h"
10 #include "cc/test/fake_layer_tree_host_impl.h" 10 #include "cc/test/fake_layer_tree_host_impl.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 task->WillComplete(); 58 task->WillComplete();
59 task->CompleteOnOriginThread(this); 59 task->CompleteOnOriginThread(this);
60 task->DidComplete(); 60 task->DidComplete();
61 61
62 task->RunReplyOnOriginThread(); 62 task->RunReplyOnOriginThread();
63 } 63 }
64 completed_tasks_.clear(); 64 completed_tasks_.clear();
65 } 65 }
66 66
67 // Overridden from RasterizerTaskClient: 67 // Overridden from RasterizerTaskClient:
68 virtual SkCanvas* AcquireCanvasForRaster(RasterTask* task) OVERRIDE { 68 virtual RasterBuffer* AcquireBufferForRaster(RasterTask* task) OVERRIDE {
69 return NULL; 69 return NULL;
70 } 70 }
71 virtual void ReleaseCanvasForRaster(RasterTask* task) OVERRIDE {} 71 virtual void ReleaseBufferForRaster(RasterTask* task) OVERRIDE {}
72 72
73 private: 73 private:
74 RasterTask::Vector completed_tasks_; 74 RasterTask::Vector completed_tasks_;
75 }; 75 };
76 base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer = 76 base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer =
77 LAZY_INSTANCE_INITIALIZER; 77 LAZY_INSTANCE_INITIALIZER;
78 78
79 class TileManagerPerfTest : public testing::Test { 79 class TileManagerPerfTest : public testing::Test {
80 public: 80 public:
81 TileManagerPerfTest() 81 TileManagerPerfTest()
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 473 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
474 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 474 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
475 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 475 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
476 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 476 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
477 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 477 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
478 } 478 }
479 479
480 } // namespace 480 } // namespace
481 481
482 } // namespace cc 482 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698