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

Side by Side Diff: ui/gfx/gl/gl_surface.h

Issue 7645004: Add gl.dll, compositor.dll, and surface.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/gfx/gl/gl_share_group.h ('k') | ui/gfx/gl/gl_surface_egl.h » ('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 UI_GFX_GL_GL_SURFACE_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_H_
6 #define UI_GFX_GL_GL_SURFACE_H_ 6 #define UI_GFX_GL_GL_SURFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "ui/gfx/gl/gl_export.h"
11 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 16
16 class GLContext; 17 class GLContext;
17 18
18 // Encapsulates a surface that can be rendered to with GL, hiding platform 19 // Encapsulates a surface that can be rendered to with GL, hiding platform
19 // specific management. 20 // specific management.
20 class GLSurface : public base::RefCounted<GLSurface> { 21 class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
21 public: 22 public:
22 GLSurface(); 23 GLSurface();
23 24
24 // (Re)create the surface. TODO(apatrick): This is an ugly hack to allow the 25 // (Re)create the surface. TODO(apatrick): This is an ugly hack to allow the
25 // EGL surface associated to be recreated without destroying the associated 26 // EGL surface associated to be recreated without destroying the associated
26 // context. The implementation of this function for other GLSurface derived 27 // context. The implementation of this function for other GLSurface derived
27 // classes is in a pending changelist. 28 // classes is in a pending changelist.
28 virtual bool Initialize(); 29 virtual bool Initialize();
29 30
30 // Destroys the surface. 31 // Destroys the surface.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual ~GLSurface(); 69 virtual ~GLSurface();
69 70
70 private: 71 private:
71 friend class base::RefCounted<GLSurface>; 72 friend class base::RefCounted<GLSurface>;
72 DISALLOW_COPY_AND_ASSIGN(GLSurface); 73 DISALLOW_COPY_AND_ASSIGN(GLSurface);
73 }; 74 };
74 75
75 } // namespace gfx 76 } // namespace gfx
76 77
77 #endif // UI_GFX_GL_GL_SURFACE_H_ 78 #endif // UI_GFX_GL_GL_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_share_group.h ('k') | ui/gfx/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698