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

Unified Diff: ui/ozone/platform/dri/gbm_surface.cc

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/gbm_surface.h ('k') | ui/ozone/platform/dri/gbm_surface_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/gbm_surface.cc
diff --git a/ui/ozone/platform/dri/gbm_surface.cc b/ui/ozone/platform/dri/gbm_surface.cc
index e3b62521a7d7f6ded40457ff8b9c2f3a0a33bdbf..ab8e5e389f6b9051cedbf3db54b0a4ef1cc95b60 100644
--- a/ui/ozone/platform/dri/gbm_surface.cc
+++ b/ui/ozone/platform/dri/gbm_surface.cc
@@ -11,7 +11,7 @@
#include "ui/ozone/platform/dri/dri_buffer.h"
#include "ui/ozone/platform/dri/dri_window_delegate.h"
#include "ui/ozone/platform/dri/gbm_buffer_base.h"
-#include "ui/ozone/platform/dri/gbm_wrapper.h"
+#include "ui/ozone/platform/dri/gbm_device.h"
#include "ui/ozone/platform/dri/hardware_display_controller.h"
#include "ui/ozone/platform/dri/scanout_buffer.h"
@@ -22,12 +22,12 @@ namespace {
class GbmSurfaceBuffer : public GbmBufferBase {
public:
static scoped_refptr<GbmSurfaceBuffer> CreateBuffer(
- const scoped_refptr<DriWrapper>& dri,
+ const scoped_refptr<DrmDevice>& drm,
gbm_bo* buffer);
static scoped_refptr<GbmSurfaceBuffer> GetBuffer(gbm_bo* buffer);
private:
- GbmSurfaceBuffer(const scoped_refptr<DriWrapper>& dri, gbm_bo* bo);
+ GbmSurfaceBuffer(const scoped_refptr<DrmDevice>& drm, gbm_bo* bo);
~GbmSurfaceBuffer() override;
static void Destroy(gbm_bo* buffer, void* data);
@@ -42,9 +42,9 @@ class GbmSurfaceBuffer : public GbmBufferBase {
DISALLOW_COPY_AND_ASSIGN(GbmSurfaceBuffer);
};
-GbmSurfaceBuffer::GbmSurfaceBuffer(const scoped_refptr<DriWrapper>& dri,
+GbmSurfaceBuffer::GbmSurfaceBuffer(const scoped_refptr<DrmDevice>& drm,
gbm_bo* bo)
- : GbmBufferBase(dri, bo, true) {
+ : GbmBufferBase(drm, bo, true) {
if (GetFramebufferId()) {
self_ = this;
gbm_bo_set_user_data(bo, this, GbmSurfaceBuffer::Destroy);
@@ -55,10 +55,10 @@ GbmSurfaceBuffer::~GbmSurfaceBuffer() {}
// static
scoped_refptr<GbmSurfaceBuffer> GbmSurfaceBuffer::CreateBuffer(
- const scoped_refptr<DriWrapper>& dri,
+ const scoped_refptr<DrmDevice>& drm,
gbm_bo* buffer) {
- scoped_refptr<GbmSurfaceBuffer> scoped_buffer(new GbmSurfaceBuffer(dri,
- buffer));
+ scoped_refptr<GbmSurfaceBuffer> scoped_buffer(
+ new GbmSurfaceBuffer(drm, buffer));
if (!scoped_buffer->GetFramebufferId())
return NULL;
@@ -80,7 +80,7 @@ void GbmSurfaceBuffer::Destroy(gbm_bo* buffer, void* data) {
} // namespace
GbmSurface::GbmSurface(DriWindowDelegate* window_delegate,
- const scoped_refptr<GbmWrapper>& gbm)
+ const scoped_refptr<GbmDevice>& gbm)
: GbmSurfaceless(window_delegate, NULL),
gbm_(gbm),
native_surface_(NULL),
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface.h ('k') | ui/ozone/platform/dri/gbm_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698