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

Side by Side Diff: media/video/capture/screen/win/scoped_thread_desktop.cc

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/video/capture/screen/win/scoped_thread_desktop.h ('k') | remoting/capturer/DEPS » ('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/capturer/win/scoped_thread_desktop.h" 5 #include "media/video/capture/screen/win/scoped_thread_desktop.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #include "remoting/capturer/win/desktop.h" 9 #include "media/video/capture/screen/win/desktop.h"
10 10
11 namespace remoting { 11 namespace media {
12 12
13 ScopedThreadDesktop::ScopedThreadDesktop() 13 ScopedThreadDesktop::ScopedThreadDesktop()
14 : initial_(Desktop::GetThreadDesktop()) { 14 : initial_(Desktop::GetThreadDesktop()) {
15 } 15 }
16 16
17 ScopedThreadDesktop::~ScopedThreadDesktop() { 17 ScopedThreadDesktop::~ScopedThreadDesktop() {
18 Revert(); 18 Revert();
19 } 19 }
20 20
21 bool ScopedThreadDesktop::IsSame(const Desktop& desktop) { 21 bool ScopedThreadDesktop::IsSame(const Desktop& desktop) {
(...skipping 17 matching lines...) Expand all
39 if (initial_->IsSame(*desktop)) 39 if (initial_->IsSame(*desktop))
40 return true; 40 return true;
41 41
42 if (!desktop->SetThreadDesktop()) 42 if (!desktop->SetThreadDesktop())
43 return false; 43 return false;
44 44
45 assigned_ = desktop.Pass(); 45 assigned_ = desktop.Pass();
46 return true; 46 return true;
47 } 47 }
48 48
49 } // namespace remoting 49 } // namespace media
OLDNEW
« no previous file with comments | « media/video/capture/screen/win/scoped_thread_desktop.h ('k') | remoting/capturer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698