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

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

Issue 10822029: Use EXT_robustness where available on GLES2 platforms to detect and respond to resets of the graphi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review feedback. Rebuilt and re-tested. Created 8 years, 4 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_fence.cc ('k') | ui/gl/gl_surface.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_H_ 5 #ifndef UI_GL_GL_SURFACE_H_
6 #define UI_GL_GL_SURFACE_H_ 6 #define UI_GL_GL_SURFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool software, 112 bool software,
113 const gfx::Size& size); 113 const gfx::Size& size);
114 114
115 static GLSurface* GetCurrent(); 115 static GLSurface* GetCurrent();
116 116
117 protected: 117 protected:
118 virtual ~GLSurface(); 118 virtual ~GLSurface();
119 static bool InitializeOneOffInternal(); 119 static bool InitializeOneOffInternal();
120 static void SetCurrent(GLSurface* surface); 120 static void SetCurrent(GLSurface* surface);
121 121
122 static bool ExtensionsContain(const char* extensions, const char* name);
123
122 private: 124 private:
123 friend class base::RefCounted<GLSurface>; 125 friend class base::RefCounted<GLSurface>;
124 friend class GLContext; 126 friend class GLContext;
125 127
126 DISALLOW_COPY_AND_ASSIGN(GLSurface); 128 DISALLOW_COPY_AND_ASSIGN(GLSurface);
127 }; 129 };
128 130
129 // Implementation of GLSurface that forwards all calls through to another 131 // Implementation of GLSurface that forwards all calls through to another
130 // GLSurface. 132 // GLSurface.
131 class GL_EXPORT GLSurfaceAdapter : public GLSurface { 133 class GL_EXPORT GLSurfaceAdapter : public GLSurface {
(...skipping 27 matching lines...) Expand all
159 161
160 private: 162 private:
161 scoped_refptr<GLSurface> surface_; 163 scoped_refptr<GLSurface> surface_;
162 164
163 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); 165 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter);
164 }; 166 };
165 167
166 } // namespace gfx 168 } // namespace gfx
167 169
168 #endif // UI_GL_GL_SURFACE_H_ 170 #endif // UI_GL_GL_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698