| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ | 5 #ifndef UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
| 6 #define UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ | 6 #define UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "ui/gfx/buffer_types.h" | 12 #include "ui/gfx/buffer_types.h" |
| 13 #include "ui/gfx/native_pixmap.h" |
| 13 #include "ui/gl/gl_image_egl.h" | 14 #include "ui/gl/gl_image_egl.h" |
| 14 #include "ui/ozone/gl/ozone_gl_export.h" | 15 #include "ui/ozone/gl/ozone_gl_export.h" |
| 15 #include "ui/ozone/public/native_pixmap.h" | |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 class OZONE_GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL { | 19 class OZONE_GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL { |
| 20 public: | 20 public: |
| 21 GLImageOzoneNativePixmap(const gfx::Size& size, unsigned internalformat); | 21 GLImageOzoneNativePixmap(const gfx::Size& size, unsigned internalformat); |
| 22 | 22 |
| 23 bool Initialize(NativePixmap* pixmap, gfx::BufferFormat format); | 23 bool Initialize(NativePixmap* pixmap, gfx::BufferFormat format); |
| 24 | 24 |
| 25 // Overridden from GLImage: | 25 // Overridden from GLImage: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 unsigned internalformat_; | 44 unsigned internalformat_; |
| 45 scoped_refptr<NativePixmap> pixmap_; | 45 scoped_refptr<NativePixmap> pixmap_; |
| 46 bool has_image_flush_external_; | 46 bool has_image_flush_external_; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace ui | 49 } // namespace ui |
| 50 | 50 |
| 51 #endif // UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ | 51 #endif // UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
| OLD | NEW |