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

Unified Diff: ui/gl/test/gl_surface_test_support.cc

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/test/gl_surface_test_support.h ('k') | ui/gl/yuv_to_rgb_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/test/gl_surface_test_support.cc
diff --git a/ui/gl/test/gl_surface_test_support.cc b/ui/gl/test/gl_surface_test_support.cc
index d7f132316f4e42f3f41ab73a1eb916fa420b5a26..88f4fed000a2557f25ee5b5dac7057003ef14eab 100644
--- a/ui/gl/test/gl_surface_test_support.cc
+++ b/ui/gl/test/gl_surface_test_support.cc
@@ -94,4 +94,12 @@ void GLSurfaceTestSupport::InitializeOneOffWithMockBindings() {
InitializeOneOffImplementation(kGLImplementationMockGL, false);
}
+void GLSurfaceTestSupport::InitializeOneOffWithStubBindings() {
+#if defined(USE_OZONE)
+ // This function skips where Ozone is otherwise initialized.
+ ui::OzonePlatform::InitializeForGPU();
+#endif
+ InitializeOneOffImplementation(kGLImplementationStubGL, false);
+}
+
} // namespace gl
« no previous file with comments | « ui/gl/test/gl_surface_test_support.h ('k') | ui/gl/yuv_to_rgb_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698