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

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

Issue 296453009: cc: Get rid of rasterizer delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed redundant get Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_tile_manager.cc » ('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/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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 virtual void SetUp() OVERRIDE { 110 virtual void SetUp() OVERRIDE {
111 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); 111 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile();
112 InitializeRenderer(); 112 InitializeRenderer();
113 SetTreePriority(SAME_PRIORITY_FOR_BOTH_TREES); 113 SetTreePriority(SAME_PRIORITY_FOR_BOTH_TREES);
114 } 114 }
115 115
116 virtual void InitializeRenderer() { 116 virtual void InitializeRenderer() {
117 host_impl_.InitializeRenderer( 117 host_impl_.InitializeRenderer(
118 FakeOutputSurface::Create3d().PassAs<OutputSurface>()); 118 FakeOutputSurface::Create3d().PassAs<OutputSurface>());
119 tile_manager()->SetRasterizersForTesting(g_fake_rasterizer.Pointer(), 119 tile_manager()->SetRasterizerForTesting(g_fake_rasterizer.Pointer());
120 g_fake_rasterizer.Pointer());
121 } 120 }
122 121
123 void SetupDefaultTrees(const gfx::Size& layer_bounds) { 122 void SetupDefaultTrees(const gfx::Size& layer_bounds) {
124 gfx::Size tile_size(100, 100); 123 gfx::Size tile_size(100, 100);
125 124
126 scoped_refptr<FakePicturePileImpl> pending_pile = 125 scoped_refptr<FakePicturePileImpl> pending_pile =
127 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); 126 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds);
128 scoped_refptr<FakePicturePileImpl> active_pile = 127 scoped_refptr<FakePicturePileImpl> active_pile =
129 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); 128 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds);
130 129
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 336
338 RunRasterIteratorTest("2_16", 16); 337 RunRasterIteratorTest("2_16", 16);
339 RunRasterIteratorTest("2_32", 32); 338 RunRasterIteratorTest("2_32", 32);
340 RunRasterIteratorTest("2_64", 64); 339 RunRasterIteratorTest("2_64", 64);
341 RunRasterIteratorTest("2_128", 128); 340 RunRasterIteratorTest("2_128", 128);
342 } 341 }
343 342
344 } // namespace 343 } // namespace
345 344
346 } // namespace cc 345 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698