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

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

Issue 8566041: Allow GLSurface to indicate that it supports a specific extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gpu_unittests. Created 9 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/gfx/gl/gl_surface_egl.cc ('k') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/base/x/x11_util.h" 10 #include "ui/base/x/x11_util.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 explicit NativeViewGLSurfaceGLX(gfx::PluginWindowHandle window); 45 explicit NativeViewGLSurfaceGLX(gfx::PluginWindowHandle window);
46 virtual ~NativeViewGLSurfaceGLX(); 46 virtual ~NativeViewGLSurfaceGLX();
47 47
48 // Implement GLSurfaceGLX. 48 // Implement GLSurfaceGLX.
49 virtual bool Initialize(); 49 virtual bool Initialize();
50 virtual void Destroy(); 50 virtual void Destroy();
51 virtual bool IsOffscreen(); 51 virtual bool IsOffscreen();
52 virtual bool SwapBuffers(); 52 virtual bool SwapBuffers();
53 virtual gfx::Size GetSize(); 53 virtual gfx::Size GetSize();
54 virtual void* GetHandle(); 54 virtual void* GetHandle();
55 virtual std::string GetExtensions();
55 virtual void* GetConfig(); 56 virtual void* GetConfig();
56 virtual bool SupportsPostSubBuffer();
57 virtual bool PostSubBuffer(int x, int y, int width, int height); 57 virtual bool PostSubBuffer(int x, int y, int width, int height);
58 58
59 protected: 59 protected:
60 NativeViewGLSurfaceGLX(); 60 NativeViewGLSurfaceGLX();
61 61
62 gfx::PluginWindowHandle window_; 62 gfx::PluginWindowHandle window_;
63 63
64 private: 64 private:
65 void* config_; 65 void* config_;
66 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX); 66 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceGLX);
(...skipping 17 matching lines...) Expand all
84 private: 84 private:
85 gfx::Size size_; 85 gfx::Size size_;
86 void* config_; 86 void* config_;
87 XID pbuffer_; 87 XID pbuffer_;
88 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); 88 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX);
89 }; 89 };
90 90
91 } // namespace gfx 91 } // namespace gfx
92 92
93 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_ 93 #endif // UI_GFX_GL_GL_SURFACE_GLX_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface_egl.cc ('k') | ui/gfx/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698