| 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 "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
| 6 | 6 |
| 7 #include "ui/ozone/common/display_mode_proxy.h" | 7 #include "ui/ozone/common/display_mode_proxy.h" |
| 8 | 8 |
| 9 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 9 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 DisplayModeProxy::DisplayModeProxy(const DisplayMode_Params& params) | 13 DisplayModeProxy::DisplayModeProxy(const DisplayMode_Params& params) |
| 14 : DisplayMode(params.size, params.is_interlaced, params.refresh_rate) { | 14 : DisplayMode(params.size, params.is_interlaced, params.refresh_rate) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 DisplayModeProxy::DisplayModeProxy(const gfx::Size& size, | 17 DisplayModeProxy::DisplayModeProxy(const gfx::Size& size, |
| 18 bool interlaced, | 18 bool interlaced, |
| 19 float refresh_rate) | 19 float refresh_rate) |
| 20 : DisplayMode(size, interlaced, refresh_rate) {} | 20 : DisplayMode(size, interlaced, refresh_rate) {} |
| 21 | 21 |
| 22 DisplayModeProxy::~DisplayModeProxy() { | 22 DisplayModeProxy::~DisplayModeProxy() { |
| 23 } | 23 } |
| 24 | 24 |
| 25 std::unique_ptr<DisplayMode> DisplayModeProxy::Clone() const { | 25 std::unique_ptr<display::DisplayMode> DisplayModeProxy::Clone() const { |
| 26 return base::WrapUnique( | 26 return base::WrapUnique( |
| 27 new DisplayModeProxy(size(), is_interlaced(), refresh_rate())); | 27 new DisplayModeProxy(size(), is_interlaced(), refresh_rate())); |
| 28 } | 28 } |
| 29 | 29 |
| 30 } // namespace ui | 30 } // namespace ui |
| OLD | NEW |