| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 uint32_t format_; | 75 uint32_t format_; |
| 76 uint32_t flags_; | 76 uint32_t flags_; |
| 77 std::vector<base::ScopedFD> fds_; | 77 std::vector<base::ScopedFD> fds_; |
| 78 gfx::Size size_; | 78 gfx::Size size_; |
| 79 | 79 |
| 80 std::vector<gfx::NativePixmapPlane> planes_; | 80 std::vector<gfx::NativePixmapPlane> planes_; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(GbmBuffer); | 82 DISALLOW_COPY_AND_ASSIGN(GbmBuffer); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class GbmPixmap : public NativePixmap { | 85 class GbmPixmap : public gfx::NativePixmap { |
| 86 public: | 86 public: |
| 87 GbmPixmap(GbmSurfaceFactory* surface_manager, | 87 GbmPixmap(GbmSurfaceFactory* surface_manager, |
| 88 const scoped_refptr<GbmBuffer>& buffer); | 88 const scoped_refptr<GbmBuffer>& buffer); |
| 89 | 89 |
| 90 void SetProcessingCallback( | 90 void SetProcessingCallback( |
| 91 const ProcessingCallback& processing_callback) override; | 91 const ProcessingCallback& processing_callback) override; |
| 92 | 92 |
| 93 // NativePixmap: | 93 // NativePixmap: |
| 94 void* GetEGLClientBuffer() const override; | 94 void* GetEGLClientBuffer() const override; |
| 95 bool AreDmaBufFdsValid() const override; | 95 bool AreDmaBufFdsValid() const override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 121 // this Pixmap. This holds the processed buffer. | 121 // this Pixmap. This holds the processed buffer. |
| 122 scoped_refptr<GbmPixmap> processed_pixmap_; | 122 scoped_refptr<GbmPixmap> processed_pixmap_; |
| 123 ProcessingCallback processing_callback_; | 123 ProcessingCallback processing_callback_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); | 125 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace ui | 128 } // namespace ui |
| 129 | 129 |
| 130 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 130 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| OLD | NEW |