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

Side by Side Diff: ui/gfx/gl/gl_surface_glx.h

Issue 9669006: Force a swap on resize to work around Intel driver issues with PostSubBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | ui/gfx/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_GFX_GL_GL_SURFACE_GLX_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_GLX_H_
6 #define UI_GFX_GL_GL_SURFACE_GLX_H_ 6 #define UI_GFX_GL_GL_SURFACE_GLX_H_
7 7
8 #include "ui/gfx/gl/gl_surface.h" 8 #include "ui/gfx/gl/gl_surface.h"
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // A surface used to render to a view. 43 // A surface used to render to a view.
44 class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX { 44 class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX {
45 public: 45 public:
46 explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window); 46 explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window);
47 virtual ~NativeViewGLSurfaceGLX(); 47 virtual ~NativeViewGLSurfaceGLX();
48 48
49 // Implement GLSurfaceGLX. 49 // Implement GLSurfaceGLX.
50 virtual bool Initialize() OVERRIDE; 50 virtual bool Initialize() OVERRIDE;
51 virtual void Destroy() OVERRIDE; 51 virtual void Destroy() OVERRIDE;
52 virtual bool Resize(const gfx::Size& size) OVERRIDE;
52 virtual bool IsOffscreen() OVERRIDE; 53 virtual bool IsOffscreen() OVERRIDE;
53 virtual bool SwapBuffers() OVERRIDE; 54 virtual bool SwapBuffers() OVERRIDE;
54 virtual gfx::Size GetSize() OVERRIDE; 55 virtual gfx::Size GetSize() OVERRIDE;
55 virtual void* GetHandle() OVERRIDE; 56 virtual void* GetHandle() OVERRIDE;
56 virtual std::string GetExtensions() OVERRIDE; 57 virtual std::string GetExtensions() OVERRIDE;
57 virtual void* GetConfig() OVERRIDE; 58 virtual void* GetConfig() OVERRIDE;
58 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 59 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
59 60
60 protected: 61 protected:
61 NativeViewGLSurfaceGLX(); 62 NativeViewGLSurfaceGLX();
(...skipping 23 matching lines...) Expand all
85 private: 86 private:
86 gfx::Size size_; 87 gfx::Size size_;
87 void* config_; 88 void* config_;
88 XID pbuffer_; 89 XID pbuffer_;
89 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 90 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
90 }; 91 };
91 92
92 } // namespace gfx 93 } // namespace gfx
93 94
94 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_ 95 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698