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

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

Issue 23653049: (not for review) Fix composited-to-non-composited corruption on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « content/gpu/gpu_child_thread.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 std::string GetExtensions() 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 #if defined(TOOLKIT_GTK)
69 static void AcceleratedCompositingStateChange(
70 int32 surface_id, bool compositing_active);
71 #endif
72
68 protected: 73 protected:
69 NativeViewGLSurfaceGLX(); 74 NativeViewGLSurfaceGLX();
70 virtual ~NativeViewGLSurfaceGLX(); 75 virtual ~NativeViewGLSurfaceGLX();
71 76
72 private: 77 private:
73 // The handle for the drawable to make current or swap. 78 // The handle for the drawable to make current or swap.
74 gfx::AcceleratedWidget GetDrawableHandle() const; 79 gfx::AcceleratedWidget GetDrawableHandle() const;
75 80
76 // Window passed in at creation. Always valid. 81 // Window passed in at creation. Always valid.
77 gfx::AcceleratedWidget parent_window_; 82 gfx::AcceleratedWidget parent_window_;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 gfx::Size size_; 138 gfx::Size size_;
134 void* config_; 139 void* config_;
135 XID pbuffer_; 140 XID pbuffer_;
136 141
137 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 142 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
138 }; 143 };
139 144
140 } // namespace gfx 145 } // namespace gfx
141 146
142 #endif // UI_GL_GL_SURFACE_GLX_H_ 147 #endif // UI_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698