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