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

Side by Side Diff: ui/gl/gl_image.h

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/imageId/image_id/ Created 8 years, 2 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/gl/gl.gyp ('k') | ui/gl/gl_image.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GL_GL_IMAGE_H_
6 #define UI_GL_GL_IMAGE_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/size.h"
11 #include "ui/gl/gl_bindings.h"
12 #include "ui/gl/gl_export.h"
13
14 namespace gfx {
15
16 class GLSurface;
17
18 // Encapsulates an image that can be bound to a texture, hiding platform
19 // specific management.
20 class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
21 public:
22 GLImage();
23
24 // Destroys the image.
25 virtual void Destroy() = 0;
26
27 // Get the size of the image.
28 virtual gfx::Size GetSize() = 0;
29
30 // Create a GL image for a window.
31 static scoped_refptr<GLImage> CreateGLImage(gfx::PluginWindowHandle window);
tfarina 2012/10/12 01:40:49 nit: place this before the constructor? so it isn'
reveman 2012/10/12 03:29:11 Moved it below virtual methods as that's consisten
32
33 virtual bool BindTexImage();
34 virtual void ReleaseTexImage();
35
36 protected:
37 virtual ~GLImage();
38
39 private:
40 friend class base::RefCounted<GLImage>;
41
42 DISALLOW_COPY_AND_ASSIGN(GLImage);
43 };
44
45 } // namespace gfx
46
47 #endif // UI_GL_GL_IMAGE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698