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

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: resolve cc_unittests build error 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
« no previous file with comments | « cc/resources/tile_manager.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_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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 perf_test::PrintResult("tile_manager_raster_tile_iterator", 315 perf_test::PrintResult("tile_manager_raster_tile_iterator",
316 "", 316 "",
317 test_name, 317 test_name,
318 timer_.LapsPerSecond(), 318 timer_.LapsPerSecond(),
319 "runs/s", 319 "runs/s",
320 true); 320 true);
321 } 321 }
322 322
323 // TileManagerClient implementation. 323 // TileManagerClient implementation.
324 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } 324 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; }
325 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {}
325 326
326 TileManager* tile_manager() { return host_impl_.tile_manager(); } 327 TileManager* tile_manager() { return host_impl_.tile_manager(); }
327 328
328 protected: 329 protected:
329 GlobalStateThatImpactsTilePriority global_state_; 330 GlobalStateThatImpactsTilePriority global_state_;
330 331
331 TestSharedBitmapManager shared_bitmap_manager_; 332 TestSharedBitmapManager shared_bitmap_manager_;
332 TileMemoryLimitPolicy memory_limit_policy_; 333 TileMemoryLimitPolicy memory_limit_policy_;
333 int max_tiles_; 334 int max_tiles_;
334 bool ready_to_activate_; 335 bool ready_to_activate_;
(...skipping 12 matching lines...) Expand all
347 348
348 RunTest("2_16", 16); 349 RunTest("2_16", 16);
349 RunTest("2_32", 32); 350 RunTest("2_32", 32);
350 RunTest("2_64", 64); 351 RunTest("2_64", 64);
351 RunTest("2_128", 128); 352 RunTest("2_128", 128);
352 } 353 }
353 354
354 } // namespace 355 } // namespace
355 356
356 } // namespace cc 357 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698