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

Side by Side Diff: ui/gl/gl_surface_egl.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, 5 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.cc ('k') | ui/gl/gl_surface_egl.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_EGL_H_ 5 #ifndef UI_GL_GL_SURFACE_EGL_H_
6 #define UI_GL_GL_SURFACE_EGL_H_ 6 #define UI_GL_GL_SURFACE_EGL_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 23 matching lines...) Expand all
34 GLSurfaceEGL(); 34 GLSurfaceEGL();
35 35
36 // Implement GLSurface. 36 // Implement GLSurface.
37 virtual EGLDisplay GetDisplay() OVERRIDE; 37 virtual EGLDisplay GetDisplay() OVERRIDE;
38 38
39 static bool InitializeOneOff(); 39 static bool InitializeOneOff();
40 static EGLDisplay GetHardwareDisplay(); 40 static EGLDisplay GetHardwareDisplay();
41 static EGLDisplay GetSoftwareDisplay(); 41 static EGLDisplay GetSoftwareDisplay();
42 static EGLNativeDisplayType GetNativeDisplay(); 42 static EGLNativeDisplayType GetNativeDisplay();
43 43
44 // These aren't particularly tied to surfaces, but since we already
45 // have the static InitializeOneOff here, it's easiest to reuse its
46 // initialization guards.
47 static const char* GetEGLExtensions();
48 static bool HasEGLExtension(const char* name);
49 static bool IsCreateContextRobustnessSupported();
50
44 protected: 51 protected:
45 virtual ~GLSurfaceEGL(); 52 virtual ~GLSurfaceEGL();
46 53
47 bool software_; 54 bool software_;
48 55
49 private: 56 private:
50 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 57 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
51 }; 58 };
52 59
53 // Encapsulates an EGL surface bound to a view. 60 // Encapsulates an EGL surface bound to a view.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 private: 108 private:
102 gfx::Size size_; 109 gfx::Size size_;
103 EGLSurface surface_; 110 EGLSurface surface_;
104 111
105 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); 112 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL);
106 }; 113 };
107 114
108 } // namespace gfx 115 } // namespace gfx
109 116
110 #endif // UI_GL_GL_SURFACE_EGL_H_ 117 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698