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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_message_params.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/gl/gl_surface_overlay.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.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_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 DisplayMode_Params(); 24 DisplayMode_Params();
25 ~DisplayMode_Params(); 25 ~DisplayMode_Params();
26 26
27 gfx::Size size; 27 gfx::Size size;
28 bool is_interlaced = false; 28 bool is_interlaced = false;
29 float refresh_rate = 0.0f; 29 float refresh_rate = 0.0f;
30 }; 30 };
31 31
32 struct DisplaySnapshot_Params { 32 struct DisplaySnapshot_Params {
33 DisplaySnapshot_Params(); 33 DisplaySnapshot_Params();
34 DisplaySnapshot_Params(const DisplaySnapshot_Params& other);
34 ~DisplaySnapshot_Params(); 35 ~DisplaySnapshot_Params();
35 36
36 int64_t display_id = 0; 37 int64_t display_id = 0;
37 gfx::Point origin; 38 gfx::Point origin;
38 gfx::Size physical_size; 39 gfx::Size physical_size;
39 DisplayConnectionType type = DISPLAY_CONNECTION_TYPE_NONE; 40 DisplayConnectionType type = DISPLAY_CONNECTION_TYPE_NONE;
40 bool is_aspect_preserving_scaling = false; 41 bool is_aspect_preserving_scaling = false;
41 bool has_overscan = false; 42 bool has_overscan = false;
42 bool has_color_correction_matrix = false; 43 bool has_color_correction_matrix = false;
43 std::string display_name; 44 std::string display_name;
44 base::FilePath sys_path; 45 base::FilePath sys_path;
45 std::vector<DisplayMode_Params> modes; 46 std::vector<DisplayMode_Params> modes;
46 std::vector<uint8_t> edid; 47 std::vector<uint8_t> edid;
47 bool has_current_mode = false; 48 bool has_current_mode = false;
48 DisplayMode_Params current_mode; 49 DisplayMode_Params current_mode;
49 bool has_native_mode = false; 50 bool has_native_mode = false;
50 DisplayMode_Params native_mode; 51 DisplayMode_Params native_mode;
51 int64_t product_id = 0; 52 int64_t product_id = 0;
52 std::string string_representation; 53 std::string string_representation;
53 }; 54 };
54 55
55 struct OverlayCheck_Params { 56 struct OverlayCheck_Params {
56 OverlayCheck_Params(); 57 OverlayCheck_Params();
57 OverlayCheck_Params( 58 OverlayCheck_Params(
58 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); 59 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate);
60 OverlayCheck_Params(const OverlayCheck_Params& other);
59 ~OverlayCheck_Params(); 61 ~OverlayCheck_Params();
60 62
61 bool operator<(const OverlayCheck_Params& plane) const; 63 bool operator<(const OverlayCheck_Params& plane) const;
62 64
63 gfx::Size buffer_size; 65 gfx::Size buffer_size;
64 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; 66 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID;
65 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888; 67 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888;
66 gfx::Rect display_rect; 68 gfx::Rect display_rect;
67 gfx::RectF crop_rect; 69 gfx::RectF crop_rect;
68 int plane_z_order = 0; 70 int plane_z_order = 0;
69 // By default we mark this configuration valid for promoting it to an overlay. 71 // By default we mark this configuration valid for promoting it to an overlay.
70 bool is_overlay_candidate = true; 72 bool is_overlay_candidate = true;
71 }; 73 };
72 74
73 } // namespace ui 75 } // namespace ui
74 76
75 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 77 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
76 78
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_overlay.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698