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

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

Issue 49163004: cc: Reduce command buffer flushes related to creating texture ids. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/scoped_resource_unittest.cc ('k') | cc/resources/tile_manager_unittest.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/resources/tile.h" 6 #include "cc/resources/tile.h"
7 #include "cc/resources/tile_priority.h" 7 #include "cc/resources/tile_priority.h"
8 #include "cc/test/fake_output_surface.h" 8 #include "cc/test/fake_output_surface.h"
9 #include "cc/test/fake_output_surface_client.h" 9 #include "cc/test/fake_output_surface_client.h"
10 #include "cc/test/fake_picture_pile_impl.h" 10 #include "cc/test/fake_picture_pile_impl.h"
(...skipping 22 matching lines...) Expand all
33 : timer_(kWarmupRuns, 33 : timer_(kWarmupRuns,
34 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 34 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
35 kTimeCheckInterval) {} 35 kTimeCheckInterval) {}
36 36
37 // Overridden from testing::Test: 37 // Overridden from testing::Test:
38 virtual void SetUp() OVERRIDE { 38 virtual void SetUp() OVERRIDE {
39 output_surface_ = FakeOutputSurface::Create3d(); 39 output_surface_ = FakeOutputSurface::Create3d();
40 CHECK(output_surface_->BindToClient(&output_surface_client_)); 40 CHECK(output_surface_->BindToClient(&output_surface_client_));
41 41
42 resource_provider_ = 42 resource_provider_ =
43 ResourceProvider::Create(output_surface_.get(), NULL, 0, false); 43 ResourceProvider::Create(output_surface_.get(), NULL, 0, false, 1);
44 tile_manager_ = make_scoped_ptr( 44 tile_manager_ = make_scoped_ptr(
45 new FakeTileManager(&tile_manager_client_, resource_provider_.get())); 45 new FakeTileManager(&tile_manager_client_, resource_provider_.get()));
46 picture_pile_ = FakePicturePileImpl::CreatePile(); 46 picture_pile_ = FakePicturePileImpl::CreatePile();
47 } 47 }
48 48
49 GlobalStateThatImpactsTilePriority GlobalStateForTest() { 49 GlobalStateThatImpactsTilePriority GlobalStateForTest() {
50 GlobalStateThatImpactsTilePriority state; 50 GlobalStateThatImpactsTilePriority state;
51 gfx::Size tile_size = settings_.default_tile_size; 51 gfx::Size tile_size = settings_.default_tile_size;
52 state.memory_limit_in_bytes = 52 state.memory_limit_in_bytes =
53 10000u * 4u * 53 10000u * 4u *
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 RunManageTilesTest("1000_10", 1000, 10); 179 RunManageTilesTest("1000_10", 1000, 10);
180 RunManageTilesTest("10000_10", 10000, 10); 180 RunManageTilesTest("10000_10", 10000, 10);
181 RunManageTilesTest("100_100", 100, 100); 181 RunManageTilesTest("100_100", 100, 100);
182 RunManageTilesTest("1000_100", 1000, 100); 182 RunManageTilesTest("1000_100", 1000, 100);
183 RunManageTilesTest("10000_100", 10000, 100); 183 RunManageTilesTest("10000_100", 10000, 100);
184 } 184 }
185 185
186 } // namespace 186 } // namespace
187 187
188 } // namespace cc 188 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/scoped_resource_unittest.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698