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

Side by Side Diff: components/exo/wayland/server.cc

Issue 2296433002: Add NV12 buffer scanout support from exo to ozone. (Closed)
Patch Set: Don't claim that image_ycbcr_420v is available. Created 4 years, 2 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
« no previous file with comments | « components/exo/buffer.cc ('k') | gpu/command_buffer/common/gpu_memory_buffer_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/exo/wayland/server.h" 5 #include "components/exo/wayland/server.h"
6 6
7 #include <grp.h> 7 #include <grp.h>
8 #include <linux/input.h> 8 #include <linux/input.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 const struct drm_supported_format { 467 const struct drm_supported_format {
468 uint32_t drm_format; 468 uint32_t drm_format;
469 gfx::BufferFormat buffer_format; 469 gfx::BufferFormat buffer_format;
470 } drm_supported_formats[] = { 470 } drm_supported_formats[] = {
471 {WL_DRM_FORMAT_RGB565, gfx::BufferFormat::BGR_565}, 471 {WL_DRM_FORMAT_RGB565, gfx::BufferFormat::BGR_565},
472 {WL_DRM_FORMAT_XBGR8888, gfx::BufferFormat::RGBX_8888}, 472 {WL_DRM_FORMAT_XBGR8888, gfx::BufferFormat::RGBX_8888},
473 {WL_DRM_FORMAT_ABGR8888, gfx::BufferFormat::RGBA_8888}, 473 {WL_DRM_FORMAT_ABGR8888, gfx::BufferFormat::RGBA_8888},
474 {WL_DRM_FORMAT_XRGB8888, gfx::BufferFormat::BGRX_8888}, 474 {WL_DRM_FORMAT_XRGB8888, gfx::BufferFormat::BGRX_8888},
475 {WL_DRM_FORMAT_ARGB8888, gfx::BufferFormat::BGRA_8888}, 475 {WL_DRM_FORMAT_ARGB8888, gfx::BufferFormat::BGRA_8888},
476 {WL_DRM_FORMAT_NV12, gfx::BufferFormat::YUV_420_BIPLANAR},
476 {WL_DRM_FORMAT_YVU420, gfx::BufferFormat::YVU_420}}; 477 {WL_DRM_FORMAT_YVU420, gfx::BufferFormat::YVU_420}};
477 478
478 void drm_authenticate(wl_client* client, wl_resource* resource, uint32_t id) { 479 void drm_authenticate(wl_client* client, wl_resource* resource, uint32_t id) {
479 wl_drm_send_authenticated(resource); 480 wl_drm_send_authenticated(resource);
480 } 481 }
481 482
482 void drm_create_buffer(wl_client* client, 483 void drm_create_buffer(wl_client* client,
483 wl_resource* resource, 484 wl_resource* resource,
484 uint32_t id, 485 uint32_t id,
485 uint32_t name, 486 uint32_t name,
(...skipping 3503 matching lines...) Expand 10 before | Expand all | Expand 10 after
3989 DCHECK(event_loop); 3990 DCHECK(event_loop);
3990 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); 3991 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds());
3991 } 3992 }
3992 3993
3993 void Server::Flush() { 3994 void Server::Flush() {
3994 wl_display_flush_clients(wl_display_.get()); 3995 wl_display_flush_clients(wl_display_.get());
3995 } 3996 }
3996 3997
3997 } // namespace wayland 3998 } // namespace wayland
3998 } // namespace exo 3999 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/buffer.cc ('k') | gpu/command_buffer/common/gpu_memory_buffer_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698