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

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

Issue 1895153002: 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/egl.cc ('k') | gpu/gles2_conform_support/egl/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/surface.h
diff --git a/gpu/gles2_conform_support/egl/surface.h b/gpu/gles2_conform_support/egl/surface.h
index 84ba0aac2d1ac2c79eab9b0d614be7205b786134..3db553efe566c17a753e4a6b4350f6112be3785b 100644
--- a/gpu/gles2_conform_support/egl/surface.h
+++ b/gpu/gles2_conform_support/egl/surface.h
@@ -8,28 +8,19 @@
#include <EGL/egl.h>
#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-namespace gfx {
-class GLSurface;
-}
+
namespace egl {
-class Surface : public base::RefCountedThreadSafe<Surface> {
+class Surface {
public:
- explicit Surface(gfx::GLSurface* gl_surface);
- void set_is_current_in_some_thread(bool flag) {
- is_current_in_some_thread_ = flag;
- }
- bool is_current_in_some_thread() const { return is_current_in_some_thread_; }
- gfx::GLSurface* gl_surface() const;
- static bool ValidatePbufferAttributeList(const EGLint* attrib_list);
- static bool ValidateWindowAttributeList(const EGLint* attrib_list);
+ explicit Surface(EGLNativeWindowType win);
+ ~Surface();
+
+ EGLNativeWindowType window() { return window_; }
private:
- friend class base::RefCountedThreadSafe<Surface>;
- ~Surface();
- bool is_current_in_some_thread_;
- scoped_refptr<gfx::GLSurface> gl_surface_;
+ EGLNativeWindowType window_;
+
DISALLOW_COPY_AND_ASSIGN(Surface);
};
« no previous file with comments | « gpu/gles2_conform_support/egl/egl.cc ('k') | gpu/gles2_conform_support/egl/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698