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

Side by Side Diff: ui/ozone/platform/drm/gpu/overlay_plane.cc

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/gpu/overlay_plane.h" 5 #include "ui/ozone/platform/drm/gpu/overlay_plane.h"
6 6
7 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" 7 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 21 matching lines...) Expand all
32 const OverlayPlane* OverlayPlane::GetPrimaryPlane( 32 const OverlayPlane* OverlayPlane::GetPrimaryPlane(
33 const OverlayPlaneList& overlays) { 33 const OverlayPlaneList& overlays) {
34 for (size_t i = 0; i < overlays.size(); ++i) { 34 for (size_t i = 0; i < overlays.size(); ++i) {
35 if (overlays[i].z_order == 0) 35 if (overlays[i].z_order == 0)
36 return &overlays[i]; 36 return &overlays[i];
37 } 37 }
38 38
39 return nullptr; 39 return nullptr;
40 } 40 }
41 41
42 OverlayBufferConfiguration::OverlayBufferConfiguration(
43 gfx::BufferFormat buffer_format,
44 gfx::Size buffer_size,
45 bool handle_scaling)
46 : buffer_format(buffer_format),
47 buffer_size(buffer_size),
48 handle_scaling(handle_scaling) {}
49
50 OverlayBufferConfiguration::~OverlayBufferConfiguration() {}
51
42 } // namespace ui 52 } // namespace ui
OLDNEW
« ui/ozone/platform/drm/gpu/overlay_plane.h ('K') | « ui/ozone/platform/drm/gpu/overlay_plane.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698