Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: ui/ozone/platform/drm/gpu/gbm_buffer.h

Issue 2951193002: ozone/drm: Only reuse ScanoutBuffers with compatible modifiers (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698