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

Side by Side Diff: ui/ozone/common/gl_ozone_egl.cc

Issue 2491993002: ui/gl: Initialize the ANGLE Platform on all configurations (Closed)
Patch Set: Rebase on top of the renaming of ClearGLBindings Created 4 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 | « ui/gl/init/gl_initializer_x11.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ozone/common/gl_ozone_egl.h" 5 #include "ui/ozone/common/gl_ozone_egl.h"
6 6
7 #include "ui/gl/gl_bindings.h" 7 #include "ui/gl/gl_bindings.h"
8 #include "ui/gl/gl_context.h" 8 #include "ui/gl/gl_context.h"
9 #include "ui/gl/gl_context_egl.h" 9 #include "ui/gl/gl_context_egl.h"
10 #include "ui/gl/gl_egl_api_implementation.h" 10 #include "ui/gl/gl_egl_api_implementation.h"
(...skipping 23 matching lines...) Expand all
34 34
35 return true; 35 return true;
36 } 36 }
37 37
38 void GLOzoneEGL::InitializeDebugGLBindings() { 38 void GLOzoneEGL::InitializeDebugGLBindings() {
39 gl::InitializeDebugGLBindingsGL(); 39 gl::InitializeDebugGLBindingsGL();
40 gl::InitializeDebugGLBindingsEGL(); 40 gl::InitializeDebugGLBindingsEGL();
41 } 41 }
42 42
43 void GLOzoneEGL::ShutdownGL() { 43 void GLOzoneEGL::ShutdownGL() {
44 gl::GLSurfaceEGL::ResetForTesting(); 44 gl::GLSurfaceEGL::ShutdownOneOff();
45 gl::ClearBindingsGL(); 45 gl::ClearBindingsGL();
46 gl::ClearBindingsEGL(); 46 gl::ClearBindingsEGL();
47 } 47 }
48 48
49 bool GLOzoneEGL::GetGLWindowSystemBindingInfo( 49 bool GLOzoneEGL::GetGLWindowSystemBindingInfo(
50 gl::GLWindowSystemBindingInfo* info) { 50 gl::GLWindowSystemBindingInfo* info) {
51 return gl::GetGLWindowSystemBindingInfoEGL(info); 51 return gl::GetGLWindowSystemBindingInfoEGL(info);
52 } 52 }
53 53
54 scoped_refptr<gl::GLContext> GLOzoneEGL::CreateGLContext( 54 scoped_refptr<gl::GLContext> GLOzoneEGL::CreateGLContext(
55 gl::GLShareGroup* share_group, 55 gl::GLShareGroup* share_group,
56 gl::GLSurface* compatible_surface, 56 gl::GLSurface* compatible_surface,
57 const gl::GLContextAttribs& attribs) { 57 const gl::GLContextAttribs& attribs) {
58 return gl::InitializeGLContext(new gl::GLContextEGL(share_group), 58 return gl::InitializeGLContext(new gl::GLContextEGL(share_group),
59 compatible_surface, attribs); 59 compatible_surface, attribs);
60 } 60 }
61 61
62 scoped_refptr<gl::GLSurface> GLOzoneEGL::CreateSurfacelessViewGLSurface( 62 scoped_refptr<gl::GLSurface> GLOzoneEGL::CreateSurfacelessViewGLSurface(
63 gfx::AcceleratedWidget window) { 63 gfx::AcceleratedWidget window) {
64 // This will usually not be implemented by the platform specific version. 64 // This will usually not be implemented by the platform specific version.
65 return nullptr; 65 return nullptr;
66 } 66 }
67 67
68 } // namespace ui 68 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gl/init/gl_initializer_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698