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

Side by Side Diff: ui/gl/gl_surface_glx.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_egl.cc ('k') | ui/gl/gl_surface_glx.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_GLX_H_ 5 #ifndef UI_GL_GL_SURFACE_GLX_H_
6 #define UI_GL_GL_SURFACE_GLX_H_ 6 #define UI_GL_GL_SURFACE_GLX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window); 53 explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window);
54 54
55 // Implement GLSurfaceGLX. 55 // Implement GLSurfaceGLX.
56 virtual bool Initialize() OVERRIDE; 56 virtual bool Initialize() OVERRIDE;
57 virtual void Destroy() OVERRIDE; 57 virtual void Destroy() OVERRIDE;
58 virtual bool Resize(const gfx::Size& size) OVERRIDE; 58 virtual bool Resize(const gfx::Size& size) OVERRIDE;
59 virtual bool IsOffscreen() OVERRIDE; 59 virtual bool IsOffscreen() OVERRIDE;
60 virtual bool SwapBuffers() OVERRIDE; 60 virtual bool SwapBuffers() OVERRIDE;
61 virtual gfx::Size GetSize() OVERRIDE; 61 virtual gfx::Size GetSize() OVERRIDE;
62 virtual void* GetHandle() OVERRIDE; 62 virtual void* GetHandle() OVERRIDE;
63 virtual std::string GetExtensions() OVERRIDE; 63 virtual bool SupportsPostSubBuffer() OVERRIDE;
64 virtual void* GetConfig() OVERRIDE; 64 virtual void* GetConfig() OVERRIDE;
65 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 65 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
66 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; 66 virtual VSyncProvider* GetVSyncProvider() OVERRIDE;
67 67
68 protected: 68 protected:
69 NativeViewGLSurfaceGLX(); 69 NativeViewGLSurfaceGLX();
70 virtual ~NativeViewGLSurfaceGLX(); 70 virtual ~NativeViewGLSurfaceGLX();
71 71
72 private: 72 private:
73 // The handle for the drawable to make current or swap. 73 // The handle for the drawable to make current or swap.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 gfx::Size size_; 133 gfx::Size size_;
134 void* config_; 134 void* config_;
135 XID pbuffer_; 135 XID pbuffer_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 137 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
138 }; 138 };
139 139
140 } // namespace gfx 140 } // namespace gfx
141 141
142 #endif // UI_GL_GL_SURFACE_GLX_H_ 142 #endif // UI_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698