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

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

Issue 2360453003: Revert of Add NV12 buffer scanout support from exo to ozone. (Closed)
Patch Set: Created 4 years, 3 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/service/feature_info.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},
477 {WL_DRM_FORMAT_YVU420, gfx::BufferFormat::YVU_420}}; 476 {WL_DRM_FORMAT_YVU420, gfx::BufferFormat::YVU_420}};
478 477
479 void drm_authenticate(wl_client* client, wl_resource* resource, uint32_t id) { 478 void drm_authenticate(wl_client* client, wl_resource* resource, uint32_t id) {
480 wl_drm_send_authenticated(resource); 479 wl_drm_send_authenticated(resource);
481 } 480 }
482 481
483 void drm_create_buffer(wl_client* client, 482 void drm_create_buffer(wl_client* client,
484 wl_resource* resource, 483 wl_resource* resource,
485 uint32_t id, 484 uint32_t id,
486 uint32_t name, 485 uint32_t name,
(...skipping 2642 matching lines...) Expand 10 before | Expand all | Expand 10 after
3129 DCHECK(event_loop); 3128 DCHECK(event_loop);
3130 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); 3129 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds());
3131 } 3130 }
3132 3131
3133 void Server::Flush() { 3132 void Server::Flush() {
3134 wl_display_flush_clients(wl_display_.get()); 3133 wl_display_flush_clients(wl_display_.get());
3135 } 3134 }
3136 3135
3137 } // namespace wayland 3136 } // namespace wayland
3138 } // namespace exo 3137 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/buffer.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698