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

Side by Side Diff: cc/layers/picture_layer_impl_perftest.cc

Issue 279183002: Use LapTimer in rasterize_and_record micro benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CC_EXPORT to LapTimer class. 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/layers/layer_perftest.cc ('k') | cc/resources/picture_layer_tiling_perftest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include "cc/debug/lap_timer.h"
7 #include "cc/test/fake_impl_proxy.h" 8 #include "cc/test/fake_impl_proxy.h"
8 #include "cc/test/fake_layer_tree_host_impl.h" 9 #include "cc/test/fake_layer_tree_host_impl.h"
9 #include "cc/test/fake_output_surface.h" 10 #include "cc/test/fake_output_surface.h"
10 #include "cc/test/fake_picture_layer_impl.h" 11 #include "cc/test/fake_picture_layer_impl.h"
11 #include "cc/test/fake_picture_pile_impl.h" 12 #include "cc/test/fake_picture_pile_impl.h"
12 #include "cc/test/impl_side_painting_settings.h" 13 #include "cc/test/impl_side_painting_settings.h"
13 #include "cc/test/lap_timer.h"
14 #include "cc/test/test_shared_bitmap_manager.h" 14 #include "cc/test/test_shared_bitmap_manager.h"
15 #include "cc/trees/layer_tree_impl.h" 15 #include "cc/trees/layer_tree_impl.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "testing/perf/perf_test.h" 17 #include "testing/perf/perf_test.h"
18 18
19 namespace cc { 19 namespace cc {
20 namespace { 20 namespace {
21 21
22 static const int kTimeLimitMillis = 2000; 22 static const int kTimeLimitMillis = 2000;
23 static const int kWarmupRuns = 5; 23 static const int kWarmupRuns = 5;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 pending_layer_->AddTiling(2.0f); 105 pending_layer_->AddTiling(2.0f);
106 106
107 RunLayerRasterTileIteratorTest("32_100x100", 32, gfx::Size(100, 100)); 107 RunLayerRasterTileIteratorTest("32_100x100", 32, gfx::Size(100, 100));
108 RunLayerRasterTileIteratorTest("32_500x500", 32, gfx::Size(500, 500)); 108 RunLayerRasterTileIteratorTest("32_500x500", 32, gfx::Size(500, 500));
109 RunLayerRasterTileIteratorTest("64_100x100", 64, gfx::Size(100, 100)); 109 RunLayerRasterTileIteratorTest("64_100x100", 64, gfx::Size(100, 100));
110 RunLayerRasterTileIteratorTest("64_500x500", 64, gfx::Size(500, 500)); 110 RunLayerRasterTileIteratorTest("64_500x500", 64, gfx::Size(500, 500));
111 } 111 }
112 112
113 } // namespace 113 } // namespace
114 } // namespace cc 114 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_perftest.cc ('k') | cc/resources/picture_layer_tiling_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698