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

Side by Side Diff: ui/ozone/public/gl_ozone.h

Issue 2543313002: ui/gl: rename ClearGLBindings to ShutdownGL (Closed)
Patch Set: 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/ozone/platform/x11/gl_ozone_glx.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 #ifndef UI_OZONE_PUBLIC_GL_OZONE_H_ 5 #ifndef UI_OZONE_PUBLIC_GL_OZONE_H_
6 #define UI_OZONE_PUBLIC_GL_OZONE_H_ 6 #define UI_OZONE_PUBLIC_GL_OZONE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 22 matching lines...) Expand all
33 virtual bool InitializeStaticGLBindings( 33 virtual bool InitializeStaticGLBindings(
34 gl::GLImplementation implementation) = 0; 34 gl::GLImplementation implementation) = 0;
35 35
36 // Performs any one off initialization for GL implementation. 36 // Performs any one off initialization for GL implementation.
37 virtual bool InitializeGLOneOffPlatform() = 0; 37 virtual bool InitializeGLOneOffPlatform() = 0;
38 38
39 // Initializes static debug GL bindings. 39 // Initializes static debug GL bindings.
40 virtual void InitializeDebugGLBindings() = 0; 40 virtual void InitializeDebugGLBindings() = 0;
41 41
42 // Clears static GL bindings. 42 // Clears static GL bindings.
43 virtual void ClearGLBindings() = 0; 43 virtual void ShutdownGL() = 0;
44 44
45 // Returns information about the GL window system binding implementation (eg. 45 // Returns information about the GL window system binding implementation (eg.
46 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. 46 // EGL, GLX, WGL). Returns true if the information was retrieved successfully.
47 virtual bool GetGLWindowSystemBindingInfo( 47 virtual bool GetGLWindowSystemBindingInfo(
48 gl::GLWindowSystemBindingInfo* info) = 0; 48 gl::GLWindowSystemBindingInfo* info) = 0;
49 49
50 // Creates a GL context that is compatible with the given surface. 50 // Creates a GL context that is compatible with the given surface.
51 // |share_group|, if not null, is a group of contexts which the internally 51 // |share_group|, if not null, is a group of contexts which the internally
52 // created OpenGL context shares textures and other resources. 52 // created OpenGL context shares textures and other resources.
53 virtual scoped_refptr<gl::GLContext> CreateGLContext( 53 virtual scoped_refptr<gl::GLContext> CreateGLContext(
(...skipping 13 matching lines...) Expand all
67 gfx::AcceleratedWidget window) = 0; 67 gfx::AcceleratedWidget window) = 0;
68 68
69 // Creates a GL surface used for offscreen rendering. 69 // Creates a GL surface used for offscreen rendering.
70 virtual scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( 70 virtual scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
71 const gfx::Size& size) = 0; 71 const gfx::Size& size) = 0;
72 }; 72 };
73 73
74 } // namespace ui 74 } // namespace ui
75 75
76 #endif // UI_OZONE_PUBLIC_GL_OZONE_H_ 76 #endif // UI_OZONE_PUBLIC_GL_OZONE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/x11/gl_ozone_glx.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698