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

Side by Side Diff: content/common/gpu/client/gl_helper_benchmark.cc

Issue 84293002: LOG(INFO) -> VLOG(0) in content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 7 years 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/child/child_thread.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.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 file looks like a unit test, but it contains benchmarks and test 5 // This file looks like a unit test, but it contains benchmarks and test
6 // utilities intended for manual evaluation of the scalers in 6 // utilities intended for manual evaluation of the scalers in
7 // gl_helper*. These tests produce output in the form of files and printouts, 7 // gl_helper*. These tests produce output in the form of files and printouts,
8 // but cannot really "fail". There is no point in making these tests part 8 // but cannot really "fail". There is no point in making these tests part
9 // of any test automation run. 9 // of any test automation run.
10 10
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 helper_->ReadbackTextureSync( 289 helper_->ReadbackTextureSync(
290 dst_texture, 290 dst_texture,
291 gfx::Rect(0, 0, 291 gfx::Rect(0, 0,
292 dst_size.width(), 292 dst_size.width(),
293 dst_size.height()), 293 dst_size.height()),
294 static_cast<unsigned char *>(output_pixels.getPixels())); 294 static_cast<unsigned char *>(output_pixels.getPixels()));
295 context_->deleteTexture(dst_texture); 295 context_->deleteTexture(dst_texture);
296 std::string filename = base::StringPrintf("testoutput_%s_%d.ppm", 296 std::string filename = base::StringPrintf("testoutput_%s_%d.ppm",
297 kQualityNames[q], 297 kQualityNames[q],
298 percents[p]); 298 percents[p]);
299 LOG(INFO) << "Writing " << filename; 299 VLOG(0) << "Writing " << filename;
300 SaveToFile(&output_pixels, base::FilePath::FromUTF8Unsafe(filename)); 300 SaveToFile(&output_pixels, base::FilePath::FromUTF8Unsafe(filename));
301 } 301 }
302 } 302 }
303 context_->deleteTexture(src_texture); 303 context_->deleteTexture(src_texture);
304 context_->deleteFramebuffer(framebuffer); 304 context_->deleteFramebuffer(framebuffer);
305 } 305 }
306 306
307 } // namespace 307 } // namespace
308 308
309 // These tests needs to run against a proper GL environment, so we 309 // These tests needs to run against a proper GL environment, so we
310 // need to set it up before we can run the tests. 310 // need to set it up before we can run the tests.
311 int main(int argc, char** argv) { 311 int main(int argc, char** argv) {
312 CommandLine::Init(argc, argv); 312 CommandLine::Init(argc, argv);
313 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); 313 base::TestSuite* suite = new content::ContentTestSuite(argc, argv);
314 #if defined(OS_MACOSX) 314 #if defined(OS_MACOSX)
315 base::mac::ScopedNSAutoreleasePool pool; 315 base::mac::ScopedNSAutoreleasePool pool;
316 #endif 316 #endif
317 #if defined(TOOLKIT_GTK) 317 #if defined(TOOLKIT_GTK)
318 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); 318 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
319 #endif 319 #endif
320 gfx::GLSurface::InitializeOneOff(); 320 gfx::GLSurface::InitializeOneOff();
321 321
322 return content::UnitTestTestSuite(suite).Run(); 322 return content::UnitTestTestSuite(suite).Run();
323 } 323 }
OLDNEW
« no previous file with comments | « content/child/child_thread.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698