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

Side by Side Diff: gpu/gles2_conform_support/egl/surface.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | gpu/gles2_conform_support/egl/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 GPU_GLES2_CONFORM_TEST_SURFACE_H_ 5 #ifndef GPU_GLES2_CONFORM_TEST_SURFACE_H_
6 #define GPU_GLES2_CONFORM_TEST_SURFACE_H_ 6 #define GPU_GLES2_CONFORM_TEST_SURFACE_H_
7 7
8 #include <EGL/egl.h> 8 #include <EGL/egl.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 namespace gfx { 12 namespace gl {
13 class GLSurface; 13 class GLSurface;
14 } 14 }
15 namespace egl { 15 namespace egl {
16 class Config; 16 class Config;
17 17
18 class Surface : public base::RefCountedThreadSafe<Surface> { 18 class Surface : public base::RefCountedThreadSafe<Surface> {
19 public: 19 public:
20 explicit Surface(gfx::GLSurface* gl_surface, const Config* config); 20 explicit Surface(gl::GLSurface* gl_surface, const Config* config);
21 void set_is_current_in_some_thread(bool flag) { 21 void set_is_current_in_some_thread(bool flag) {
22 is_current_in_some_thread_ = flag; 22 is_current_in_some_thread_ = flag;
23 } 23 }
24 bool is_current_in_some_thread() const { return is_current_in_some_thread_; } 24 bool is_current_in_some_thread() const { return is_current_in_some_thread_; }
25 gfx::GLSurface* gl_surface() const; 25 gl::GLSurface* gl_surface() const;
26 const Config* config() const; 26 const Config* config() const;
27 static bool ValidatePbufferAttributeList(const EGLint* attrib_list); 27 static bool ValidatePbufferAttributeList(const EGLint* attrib_list);
28 static bool ValidateWindowAttributeList(const EGLint* attrib_list); 28 static bool ValidateWindowAttributeList(const EGLint* attrib_list);
29 29
30 private: 30 private:
31 friend class base::RefCountedThreadSafe<Surface>; 31 friend class base::RefCountedThreadSafe<Surface>;
32 ~Surface(); 32 ~Surface();
33 bool is_current_in_some_thread_; 33 bool is_current_in_some_thread_;
34 scoped_refptr<gfx::GLSurface> gl_surface_; 34 scoped_refptr<gl::GLSurface> gl_surface_;
35 const Config* config_; 35 const Config* config_;
36 DISALLOW_COPY_AND_ASSIGN(Surface); 36 DISALLOW_COPY_AND_ASSIGN(Surface);
37 }; 37 };
38 38
39 } // namespace egl 39 } // namespace egl
40 40
41 #endif // GPU_GLES2_CONFORM_TEST_SURFACE_H_ 41 #endif // GPU_GLES2_CONFORM_TEST_SURFACE_H_
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | gpu/gles2_conform_support/egl/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698