| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |