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

Side by Side Diff: webrtc/modules/desktop_capture/shared_desktop_frame.cc

Issue 2609523002: Reland of Refactor webrtc/modules/desktop_capture for GN check (Closed)
Patch Set: Enabling `gn check` for desktop_capture (chromium trybots are green) Created 3 years, 11 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 | « webrtc/modules/desktop_capture/desktop_capture_types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h" 11 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h"
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #include "webrtc/base/constructormagic.h" 15 #include "webrtc/base/constructormagic.h"
16 #include "webrtc/system_wrappers/include/atomic32.h"
17 16
18 namespace webrtc { 17 namespace webrtc {
19 18
20 SharedDesktopFrame::~SharedDesktopFrame() {} 19 SharedDesktopFrame::~SharedDesktopFrame() {}
21 20
22 // static 21 // static
23 std::unique_ptr<SharedDesktopFrame> SharedDesktopFrame::Wrap( 22 std::unique_ptr<SharedDesktopFrame> SharedDesktopFrame::Wrap(
24 std::unique_ptr<DesktopFrame> desktop_frame) { 23 std::unique_ptr<DesktopFrame> desktop_frame) {
25 return std::unique_ptr<SharedDesktopFrame>( 24 return std::unique_ptr<SharedDesktopFrame>(
26 new SharedDesktopFrame(new Core(std::move(desktop_frame)))); 25 new SharedDesktopFrame(new Core(std::move(desktop_frame))));
(...skipping 20 matching lines...) Expand all
47 } 46 }
48 47
49 SharedDesktopFrame::SharedDesktopFrame(rtc::scoped_refptr<Core> core) 48 SharedDesktopFrame::SharedDesktopFrame(rtc::scoped_refptr<Core> core)
50 : DesktopFrame((*core)->size(), 49 : DesktopFrame((*core)->size(),
51 (*core)->stride(), 50 (*core)->stride(),
52 (*core)->data(), 51 (*core)->data(),
53 (*core)->shared_memory()), 52 (*core)->shared_memory()),
54 core_(core) {} 53 core_(core) {}
55 54
56 } // namespace webrtc 55 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/desktop_capture_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698