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

Side by Side Diff: ui/ozone/platform/drm/common/drm_util.cc

Issue 2761533002: ozone: Import multi-planar GBMs. (Closed)
Patch Set: 0 inzialize struct with {} instead of {0}. Created 3 years, 9 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
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 #include "ui/ozone/platform/drm/common/drm_util.h" 5 #include "ui/ozone/platform/drm/common/drm_util.h"
6 6
7 #include <drm_fourcc.h> 7 #include <drm_fourcc.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 case gfx::BufferFormat::RGBA_8888: 429 case gfx::BufferFormat::RGBA_8888:
430 case gfx::BufferFormat::RGBX_8888: 430 case gfx::BufferFormat::RGBX_8888:
431 return DRM_FORMAT_XBGR8888; 431 return DRM_FORMAT_XBGR8888;
432 case gfx::BufferFormat::BGRA_8888: 432 case gfx::BufferFormat::BGRA_8888:
433 case gfx::BufferFormat::BGRX_8888: 433 case gfx::BufferFormat::BGRX_8888:
434 return DRM_FORMAT_XRGB8888; 434 return DRM_FORMAT_XRGB8888;
435 case gfx::BufferFormat::BGR_565: 435 case gfx::BufferFormat::BGR_565:
436 return DRM_FORMAT_RGB565; 436 return DRM_FORMAT_RGB565;
437 case gfx::BufferFormat::UYVY_422: 437 case gfx::BufferFormat::UYVY_422:
438 return DRM_FORMAT_UYVY; 438 return DRM_FORMAT_UYVY;
439 case gfx::BufferFormat::YUV_420_BIPLANAR:
440 return DRM_FORMAT_NV12;
441 case gfx::BufferFormat::YVU_420:
442 return DRM_FORMAT_YV12;
439 default: 443 default:
440 NOTREACHED(); 444 NOTREACHED();
441 return 0; 445 return 0;
442 } 446 }
443 } 447 }
444 } // namespace ui 448 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698