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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_message_params.cc

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 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 5 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
6 6
7 #include "ui/gfx/geometry/rect_conversions.h" 7 #include "ui/gfx/geometry/rect_conversions.h"
8 #include "ui/gfx/ipc/gfx_param_traits.h" 8 #include "ui/gfx/ipc/gfx_param_traits.h"
9 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 9 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 DisplayMode_Params::DisplayMode_Params() { 13 DisplayMode_Params::DisplayMode_Params() {
14 } 14 }
15 15
16 DisplayMode_Params::~DisplayMode_Params() {} 16 DisplayMode_Params::~DisplayMode_Params() {}
17 17
18 DisplaySnapshot_Params::DisplaySnapshot_Params() { 18 DisplaySnapshot_Params::DisplaySnapshot_Params() {
19 } 19 }
20 20
21 DisplaySnapshot_Params::DisplaySnapshot_Params(
22 const DisplaySnapshot_Params& other) = default;
23
21 DisplaySnapshot_Params::~DisplaySnapshot_Params() {} 24 DisplaySnapshot_Params::~DisplaySnapshot_Params() {}
22 25
23 OverlayCheck_Params::OverlayCheck_Params() {} 26 OverlayCheck_Params::OverlayCheck_Params() {}
24 27
25 OverlayCheck_Params::OverlayCheck_Params( 28 OverlayCheck_Params::OverlayCheck_Params(
26 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate) 29 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate)
27 : buffer_size(candidate.buffer_size), 30 : buffer_size(candidate.buffer_size),
28 transform(candidate.transform), 31 transform(candidate.transform),
29 format(candidate.format), 32 format(candidate.format),
30 display_rect(gfx::ToNearestRect(candidate.display_rect)), 33 display_rect(gfx::ToNearestRect(candidate.display_rect)),
31 crop_rect(candidate.crop_rect), 34 crop_rect(candidate.crop_rect),
32 plane_z_order(candidate.plane_z_order) {} 35 plane_z_order(candidate.plane_z_order) {}
33 36
37 OverlayCheck_Params::OverlayCheck_Params(const OverlayCheck_Params& other) =
38 default;
39
34 OverlayCheck_Params::~OverlayCheck_Params() { 40 OverlayCheck_Params::~OverlayCheck_Params() {
35 } 41 }
36 42
37 bool OverlayCheck_Params::operator<(const OverlayCheck_Params& param) const { 43 bool OverlayCheck_Params::operator<(const OverlayCheck_Params& param) const {
38 int lwidth = buffer_size.width(); 44 int lwidth = buffer_size.width();
39 int lheight = buffer_size.height(); 45 int lheight = buffer_size.height();
40 int rwidth = param.buffer_size.width(); 46 int rwidth = param.buffer_size.width();
41 int rheight = param.buffer_size.height(); 47 int rheight = param.buffer_size.height();
42 48
43 return std::tie(plane_z_order, format, display_rect, lwidth, lheight, 49 return std::tie(plane_z_order, format, display_rect, lwidth, lheight,
44 transform) < std::tie(param.plane_z_order, param.format, 50 transform) < std::tie(param.plane_z_order, param.format,
45 param.display_rect, rwidth, rheight, 51 param.display_rect, rwidth, rheight,
46 param.transform); 52 param.transform);
47 } 53 }
48 54
49 } // namespace ui 55 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.h ('k') | ui/ozone/platform/drm/gpu/fake_plane_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698