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

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

Issue 287643004: Re-land: cc: Examine layers to determine if we're ready to activate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init check_if_ready_to_activate_pending_ properly 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/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/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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 timer_.NextLap(); 286 timer_.NextLap();
287 host_impl_.ResetCurrentFrameTimeForNextFrame(); 287 host_impl_.ResetCurrentFrameTimeForNextFrame();
288 } while (!timer_.HasTimeLimitExpired()); 288 } while (!timer_.HasTimeLimitExpired());
289 289
290 perf_test::PrintResult( 290 perf_test::PrintResult(
291 "manage_tiles", "", test_name, timer_.LapsPerSecond(), "runs/s", true); 291 "manage_tiles", "", test_name, timer_.LapsPerSecond(), "runs/s", true);
292 } 292 }
293 293
294 // TileManagerClient implementation. 294 // TileManagerClient implementation.
295 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } 295 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; }
296 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {} 296 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {}
297 297
298 TileManager* tile_manager() { return host_impl_.tile_manager(); } 298 TileManager* tile_manager() { return host_impl_.tile_manager(); }
299 299
300 protected: 300 protected:
301 GlobalStateThatImpactsTilePriority global_state_; 301 GlobalStateThatImpactsTilePriority global_state_;
302 302
303 TestSharedBitmapManager shared_bitmap_manager_; 303 TestSharedBitmapManager shared_bitmap_manager_;
304 TileMemoryLimitPolicy memory_limit_policy_; 304 TileMemoryLimitPolicy memory_limit_policy_;
305 int max_tiles_; 305 int max_tiles_;
306 bool ready_to_activate_; 306 bool ready_to_activate_;
(...skipping 29 matching lines...) Expand all
336 336
337 RunRasterIteratorTest("2_16", 16); 337 RunRasterIteratorTest("2_16", 16);
338 RunRasterIteratorTest("2_32", 32); 338 RunRasterIteratorTest("2_32", 32);
339 RunRasterIteratorTest("2_64", 64); 339 RunRasterIteratorTest("2_64", 64);
340 RunRasterIteratorTest("2_128", 128); 340 RunRasterIteratorTest("2_128", 128);
341 } 341 }
342 342
343 } // namespace 343 } // namespace
344 344
345 } // namespace cc 345 } // 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