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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce ClientPixmap and rename to ClientPixmapManager Created 5 years, 5 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
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;

Powered by Google App Engine
This is Rietveld 408576698