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

Side by Side Diff: webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h

Issue 2975103002: Fix http://crbug.com/741252 (Closed)
Patch Set: Created 3 years, 5 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/win/dxgi_context.cc ('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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Returns dpi of current system. Returns an empty DesktopVector if system 95 // Returns dpi of current system. Returns an empty DesktopVector if system
96 // does not support DXGI based capturer. 96 // does not support DXGI based capturer.
97 DesktopVector dpi(); 97 DesktopVector dpi();
98 98
99 // Returns the count of screens on the system. These screens can be retrieved 99 // Returns the count of screens on the system. These screens can be retrieved
100 // by an integer in the range of [0, ScreenCount()). If system does not 100 // by an integer in the range of [0, ScreenCount()). If system does not
101 // support DXGI based capturer, this function returns 0. 101 // support DXGI based capturer, this function returns 0.
102 int ScreenCount(); 102 int ScreenCount();
103 103
104 private: 104 private:
105 // DxgiFrameContext calls private Unregister(Context*) function during 105 // DxgiFrameContext calls private Unregister(Context*) function in Reset().
106 // destructing. 106 friend void DxgiFrameContext::Reset();
107 friend DxgiFrameContext::~DxgiFrameContext();
108 107
109 // scoped_refptr<DxgiDuplicatorController> accesses private AddRef() and 108 // scoped_refptr<DxgiDuplicatorController> accesses private AddRef() and
110 // Release() functions. 109 // Release() functions.
111 friend class rtc::scoped_refptr<DxgiDuplicatorController>; 110 friend class rtc::scoped_refptr<DxgiDuplicatorController>;
112 111
113 // A private constructor to ensure consumers to use 112 // A private constructor to ensure consumers to use
114 // DxgiDuplicatorController::Instance(). 113 // DxgiDuplicatorController::Instance().
115 DxgiDuplicatorController(); 114 DxgiDuplicatorController();
116 115
117 // Not implemented: The singleton DxgiDuplicatorController instance should not 116 // Not implemented: The singleton DxgiDuplicatorController instance should not
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 std::vector<DxgiAdapterDuplicator> duplicators_; 213 std::vector<DxgiAdapterDuplicator> duplicators_;
215 D3dInfo d3d_info_; 214 D3dInfo d3d_info_;
216 ResolutionChangeDetector resolution_change_detector_; 215 ResolutionChangeDetector resolution_change_detector_;
217 // A number to indicate how many succeeded duplications have been performed. 216 // A number to indicate how many succeeded duplications have been performed.
218 uint32_t succeeded_duplications_ = 0; 217 uint32_t succeeded_duplications_ = 0;
219 }; 218 };
220 219
221 } // namespace webrtc 220 } // namespace webrtc
222 221
223 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_ 222 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698