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

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

Issue 2627193003: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: Created 3 years, 11 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/gbm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.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_BASE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 uint32_t GetHandle() const override; 30 uint32_t GetHandle() const override;
31 gfx::Size GetSize() const override; 31 gfx::Size GetSize() const override;
32 uint32_t GetFramebufferPixelFormat() const override; 32 uint32_t GetFramebufferPixelFormat() const override;
33 const DrmDevice* GetDrmDevice() const override; 33 const DrmDevice* GetDrmDevice() const override;
34 bool RequiresGlFinish() const override; 34 bool RequiresGlFinish() const override;
35 35
36 protected: 36 protected:
37 GbmBufferBase(const scoped_refptr<GbmDevice>& drm, 37 GbmBufferBase(const scoped_refptr<GbmDevice>& drm,
38 gbm_bo* bo, 38 gbm_bo* bo,
39 uint32_t format, 39 uint32_t format,
40 uint32_t flags); 40 uint32_t flags,
41 uint64_t modifier,
42 uint32_t addfb_flags);
41 ~GbmBufferBase() override; 43 ~GbmBufferBase() override;
42 44
43 private: 45 private:
44 scoped_refptr<GbmDevice> drm_; 46 scoped_refptr<GbmDevice> drm_;
45 gbm_bo* bo_; 47 gbm_bo* bo_;
46 uint32_t framebuffer_ = 0; 48 uint32_t framebuffer_ = 0;
47 uint32_t framebuffer_pixel_format_ = 0; 49 uint32_t framebuffer_pixel_format_ = 0;
48 50
49 DISALLOW_COPY_AND_ASSIGN(GbmBufferBase); 51 DISALLOW_COPY_AND_ASSIGN(GbmBufferBase);
50 }; 52 };
51 53
52 } // namespace ui 54 } // namespace ui
53 55
54 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ 56 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698