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

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

Issue 2436503004: Enable clang style plugin in webrtc/modules/desktop_capture (Closed)
Patch Set: . Created 4 years, 1 month 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
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
(...skipping 29 matching lines...) Expand all
40 // 40 //
41 // If XDamage is used, this class sets DesktopFrame::updated_region() according 41 // If XDamage is used, this class sets DesktopFrame::updated_region() according
42 // to the areas reported by XDamage. Otherwise this class does not detect 42 // to the areas reported by XDamage. Otherwise this class does not detect
43 // DesktopFrame::updated_region(), the field is always set to the entire frame 43 // DesktopFrame::updated_region(), the field is always set to the entire frame
44 // rectangle. ScreenCapturerDifferWrapper should be used if that functionality 44 // rectangle. ScreenCapturerDifferWrapper should be used if that functionality
45 // is necessary. 45 // is necessary.
46 class ScreenCapturerLinux : public ScreenCapturer, 46 class ScreenCapturerLinux : public ScreenCapturer,
47 public SharedXDisplay::XEventHandler { 47 public SharedXDisplay::XEventHandler {
48 public: 48 public:
49 ScreenCapturerLinux(); 49 ScreenCapturerLinux();
50 virtual ~ScreenCapturerLinux(); 50 ~ScreenCapturerLinux() override;
51 51
52 // TODO(ajwong): Do we really want this to be synchronous? 52 // TODO(ajwong): Do we really want this to be synchronous?
53 bool Init(const DesktopCaptureOptions& options); 53 bool Init(const DesktopCaptureOptions& options);
54 54
55 // DesktopCapturer interface. 55 // DesktopCapturer interface.
56 void Start(Callback* delegate) override; 56 void Start(Callback* delegate) override;
57 void CaptureFrame() override; 57 void CaptureFrame() override;
58 58
59 // ScreenCapturer interface. 59 // ScreenCapturer interface.
60 bool GetScreenList(ScreenList* screens) override; 60 bool GetScreenList(ScreenList* screens) override;
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 412 }
413 413
414 if (options.detect_updated_region()) { 414 if (options.detect_updated_region()) {
415 capturer.reset(new ScreenCapturerDifferWrapper(std::move(capturer))); 415 capturer.reset(new ScreenCapturerDifferWrapper(std::move(capturer)));
416 } 416 }
417 417
418 return capturer.release(); 418 return capturer.release();
419 } 419 }
420 420
421 } // namespace webrtc 421 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/screen_capturer_mock_objects.h ('k') | webrtc/modules/desktop_capture/win/d3d_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698