OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/gl/test/gl_surface_test_support.h" | 5 #include "ui/gl/test/gl_surface_test_support.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // static | 88 // static |
89 void GLSurfaceTestSupport::InitializeOneOffWithMockBindings() { | 89 void GLSurfaceTestSupport::InitializeOneOffWithMockBindings() { |
90 #if defined(USE_OZONE) | 90 #if defined(USE_OZONE) |
91 // This function skips where Ozone is otherwise initialized. | 91 // This function skips where Ozone is otherwise initialized. |
92 ui::OzonePlatform::InitializeForGPU(); | 92 ui::OzonePlatform::InitializeForGPU(); |
93 #endif | 93 #endif |
94 InitializeOneOffImplementation(kGLImplementationMockGL, false); | 94 InitializeOneOffImplementation(kGLImplementationMockGL, false); |
95 } | 95 } |
96 | 96 |
| 97 void GLSurfaceTestSupport::InitializeOneOffWithStubBindings() { |
| 98 #if defined(USE_OZONE) |
| 99 // This function skips where Ozone is otherwise initialized. |
| 100 ui::OzonePlatform::InitializeForGPU(); |
| 101 #endif |
| 102 InitializeOneOffImplementation(kGLImplementationStubGL, false); |
| 103 } |
| 104 |
97 } // namespace gl | 105 } // namespace gl |
OLD | NEW |