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

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

Issue 207443007: Blacklist partial swaps on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 6 years, 9 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 | « ui/gl/gl_surface.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Implement GLSurface. 55 // Implement GLSurface.
56 virtual EGLConfig GetConfig() OVERRIDE; 56 virtual EGLConfig GetConfig() OVERRIDE;
57 virtual bool Initialize() OVERRIDE; 57 virtual bool Initialize() OVERRIDE;
58 virtual void Destroy() OVERRIDE; 58 virtual void Destroy() OVERRIDE;
59 virtual bool Resize(const gfx::Size& size) OVERRIDE; 59 virtual bool Resize(const gfx::Size& size) OVERRIDE;
60 virtual bool Recreate() OVERRIDE; 60 virtual bool Recreate() OVERRIDE;
61 virtual bool IsOffscreen() OVERRIDE; 61 virtual bool IsOffscreen() OVERRIDE;
62 virtual bool SwapBuffers() OVERRIDE; 62 virtual bool SwapBuffers() OVERRIDE;
63 virtual gfx::Size GetSize() OVERRIDE; 63 virtual gfx::Size GetSize() OVERRIDE;
64 virtual EGLSurface GetHandle() OVERRIDE; 64 virtual EGLSurface GetHandle() OVERRIDE;
65 virtual std::string GetExtensions() OVERRIDE; 65 virtual bool SupportsPostSubBuffer() OVERRIDE;
66 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 66 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
67 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; 67 virtual VSyncProvider* GetVSyncProvider() OVERRIDE;
68 68
69 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. 69 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider.
70 // Takes ownership of the VSyncProvider. 70 // Takes ownership of the VSyncProvider.
71 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); 71 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider);
72 72
73 protected: 73 protected:
74 virtual ~NativeViewGLSurfaceEGL(); 74 virtual ~NativeViewGLSurfaceEGL();
75 void SetHandle(EGLSurface surface); 75 void SetHandle(EGLSurface surface);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual ~SurfacelessEGL(); 134 virtual ~SurfacelessEGL();
135 135
136 private: 136 private:
137 gfx::Size size_; 137 gfx::Size size_;
138 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 138 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
139 }; 139 };
140 140
141 } // namespace gfx 141 } // namespace gfx
142 142
143 #endif // UI_GL_GL_SURFACE_EGL_H_ 143 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698