| 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 "ui/gfx/gpu_memory_buffer.h" | 8 #include "ui/gfx/buffer_types.h" |
| 9 #include "ui/gl/gl_image_egl.h" | 9 #include "ui/gl/gl_image_egl.h" |
| 10 #include "ui/ozone/public/native_pixmap.h" | 10 #include "ui/ozone/public/native_pixmap.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 | 13 |
| 14 class GL_EXPORT GLImageOzoneNativePixmap : public GLImageEGL { | 14 class GL_EXPORT GLImageOzoneNativePixmap : public GLImageEGL { |
| 15 public: | 15 public: |
| 16 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat); | 16 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat); |
| 17 | 17 |
| 18 bool Initialize(ui::NativePixmap* pixmap, BufferFormat format); | 18 bool Initialize(ui::NativePixmap* pixmap, BufferFormat format); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 ~GLImageOzoneNativePixmap() override; | 33 ~GLImageOzoneNativePixmap() override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 unsigned internalformat_; | 36 unsigned internalformat_; |
| 37 scoped_refptr<ui::NativePixmap> pixmap_; | 37 scoped_refptr<ui::NativePixmap> pixmap_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace gfx | 40 } // namespace gfx |
| 41 | 41 |
| 42 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ | 42 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ |
| OLD | NEW |