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

Side by Side Diff: ui/compositor/test/test_suite.cc

Issue 94963003: Take GL version and extensions correctly into account when binding functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Improve Windows initialization and renderBufferMultisample explanation 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
« no previous file with comments | « media/tools/player_x11/gl_video_renderer.cc ('k') | ui/gl/generate_bindings.py » ('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 #include "ui/compositor/test/test_suite.h" 5 #include "ui/compositor/test/test_suite.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "ui/compositor/compositor.h" 9 #include "ui/compositor/compositor.h"
10 #include "ui/compositor/compositor_switches.h" 10 #include "ui/compositor/compositor_switches.h"
(...skipping 13 matching lines...) Expand all
24 24
25 CompositorTestSuite::CompositorTestSuite(int argc, char** argv) 25 CompositorTestSuite::CompositorTestSuite(int argc, char** argv)
26 : TestSuite(argc, argv) {} 26 : TestSuite(argc, argv) {}
27 27
28 CompositorTestSuite::~CompositorTestSuite() {} 28 CompositorTestSuite::~CompositorTestSuite() {}
29 29
30 void CompositorTestSuite::Initialize() { 30 void CompositorTestSuite::Initialize() {
31 #if defined(USE_X11) 31 #if defined(USE_X11)
32 XInitThreads(); 32 XInitThreads();
33 #endif 33 #endif
34 CHECK(gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL)); 34 CHECK(gfx::InitializeStaticGLBindings(gfx::kGLImplementationOSMesaGL));
35 base::TestSuite::Initialize(); 35 base::TestSuite::Initialize();
36 36
37 gfx::RegisterPathProvider(); 37 gfx::RegisterPathProvider();
38 38
39 #if defined(OS_WIN) 39 #if defined(OS_WIN)
40 gfx::InitDeviceScaleFactor(1.0f); 40 gfx::InitDeviceScaleFactor(1.0f);
41 #endif 41 #endif
42 42
43 message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI)); 43 message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI));
44 } 44 }
45 45
46 void CompositorTestSuite::Shutdown() { 46 void CompositorTestSuite::Shutdown() {
47 message_loop_.reset(); 47 message_loop_.reset();
48 48
49 base::TestSuite::Shutdown(); 49 base::TestSuite::Shutdown();
50 } 50 }
51 51
52 } // namespace test 52 } // namespace test
53 } // namespace ui 53 } // namespace ui
OLDNEW
« no previous file with comments | « media/tools/player_x11/gl_video_renderer.cc ('k') | ui/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698