| 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 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 25 matching lines...) Expand all Loading... |
| 36 #if defined(OS_MACOSX) | 36 #if defined(OS_MACOSX) |
| 37 #include "base/mac/scoped_nsautorelease_pool.h" | 37 #include "base/mac/scoped_nsautorelease_pool.h" |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #if defined(TOOLKIT_GTK) | 40 #if defined(TOOLKIT_GTK) |
| 41 #include "ui/gfx/gtk_util.h" | 41 #include "ui/gfx/gtk_util.h" |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 namespace content { | 44 namespace content { |
| 45 | 45 |
| 46 using WebKit::WebGLId; | 46 using blink::WebGLId; |
| 47 using WebKit::WebGraphicsContext3D; | 47 using blink::WebGraphicsContext3D; |
| 48 | 48 |
| 49 content::GLHelper::ScalerQuality kQualities[] = { | 49 content::GLHelper::ScalerQuality kQualities[] = { |
| 50 content::GLHelper::SCALER_QUALITY_BEST, | 50 content::GLHelper::SCALER_QUALITY_BEST, |
| 51 content::GLHelper::SCALER_QUALITY_GOOD, | 51 content::GLHelper::SCALER_QUALITY_GOOD, |
| 52 content::GLHelper::SCALER_QUALITY_FAST, | 52 content::GLHelper::SCALER_QUALITY_FAST, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 const char *kQualityNames[] = { | 55 const char *kQualityNames[] = { |
| 56 "best", | 56 "best", |
| 57 "good", | 57 "good", |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |