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

Side by Side Diff: remoting/host/desktop_resizer_win.cc

Issue 112453002: Remove dependency on skia from remoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_resizer.h ('k') | remoting/host/desktop_session_agent.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/host/desktop_resizer.h" 5 #include "remoting/host/desktop_resizer.h"
6 6
7 #include <map> 7 #include <map>
8 #include <windows.h>
8 9
9 #include "base/logging.h" 10 #include "base/logging.h"
10 11
11 namespace { 12 namespace {
12 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. 13 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405.
13 const int kDefaultDPI = 96; 14 const int kDefaultDPI = 96;
14 } // namespace 15 } // namespace
15 16
16 namespace remoting { 17 namespace remoting {
17 18
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return ScreenResolution( 182 return ScreenResolution(
182 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight), 183 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight),
183 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI)); 184 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI));
184 } 185 }
185 186
186 scoped_ptr<DesktopResizer> DesktopResizer::Create() { 187 scoped_ptr<DesktopResizer> DesktopResizer::Create() {
187 return scoped_ptr<DesktopResizer>(new DesktopResizerWin); 188 return scoped_ptr<DesktopResizer>(new DesktopResizerWin);
188 } 189 }
189 190
190 } // namespace remoting 191 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_resizer.h ('k') | remoting/host/desktop_session_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698