OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This tool is used to benchmark the render model used by the compositor | 5 // This tool is used to benchmark the render model used by the compositor |
6 | 6 |
7 // Most of this file is derived from the source of the tile_render_bench tool, | 7 // Most of this file is derived from the source of the tile_render_bench tool, |
8 // and has been changed to support running a sequence of independent | 8 // and has been changed to support running a sequence of independent |
9 // simulations for our different render models and test cases. | 9 // simulations for our different render models and test cases. |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include <string> | 21 #include <string> |
22 #include <vector> | 22 #include <vector> |
23 | 23 |
24 #include "base/at_exit.h" | 24 #include "base/at_exit.h" |
25 #include "base/bind.h" | 25 #include "base/bind.h" |
26 #include "base/command_line.h" | 26 #include "base/command_line.h" |
27 #include "base/files/file_enumerator.h" | 27 #include "base/files/file_enumerator.h" |
28 #include "base/files/file_path.h" | 28 #include "base/files/file_path.h" |
29 #include "base/files/file_util.h" | 29 #include "base/files/file_util.h" |
30 #include "base/location.h" | 30 #include "base/location.h" |
31 #include "base/memory/scoped_ptr.h" | |
32 #include "base/message_loop/message_loop.h" | 31 #include "base/message_loop/message_loop.h" |
33 #include "base/single_thread_task_runner.h" | 32 #include "base/single_thread_task_runner.h" |
34 #include "base/thread_task_runner_handle.h" | 33 #include "base/thread_task_runner_handle.h" |
35 #include "base/time/time.h" | 34 #include "base/time/time.h" |
36 #include "gpu/tools/compositor_model_bench/render_model_utils.h" | 35 #include "gpu/tools/compositor_model_bench/render_model_utils.h" |
37 #include "gpu/tools/compositor_model_bench/render_models.h" | 36 #include "gpu/tools/compositor_model_bench/render_models.h" |
38 #include "gpu/tools/compositor_model_bench/render_tree.h" | 37 #include "gpu/tools/compositor_model_bench/render_tree.h" |
39 #include "ui/gl/gl_surface.h" | 38 #include "ui/gl/gl_surface.h" |
40 | 39 |
41 using base::TimeTicks; | 40 using base::TimeTicks; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 } | 393 } |
395 } else { | 394 } else { |
396 LOG(INFO) << "(input path is a file)"; | 395 LOG(INFO) << "(input path is a file)"; |
397 sim.QueueTest(inPath); | 396 sim.QueueTest(inPath); |
398 } | 397 } |
399 | 398 |
400 sim.Run(); | 399 sim.Run(); |
401 | 400 |
402 return 0; | 401 return 0; |
403 } | 402 } |
OLD | NEW |