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

Side by Side Diff: cc/resources/picture_pile_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
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/resources/picture_pile_impl.h" 5 #include "cc/resources/picture_pile_impl.h"
6 6
7 #include "cc/debug/lap_timer.h"
7 #include "cc/test/fake_picture_pile_impl.h" 8 #include "cc/test/fake_picture_pile_impl.h"
8 #include "cc/test/fake_rendering_stats_instrumentation.h" 9 #include "cc/test/fake_rendering_stats_instrumentation.h"
9 #include "cc/test/lap_timer.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/perf/perf_test.h" 11 #include "testing/perf/perf_test.h"
12 12
13 namespace cc { 13 namespace cc {
14 namespace { 14 namespace {
15 15
16 const int kTimeLimitMillis = 2000; 16 const int kTimeLimitMillis = 2000;
17 const int kWarmupRuns = 5; 17 const int kWarmupRuns = 5;
18 const int kTimeCheckInterval = 10; 18 const int kTimeCheckInterval = 10;
19 19
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 TEST_F(PicturePileImplPerfTest, Raster) { 82 TEST_F(PicturePileImplPerfTest, Raster) {
83 RunRasterTest("1", 1.0f); 83 RunRasterTest("1", 1.0f);
84 RunRasterTest("4", 0.5f); 84 RunRasterTest("4", 0.5f);
85 RunRasterTest("100", 0.1f); 85 RunRasterTest("100", 0.1f);
86 } 86 }
87 87
88 } // namespace 88 } // namespace
89 } // namespace cc 89 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/raster_worker_pool_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698