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

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

Issue 135213003: Ensure GL initialization only happens once, and provide common init path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initgl: compile3 Created 6 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <stdio.h> 5 #include <stdio.h>
6 #include <cmath> 6 #include <cmath>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 // need to set it up before we can run the tests. 1564 // need to set it up before we can run the tests.
1565 int main(int argc, char** argv) { 1565 int main(int argc, char** argv) {
1566 CommandLine::Init(argc, argv); 1566 CommandLine::Init(argc, argv);
1567 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); 1567 base::TestSuite* suite = new content::ContentTestSuite(argc, argv);
1568 #if defined(OS_MACOSX) 1568 #if defined(OS_MACOSX)
1569 base::mac::ScopedNSAutoreleasePool pool; 1569 base::mac::ScopedNSAutoreleasePool pool;
1570 #endif 1570 #endif
1571 #if defined(TOOLKIT_GTK) 1571 #if defined(TOOLKIT_GTK)
1572 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); 1572 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
1573 #endif 1573 #endif
1574 gfx::GLSurface::InitializeOneOff();
1575 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess()); 1574 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess());
1576 1575
1577 content::UnitTestTestSuite runner(suite); 1576 content::UnitTestTestSuite runner(suite);
1578 base::MessageLoop message_loop; 1577 base::MessageLoop message_loop;
1579 return runner.Run(); 1578 return runner.Run();
1580 } 1579 }
OLDNEW
« no previous file with comments | « content/browser/compositor/software_output_device_ozone_unittest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698