From 29d39a4adb6f9b2a4e05bb3f95140df2e3957ec7 Mon Sep 17 00:00:00 2001 From: "dominikg@chromium.org" Date: Tue, 13 May 2014 19:40:58 +0000 Subject: Use LapTimer in rasterize_and_record micro benchmark. Timing record or rasterize on very small layers can be problematic. The operations are very short and timing them individually can lead to quantization. Use a LapTimer to run the operations we're timing for at least a specified amount of time to avoid this problem. Moves LapTimer from cc/test to cc/debug so it's accessible outside of testing code. BUG= Review URL: https://codereview.chromium.org/279183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270170 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/trees/occlusion_tracker_perftest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc/trees/occlusion_tracker_perftest.cc') diff --git a/cc/trees/occlusion_tracker_perftest.cc b/cc/trees/occlusion_tracker_perftest.cc index f6e5492..1506b2f 100644 --- a/cc/trees/occlusion_tracker_perftest.cc +++ b/cc/trees/occlusion_tracker_perftest.cc @@ -5,13 +5,13 @@ #include "cc/trees/occlusion_tracker.h" #include "base/time/time.h" +#include "cc/debug/lap_timer.h" #include "cc/layers/layer_iterator.h" #include "cc/layers/solid_color_layer_impl.h" #include "cc/test/fake_layer_tree_host_impl_client.h" #include "cc/test/fake_output_surface.h" #include "cc/test/fake_proxy.h" #include "cc/test/fake_rendering_stats_instrumentation.h" -#include "cc/test/lap_timer.h" #include "cc/test/test_shared_bitmap_manager.h" #include "cc/trees/layer_tree_host_impl.h" #include "cc/trees/layer_tree_impl.h" -- cgit v1.1