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

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

Issue 562833004: cc: Move RasterBuffer implementations from ResourceProvider to RasterWorkerPool implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build 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/raster_buffer.h"
7 #include "cc/resources/tile.h" 8 #include "cc/resources/tile.h"
8 #include "cc/resources/tile_priority.h" 9 #include "cc/resources/tile_priority.h"
9 #include "cc/test/begin_frame_args_test.h" 10 #include "cc/test/begin_frame_args_test.h"
10 #include "cc/test/fake_impl_proxy.h" 11 #include "cc/test/fake_impl_proxy.h"
11 #include "cc/test/fake_layer_tree_host_impl.h" 12 #include "cc/test/fake_layer_tree_host_impl.h"
12 #include "cc/test/fake_output_surface.h" 13 #include "cc/test/fake_output_surface.h"
13 #include "cc/test/fake_output_surface_client.h" 14 #include "cc/test/fake_output_surface_client.h"
14 #include "cc/test/fake_picture_layer_impl.h" 15 #include "cc/test/fake_picture_layer_impl.h"
15 #include "cc/test/fake_picture_pile_impl.h" 16 #include "cc/test/fake_picture_pile_impl.h"
16 #include "cc/test/fake_tile_manager.h" 17 #include "cc/test/fake_tile_manager.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 task->WillComplete(); 62 task->WillComplete();
62 task->CompleteOnOriginThread(this); 63 task->CompleteOnOriginThread(this);
63 task->DidComplete(); 64 task->DidComplete();
64 65
65 task->RunReplyOnOriginThread(); 66 task->RunReplyOnOriginThread();
66 } 67 }
67 completed_tasks_.clear(); 68 completed_tasks_.clear();
68 } 69 }
69 70
70 // Overridden from RasterizerTaskClient: 71 // Overridden from RasterizerTaskClient:
71 virtual RasterBuffer* AcquireBufferForRaster(RasterTask* task) OVERRIDE { 72 virtual scoped_ptr<RasterBuffer> AcquireBufferForRaster(
72 return NULL; 73 const Resource* resource) OVERRIDE {
74 return scoped_ptr<RasterBuffer>();
73 } 75 }
74 virtual void ReleaseBufferForRaster(RasterTask* task) OVERRIDE {} 76 virtual void ReleaseBufferForRaster(
77 scoped_ptr<RasterBuffer> buffer) OVERRIDE {}
75 78
76 private: 79 private:
77 RasterTask::Vector completed_tasks_; 80 RasterTask::Vector completed_tasks_;
78 }; 81 };
79 base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer = 82 base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer =
80 LAZY_INSTANCE_INITIALIZER; 83 LAZY_INSTANCE_INITIALIZER;
81 84
82 class TileManagerPerfTest : public testing::Test { 85 class TileManagerPerfTest : public testing::Test {
83 public: 86 public:
84 TileManagerPerfTest() 87 TileManagerPerfTest()
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 480 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 481 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 482 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 483 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 484 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
482 } 485 }
483 486
484 } // namespace 487 } // namespace
485 488
486 } // namespace cc 489 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698