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

Unified Diff: ui/ozone/platform/dri/dri_buffer.h

Issue 908993003: [Ozone-Dri] Rename DriWrapper to DrmDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl3-pass-drm-fd
Patch Set: rebased Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_buffer.h
diff --git a/ui/ozone/platform/dri/dri_buffer.h b/ui/ozone/platform/dri/dri_buffer.h
index 7bcca1ba1bd154d520bcafe16372a48fb488f914..0b9f8e689c9221484a0372c69865f4f77d877de1 100644
--- a/ui/ozone/platform/dri/dri_buffer.h
+++ b/ui/ozone/platform/dri/dri_buffer.h
@@ -13,14 +13,14 @@
namespace ui {
-class DriWrapper;
+class DrmDevice;
// Wrapper for a DRM allocated buffer. Keeps track of the native properties of
// the buffer and wraps the pixel memory into a SkSurface which can be used to
// draw into using Skia.
class OZONE_EXPORT DriBuffer : public ScanoutBuffer {
public:
- DriBuffer(const scoped_refptr<DriWrapper>& dri);
+ DriBuffer(const scoped_refptr<DrmDevice>& drm);
// Allocates the backing pixels and wraps them in |surface_|. |info| is used
// to describe the buffer characteristics (size, color format).
@@ -38,7 +38,7 @@ class OZONE_EXPORT DriBuffer : public ScanoutBuffer {
protected:
~DriBuffer() override;
- scoped_refptr<DriWrapper> dri_;
+ scoped_refptr<DrmDevice> drm_;
// Wrapper around the native pixel memory.
skia::RefPtr<SkSurface> surface_;
@@ -62,7 +62,7 @@ class OZONE_EXPORT DriBufferGenerator : public ScanoutBufferGenerator {
~DriBufferGenerator() override;
// ScanoutBufferGenerator:
- scoped_refptr<ScanoutBuffer> Create(const scoped_refptr<DriWrapper>& drm,
+ scoped_refptr<ScanoutBuffer> Create(const scoped_refptr<DrmDevice>& drm,
const gfx::Size& size) override;
private:
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698