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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « gpu/khronos_glcts_support/native/main.cc ('k') | mojo/tools/roll/cc_strip_video.patch » ('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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // GUI data 346 // GUI data
347 Display* display_; 347 Display* display_;
348 Window window_; 348 Window window_;
349 GLXContext gl_context_; 349 GLXContext gl_context_;
350 int window_width_; 350 int window_width_;
351 int window_height_; 351 int window_height_;
352 base::WeakPtrFactory<Simulator> weak_factory_; 352 base::WeakPtrFactory<Simulator> weak_factory_;
353 }; 353 };
354 354
355 int main(int argc, char* argv[]) { 355 int main(int argc, char* argv[]) {
356 CommandLine::Init(argc, argv); 356 base::CommandLine::Init(argc, argv);
357 const CommandLine* cl = CommandLine::ForCurrentProcess(); 357 const base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
358 358
359 if (argc != 3 && argc != 4) { 359 if (argc != 3 && argc != 4) {
360 LOG(INFO) << "Usage: \n" << 360 LOG(INFO) << "Usage: \n" <<
361 cl->GetProgram().BaseName().LossyDisplayName() << 361 cl->GetProgram().BaseName().LossyDisplayName() <<
362 "--in=[input path] --out=[output path] (duration=[seconds])\n" 362 "--in=[input path] --out=[output path] (duration=[seconds])\n"
363 "The input path specifies either a JSON configuration file or\n" 363 "The input path specifies either a JSON configuration file or\n"
364 "a directory containing only these files\n" 364 "a directory containing only these files\n"
365 "(if a directory is specified, simulations will be run for\n" 365 "(if a directory is specified, simulations will be run for\n"
366 "all files in that directory and subdirectories)\n" 366 "all files in that directory and subdirectories)\n"
367 "The optional duration parameter specifies the (integer)\n" 367 "The optional duration parameter specifies the (integer)\n"
(...skipping 24 matching lines...) Expand all
392 } 392 }
393 } else { 393 } else {
394 LOG(INFO) << "(input path is a file)"; 394 LOG(INFO) << "(input path is a file)";
395 sim.QueueTest(inPath); 395 sim.QueueTest(inPath);
396 } 396 }
397 397
398 sim.Run(); 398 sim.Run();
399 399
400 return 0; 400 return 0;
401 } 401 }
OLDNEW
« no previous file with comments | « gpu/khronos_glcts_support/native/main.cc ('k') | mojo/tools/roll/cc_strip_video.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698