| Index: ui/ozone/platform/drm/gpu/gbm_buffer.cc
|
| diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
|
| index c92ba44240b58351d82a76fbabd96cab1e87b388..70c76b5a50266c24481c692932511f5453240454 100644
|
| --- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
|
| +++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
|
| @@ -19,11 +19,11 @@ namespace ui {
|
|
|
| namespace {
|
|
|
| -int GetGbmFormatFromBufferFormat(SurfaceFactoryOzone::BufferFormat fmt) {
|
| +int GetGbmFormatFromPixmapFormat(PixmapFormat fmt) {
|
| switch (fmt) {
|
| - case SurfaceFactoryOzone::BGRA_8888:
|
| + case PIXMAP_FORMAT_BGRA_8888:
|
| return GBM_BO_FORMAT_ARGB8888;
|
| - case SurfaceFactoryOzone::RGBX_8888:
|
| + case PIXMAP_FORMAT_RGBX_8888:
|
| return GBM_BO_FORMAT_XRGB8888;
|
| default:
|
| NOTREACHED();
|
| @@ -47,7 +47,7 @@ GbmBuffer::~GbmBuffer() {
|
| // static
|
| scoped_refptr<GbmBuffer> GbmBuffer::CreateBuffer(
|
| const scoped_refptr<GbmDevice>& gbm,
|
| - SurfaceFactoryOzone::BufferFormat format,
|
| + PixmapFormat format,
|
| const gfx::Size& size,
|
| bool scanout) {
|
| TRACE_EVENT2("drm", "GbmBuffer::CreateBuffer", "device",
|
| @@ -56,7 +56,7 @@ scoped_refptr<GbmBuffer> GbmBuffer::CreateBuffer(
|
| if (scanout)
|
| flags |= GBM_BO_USE_SCANOUT;
|
| gbm_bo* bo = gbm_bo_create(gbm->device(), size.width(), size.height(),
|
| - GetGbmFormatFromBufferFormat(format), flags);
|
| + GetGbmFormatFromPixmapFormat(format), flags);
|
| if (!bo)
|
| return NULL;
|
|
|
|
|