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

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

Issue 1871743003: ui: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 11 matching lines...) Expand all
22 22
23 struct OverlayPlane { 23 struct OverlayPlane {
24 // Simpler constructor for the primary plane. 24 // Simpler constructor for the primary plane.
25 explicit OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer); 25 explicit OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer);
26 26
27 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, 27 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer,
28 int z_order, 28 int z_order,
29 gfx::OverlayTransform plane_transform, 29 gfx::OverlayTransform plane_transform,
30 const gfx::Rect& display_bounds, 30 const gfx::Rect& display_bounds,
31 const gfx::RectF& crop_rect); 31 const gfx::RectF& crop_rect);
32 OverlayPlane(const OverlayPlane& other);
32 33
33 // This represents a callback function which can handle post processing 34 // This represents a callback function which can handle post processing
34 // operations like scaling, format conversion etc of the buffer bound to this 35 // operations like scaling, format conversion etc of the buffer bound to this
35 // plane and return the processed buffer. 36 // plane and return the processed buffer.
36 typedef base::Callback<scoped_refptr<ScanoutBuffer>(const gfx::Size& size, 37 typedef base::Callback<scoped_refptr<ScanoutBuffer>(const gfx::Size& size,
37 uint32_t format)> 38 uint32_t format)>
38 ProcessBufferCallback; 39 ProcessBufferCallback;
39 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer, 40 OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer,
40 int z_order, 41 int z_order,
41 gfx::OverlayTransform plane_transform, 42 gfx::OverlayTransform plane_transform,
(...skipping 12 matching lines...) Expand all
54 int z_order = 0; 55 int z_order = 0;
55 gfx::OverlayTransform plane_transform; 56 gfx::OverlayTransform plane_transform;
56 gfx::Rect display_bounds; 57 gfx::Rect display_bounds;
57 gfx::RectF crop_rect; 58 gfx::RectF crop_rect;
58 ProcessBufferCallback processing_callback; 59 ProcessBufferCallback processing_callback;
59 }; 60 };
60 61
61 } // namespace ui 62 } // namespace ui
62 63
63 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_ 64 #endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc ('k') | ui/ozone/platform/drm/gpu/overlay_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698