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

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

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_surface_android.h ('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 (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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 protected: 51 protected:
52 virtual ~GLSurfaceEGL(); 52 virtual ~GLSurfaceEGL();
53 53
54 bool software_; 54 bool software_;
55 55
56 private: 56 private:
57 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 57 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
58 }; 58 };
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 GL_EXPORT 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 Resize(const gfx::Size& size) OVERRIDE;
70 virtual bool IsOffscreen() OVERRIDE; 70 virtual bool IsOffscreen() OVERRIDE;
71 virtual bool SwapBuffers() OVERRIDE; 71 virtual bool SwapBuffers() OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 private: 109 private:
110 gfx::Size size_; 110 gfx::Size size_;
111 EGLSurface surface_; 111 EGLSurface surface_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); 113 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL);
114 }; 114 };
115 115
116 } // namespace gfx 116 } // namespace gfx
117 117
118 #endif // UI_GL_GL_SURFACE_EGL_H_ 118 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698