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

Side by Side Diff: ui/ozone/common/display_mode_proxy.cc

Issue 2928483003: Delete unnecessary mode code in ozone/drm (Closed)
Patch Set: Created 3 years, 6 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/common/display_mode_proxy.h ('k') | ui/ozone/common/display_snapshot_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ui/ozone/common/display_mode_proxy.h ('k') | ui/ozone/common/display_snapshot_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698