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

Side by Side Diff: ui/ozone/public/overlay_candidates_ozone.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
« no previous file with comments | « ui/ozone/platform/drm/gpu/overlay_plane.cc ('k') | ui/ozone/public/overlay_candidates_ozone.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 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_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ 5 #ifndef UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_
6 #define UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ 6 #define UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/gfx/geometry/rect_f.h" 10 #include "ui/gfx/geometry/rect_f.h"
11 #include "ui/ozone/ozone_base_export.h" 11 #include "ui/ozone/ozone_base_export.h"
12 #include "ui/ozone/public/surface_factory_ozone.h" 12 #include "ui/ozone/public/surface_factory_ozone.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 // This class can be used to answer questions about possible overlay 16 // This class can be used to answer questions about possible overlay
17 // configurations for a particular output device. We get an instance of this 17 // configurations for a particular output device. We get an instance of this
18 // class from SurfaceFactoryOzone given an AcceleratedWidget. 18 // class from SurfaceFactoryOzone given an AcceleratedWidget.
19 class OZONE_BASE_EXPORT OverlayCandidatesOzone { 19 class OZONE_BASE_EXPORT OverlayCandidatesOzone {
20 public: 20 public:
21 struct OverlaySurfaceCandidate { 21 struct OverlaySurfaceCandidate {
22 OverlaySurfaceCandidate(); 22 OverlaySurfaceCandidate();
23 OverlaySurfaceCandidate(const OverlaySurfaceCandidate& other);
23 ~OverlaySurfaceCandidate(); 24 ~OverlaySurfaceCandidate();
24 25
25 // Transformation to apply to layer during composition. 26 // Transformation to apply to layer during composition.
26 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_NONE; 27 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_NONE;
27 // Format of the buffer to composite. 28 // Format of the buffer to composite.
28 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888; 29 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888;
29 // Size of the buffer, in pixels. 30 // Size of the buffer, in pixels.
30 gfx::Size buffer_size; 31 gfx::Size buffer_size;
31 // Rect on the display to position the overlay to. Input rectangle may 32 // Rect on the display to position the overlay to. Input rectangle may
32 // not have integer coordinates, but when accepting for overlay, must 33 // not have integer coordinates, but when accepting for overlay, must
(...skipping 25 matching lines...) Expand all
58 // the implementation must also snap |display_rect| to integer coordinates 59 // the implementation must also snap |display_rect| to integer coordinates
59 // if necessary. 60 // if necessary.
60 virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces); 61 virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces);
61 62
62 virtual ~OverlayCandidatesOzone(); 63 virtual ~OverlayCandidatesOzone();
63 }; 64 };
64 65
65 } // namespace ui 66 } // namespace ui
66 67
67 #endif // UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ 68 #endif // UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/overlay_plane.cc ('k') | ui/ozone/public/overlay_candidates_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698