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

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

Issue 10836300: Override Resize() in NativeViewGLSurfaceEGL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Encapsulates an EGL surface bound to a view. 60 // Encapsulates an EGL surface bound to a view.
61 class NativeViewGLSurfaceEGL : public GLSurfaceEGL { 61 class NativeViewGLSurfaceEGL : public GLSurfaceEGL {
62 public: 62 public:
63 NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window); 63 NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window);
64 64
65 // Implement GLSurface. 65 // Implement GLSurface.
66 virtual EGLConfig GetConfig() OVERRIDE; 66 virtual EGLConfig GetConfig() OVERRIDE;
67 virtual bool Initialize() OVERRIDE; 67 virtual bool Initialize() OVERRIDE;
68 virtual void Destroy() OVERRIDE; 68 virtual void Destroy() OVERRIDE;
69 virtual bool Resize(const gfx::Size& size) OVERRIDE;
69 virtual bool IsOffscreen() OVERRIDE; 70 virtual bool IsOffscreen() OVERRIDE;
70 virtual bool SwapBuffers() OVERRIDE; 71 virtual bool SwapBuffers() OVERRIDE;
71 virtual gfx::Size GetSize() OVERRIDE; 72 virtual gfx::Size GetSize() OVERRIDE;
72 virtual EGLSurface GetHandle() OVERRIDE; 73 virtual EGLSurface GetHandle() OVERRIDE;
73 virtual std::string GetExtensions() OVERRIDE; 74 virtual std::string GetExtensions() OVERRIDE;
74 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 75 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
75 76
76 protected: 77 protected:
77 virtual ~NativeViewGLSurfaceEGL(); 78 virtual ~NativeViewGLSurfaceEGL();
78 void SetHandle(EGLSurface surface); 79 void SetHandle(EGLSurface surface);
(...skipping 29 matching lines...) Expand all
108 private: 109 private:
109 gfx::Size size_; 110 gfx::Size size_;
110 EGLSurface surface_; 111 EGLSurface surface_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); 113 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL);
113 }; 114 };
114 115
115 } // namespace gfx 116 } // namespace gfx
116 117
117 #endif // UI_GL_GL_SURFACE_EGL_H_ 118 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698