OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_OZONE_NATIVE_PIXMAP_H_ | 5 #ifndef UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ | 6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ui/gfx/buffer_types.h" | 10 #include "ui/gfx/buffer_types.h" |
9 #include "ui/gl/gl_image_egl.h" | 11 #include "ui/gl/gl_image_egl.h" |
10 #include "ui/ozone/public/native_pixmap.h" | 12 #include "ui/ozone/public/native_pixmap.h" |
11 | 13 |
12 namespace gfx { | 14 namespace gfx { |
13 | 15 |
14 class GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL { | 16 class GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL { |
15 public: | 17 public: |
16 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat); | 18 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat); |
17 | 19 |
(...skipping 15 matching lines...) Expand all Loading... |
33 ~GLImageOzoneNativePixmap() override; | 35 ~GLImageOzoneNativePixmap() override; |
34 | 36 |
35 private: | 37 private: |
36 unsigned internalformat_; | 38 unsigned internalformat_; |
37 scoped_refptr<ui::NativePixmap> pixmap_; | 39 scoped_refptr<ui::NativePixmap> pixmap_; |
38 }; | 40 }; |
39 | 41 |
40 } // namespace gfx | 42 } // namespace gfx |
41 | 43 |
42 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ | 44 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
OLD | NEW |