summaryrefslogtreecommitdiffstats
path: root/gpu/gles2_conform_support/egl/surface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/gles2_conform_support/egl/surface.cc')
-rw-r--r--gpu/gles2_conform_support/egl/surface.cc31
1 files changed, 2 insertions, 29 deletions
diff --git a/gpu/gles2_conform_support/egl/surface.cc b/gpu/gles2_conform_support/egl/surface.cc
index 9899cb3..423fe27 100644
--- a/gpu/gles2_conform_support/egl/surface.cc
+++ b/gpu/gles2_conform_support/egl/surface.cc
@@ -3,40 +3,13 @@
// found in the LICENSE file.
#include "gpu/gles2_conform_support/egl/surface.h"
-#include "ui/gl/gl_surface.h"
namespace egl {
-Surface::Surface(gfx::GLSurface* gl_surface)
- : is_current_in_some_thread_(false), gl_surface_(gl_surface) {}
-
-Surface::~Surface() {
-}
-
-gfx::GLSurface* Surface::gl_surface() const {
- return gl_surface_.get();
+Surface::Surface(EGLNativeWindowType win) : window_(win) {
}
-bool Surface::ValidatePbufferAttributeList(const EGLint* attrib_list) {
- if (attrib_list) {
- for (int i = 0; attrib_list[i] != EGL_NONE; i += 2) {
- switch (attrib_list[i]) {
- case EGL_WIDTH:
- case EGL_HEIGHT:
- break;
- default:
- return false;
- }
- }
- }
- return true;
+Surface::~Surface() {
}
-bool Surface::ValidateWindowAttributeList(const EGLint* attrib_list) {
- if (attrib_list) {
- if (attrib_list[0] != EGL_NONE)
- return false;
- }
- return true;
-}
} // namespace egl