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

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

Issue 219963005: cc: Add support for partial swaps when using impl-side painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit tests added + other comments Created 6 years, 8 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/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_impl_proxy.h" 8 #include "cc/test/fake_impl_proxy.h"
9 #include "cc/test/fake_layer_tree_host_impl.h" 9 #include "cc/test/fake_layer_tree_host_impl.h"
10 #include "cc/test/fake_output_surface.h" 10 #include "cc/test/fake_output_surface.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 perf_test::PrintResult("tile_manager_raster_tile_iterator", 309 perf_test::PrintResult("tile_manager_raster_tile_iterator",
310 "", 310 "",
311 test_name, 311 test_name,
312 timer_.LapsPerSecond(), 312 timer_.LapsPerSecond(),
313 "runs/s", 313 "runs/s",
314 true); 314 true);
315 } 315 }
316 316
317 // TileManagerClient implementation. 317 // TileManagerClient implementation.
318 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } 318 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; }
319 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {}
319 320
320 TileManager* tile_manager() { return host_impl_.tile_manager(); } 321 TileManager* tile_manager() { return host_impl_.tile_manager(); }
321 322
322 protected: 323 protected:
323 GlobalStateThatImpactsTilePriority global_state_; 324 GlobalStateThatImpactsTilePriority global_state_;
324 325
325 TestSharedBitmapManager shared_bitmap_manager_; 326 TestSharedBitmapManager shared_bitmap_manager_;
326 TileMemoryLimitPolicy memory_limit_policy_; 327 TileMemoryLimitPolicy memory_limit_policy_;
327 int max_tiles_; 328 int max_tiles_;
328 bool ready_to_activate_; 329 bool ready_to_activate_;
(...skipping 12 matching lines...) Expand all
341 342
342 RunTest("2_16", 16); 343 RunTest("2_16", 16);
343 RunTest("2_32", 32); 344 RunTest("2_32", 32);
344 RunTest("2_64", 64); 345 RunTest("2_64", 64);
345 RunTest("2_128", 128); 346 RunTest("2_128", 128);
346 } 347 }
347 348
348 } // namespace 349 } // namespace
349 350
350 } // namespace cc 351 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698