OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_GL_GL_IMAGE_H_ | 5 #ifndef UI_GL_GL_IMAGE_H_ |
6 #define UI_GL_GL_IMAGE_H_ | 6 #define UI_GL_GL_IMAGE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "ui/gfx/geometry/rect.h" |
| 10 #include "ui/gfx/geometry/rect_f.h" |
9 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/gfx/overlay_transform.h" | 12 #include "ui/gfx/overlay_transform.h" |
11 #include "ui/gfx/rect.h" | |
12 #include "ui/gfx/rect_f.h" | |
13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/size.h" |
14 #include "ui/gl/gl_export.h" | 14 #include "ui/gl/gl_export.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 | 17 |
18 // Encapsulates an image that can be bound to a texture, hiding platform | 18 // Encapsulates an image that can be bound to a texture, hiding platform |
19 // specific management. | 19 // specific management. |
20 class GL_EXPORT GLImage : public base::RefCounted<GLImage> { | 20 class GL_EXPORT GLImage : public base::RefCounted<GLImage> { |
21 public: | 21 public: |
22 GLImage() {} | 22 GLImage() {} |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 private: | 61 private: |
62 friend class base::RefCounted<GLImage>; | 62 friend class base::RefCounted<GLImage>; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(GLImage); | 64 DISALLOW_COPY_AND_ASSIGN(GLImage); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace gfx | 67 } // namespace gfx |
68 | 68 |
69 #endif // UI_GL_GL_IMAGE_H_ | 69 #endif // UI_GL_GL_IMAGE_H_ |
OLD | NEW |