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

Side by Side Diff: ui/gl/gl_surface_egl.h

Issue 693943003: Update from https://crrev.com/302630 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/gl_image_glx.cc ('k') | ui/gl/gl_surface_egl.cc » ('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 #ifndef UI_GL_GL_SURFACE_EGL_H_ 5 #ifndef UI_GL_GL_SURFACE_EGL_H_
6 #define UI_GL_GL_SURFACE_EGL_H_ 6 #define UI_GL_GL_SURFACE_EGL_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // need to create a dummy EGLsurface in case we render to client API targets. 124 // need to create a dummy EGLsurface in case we render to client API targets.
125 class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL { 125 class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL {
126 public: 126 public:
127 explicit SurfacelessEGL(const gfx::Size& size); 127 explicit SurfacelessEGL(const gfx::Size& size);
128 128
129 // Implement GLSurface. 129 // Implement GLSurface.
130 EGLConfig GetConfig() override; 130 EGLConfig GetConfig() override;
131 bool Initialize() override; 131 bool Initialize() override;
132 void Destroy() override; 132 void Destroy() override;
133 bool IsOffscreen() override; 133 bool IsOffscreen() override;
134 bool IsSurfaceless() const override;
134 bool SwapBuffers() override; 135 bool SwapBuffers() override;
135 gfx::Size GetSize() override; 136 gfx::Size GetSize() override;
136 bool Resize(const gfx::Size& size) override; 137 bool Resize(const gfx::Size& size) override;
137 EGLSurface GetHandle() override; 138 EGLSurface GetHandle() override;
138 void* GetShareHandle() override; 139 void* GetShareHandle() override;
139 140
140 protected: 141 protected:
141 ~SurfacelessEGL() override; 142 ~SurfacelessEGL() override;
142 143
143 private: 144 private:
144 gfx::Size size_; 145 gfx::Size size_;
145 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 146 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
146 }; 147 };
147 148
148 } // namespace gfx 149 } // namespace gfx
149 150
150 #endif // UI_GL_GL_SURFACE_EGL_H_ 151 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_glx.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698