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

Side by Side Diff: gpu/tools/compositor_model_bench/compositor_model_bench.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | net/base/directory_lister.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 (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 21 matching lines...) Expand all
32 #include "base/message_loop.h" 32 #include "base/message_loop.h"
33 #include "base/time/time.h" 33 #include "base/time/time.h"
34 34
35 #include "gpu/tools/compositor_model_bench/render_model_utils.h" 35 #include "gpu/tools/compositor_model_bench/render_model_utils.h"
36 #include "gpu/tools/compositor_model_bench/render_models.h" 36 #include "gpu/tools/compositor_model_bench/render_models.h"
37 #include "gpu/tools/compositor_model_bench/render_tree.h" 37 #include "gpu/tools/compositor_model_bench/render_tree.h"
38 38
39 39
40 using base::TimeTicks; 40 using base::TimeTicks;
41 using file_util::CloseFile; 41 using file_util::CloseFile;
42 using file_util::DirectoryExists; 42 using base::DirectoryExists;
43 using file_util::OpenFile; 43 using file_util::OpenFile;
44 using base::PathExists; 44 using base::PathExists;
45 using std::queue; 45 using std::queue;
46 using std::string; 46 using std::string;
47 47
48 struct SimulationSpecification { 48 struct SimulationSpecification {
49 string simulation_name; 49 string simulation_name;
50 base::FilePath input_path; 50 base::FilePath input_path;
51 RenderModel model_under_test; 51 RenderModel model_under_test;
52 TimeTicks simulation_start_time; 52 TimeTicks simulation_start_time;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 } 395 }
396 } else { 396 } else {
397 LOG(INFO) << "(input path is a file)"; 397 LOG(INFO) << "(input path is a file)";
398 sim.QueueTest(inPath); 398 sim.QueueTest(inPath);
399 } 399 }
400 400
401 sim.Run(); 401 sim.Run();
402 402
403 return 0; 403 return 0;
404 } 404 }
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | net/base/directory_lister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698