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

Unified Diff: gpu/gles2_conform_support/egl/surface.cc

Issue 1909573002: Revert of command_buffer_gles2: Implement EGL default Display as a global object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command_buffer_gles2-multiple-contexts
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/gles2_conform_support/egl/surface.h ('k') | gpu/gles2_conform_support/egl/test_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/surface.cc
diff --git a/gpu/gles2_conform_support/egl/surface.cc b/gpu/gles2_conform_support/egl/surface.cc
index 726d75349c561346ec26c7d26a338dc1466cfb53..423fe2756f65cb39f65ecff797ffdd3ec73919b6 100644
--- a/gpu/gles2_conform_support/egl/surface.cc
+++ b/gpu/gles2_conform_support/egl/surface.cc
@@ -3,46 +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, const Config* config)
- : is_current_in_some_thread_(false),
- gl_surface_(gl_surface),
- config_(config) {}
+Surface::Surface(EGLNativeWindowType win) : window_(win) {
+}
Surface::~Surface() {
}
-gfx::GLSurface* Surface::gl_surface() const {
- return gl_surface_.get();
-}
-
-const Config* Surface::config() const {
- return config_;
-}
-
-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;
-}
-
-bool Surface::ValidateWindowAttributeList(const EGLint* attrib_list) {
- if (attrib_list) {
- if (attrib_list[0] != EGL_NONE)
- return false;
- }
- return true;
-}
} // namespace egl
« no previous file with comments | « gpu/gles2_conform_support/egl/surface.h ('k') | gpu/gles2_conform_support/egl/test_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698