| 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 30 matching lines...) Expand all Loading... |
| 41 std::vector<base::ScopedFD>&& fds, | 41 std::vector<base::ScopedFD>&& fds, |
| 42 const std::vector<gfx::NativePixmapPlane>& planes); | 42 const std::vector<gfx::NativePixmapPlane>& planes); |
| 43 uint32_t GetFormat() const { return format_; } | 43 uint32_t GetFormat() const { return format_; } |
| 44 uint32_t GetFlags() const { return flags_; } | 44 uint32_t GetFlags() const { return flags_; } |
| 45 bool AreFdsValid() const; | 45 bool AreFdsValid() const; |
| 46 size_t GetFdCount() const; | 46 size_t GetFdCount() const; |
| 47 int GetFd(size_t plane) const; | 47 int GetFd(size_t plane) const; |
| 48 int GetStride(size_t plane) const; | 48 int GetStride(size_t plane) const; |
| 49 int GetOffset(size_t plane) const; | 49 int GetOffset(size_t plane) const; |
| 50 size_t GetSize(size_t plane) const; | 50 size_t GetSize(size_t plane) const; |
| 51 uint64_t GetFormatModifier(size_t plane) const; | |
| 52 gfx::Size GetSize() const override; | 51 gfx::Size GetSize() const override; |
| 53 | 52 |
| 54 private: | 53 private: |
| 55 GbmBuffer(const scoped_refptr<GbmDevice>& gbm, | 54 GbmBuffer(const scoped_refptr<GbmDevice>& gbm, |
| 56 gbm_bo* bo, | 55 gbm_bo* bo, |
| 57 uint32_t format, | 56 uint32_t format, |
| 58 uint32_t flags, | 57 uint32_t flags, |
| 59 uint64_t modifier, | 58 uint64_t modifier, |
| 60 uint32_t addfb_flags, | 59 uint32_t addfb_flags, |
| 61 std::vector<base::ScopedFD>&& fds, | 60 std::vector<base::ScopedFD>&& fds, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // this Pixmap. This holds the processed buffer. | 120 // this Pixmap. This holds the processed buffer. |
| 122 scoped_refptr<GbmPixmap> processed_pixmap_; | 121 scoped_refptr<GbmPixmap> processed_pixmap_; |
| 123 ProcessingCallback processing_callback_; | 122 ProcessingCallback processing_callback_; |
| 124 | 123 |
| 125 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); | 124 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 } // namespace ui | 127 } // namespace ui |
| 129 | 128 |
| 130 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 129 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| OLD | NEW |