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

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

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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
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 19 matching lines...) Expand all
30 #include "third_party/skia/include/core/SkBitmap.h" 30 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "third_party/skia/include/core/SkTypes.h" 31 #include "third_party/skia/include/core/SkTypes.h"
32 #include "ui/gfx/codec/png_codec.h" 32 #include "ui/gfx/codec/png_codec.h"
33 #include "ui/gl/gl_surface.h" 33 #include "ui/gl/gl_surface.h"
34 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 34 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
35 35
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)
41 #include "ui/gfx/gtk_util.h"
42 #endif
43
44 namespace content { 40 namespace content {
45 41
46 using blink::WebGLId; 42 using blink::WebGLId;
47 using blink::WebGraphicsContext3D; 43 using blink::WebGraphicsContext3D;
48 44
49 content::GLHelper::ScalerQuality kQualities[] = { 45 content::GLHelper::ScalerQuality kQualities[] = {
50 content::GLHelper::SCALER_QUALITY_BEST, 46 content::GLHelper::SCALER_QUALITY_BEST,
51 content::GLHelper::SCALER_QUALITY_GOOD, 47 content::GLHelper::SCALER_QUALITY_GOOD,
52 content::GLHelper::SCALER_QUALITY_FAST, 48 content::GLHelper::SCALER_QUALITY_FAST,
53 }; 49 };
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } // namespace 306 } // namespace
311 307
312 // These tests needs to run against a proper GL environment, so we 308 // These tests needs to run against a proper GL environment, so we
313 // need to set it up before we can run the tests. 309 // need to set it up before we can run the tests.
314 int main(int argc, char** argv) { 310 int main(int argc, char** argv) {
315 CommandLine::Init(argc, argv); 311 CommandLine::Init(argc, argv);
316 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); 312 base::TestSuite* suite = new content::ContentTestSuite(argc, argv);
317 #if defined(OS_MACOSX) 313 #if defined(OS_MACOSX)
318 base::mac::ScopedNSAutoreleasePool pool; 314 base::mac::ScopedNSAutoreleasePool pool;
319 #endif 315 #endif
320 #if defined(TOOLKIT_GTK)
321 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
322 #endif
323 gfx::GLSurface::InitializeOneOff(); 316 gfx::GLSurface::InitializeOneOff();
324 317
325 return content::UnitTestTestSuite(suite).Run(); 318 return content::UnitTestTestSuite(suite).Run();
326 } 319 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698