Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef MODULES_DESKTOP_CAPTURE_SCREEN_DRAWER_LINUX_H_ | |
|
Sergey Ulanov
2016/08/09 17:43:01
For platform-specific screen capturers we don't ha
Sergey Ulanov
2016/08/09 17:43:01
This file should be called screen_drawer_x11.h
Hzj_jie
2016/08/11 18:42:04
I thought linux suffix can trigger GN / GYP exclus
Hzj_jie
2016/08/11 18:42:04
Done.
| |
| 12 #define MODULES_DESKTOP_CAPTURE_SCREEN_DRAWER_LINUX_H_ | |
| 13 | |
| 14 #include "webrtc/modules/desktop_capture/screen_drawer.h" | |
| 15 #include "webrtc/modules/desktop_capture/x11/shared_x_display.h" | |
| 16 | |
| 17 namespace webrtc { | |
| 18 | |
| 19 // A ScreenDrawer implementation for X11dows. | |
|
Sergey Ulanov
2016/08/09 17:43:01
typo: X11dows
Hzj_jie
2016/08/11 18:42:04
Done.
| |
| 20 class ScreenDrawerX11 : public ScreenDrawer { | |
| 21 public: | |
| 22 ScreenDrawerX11(); | |
| 23 ~ScreenDrawerX11() override; | |
| 24 | |
| 25 DesktopRect DrawableRegion() override; | |
|
Sergey Ulanov
2016/08/09 17:43:01
// ScreenDrawer interface.
Hzj_jie
2016/08/11 18:42:04
Done.
| |
| 26 void DrawRectangle(DesktopRect rect, uint32_t rgba) override; | |
| 27 | |
| 28 private: | |
| 29 const rtc::scoped_refptr<SharedXDisplay> display_; | |
| 30 const Screen* screen_; | |
| 31 const int screen_num_; | |
| 32 const DesktopRect rect_; | |
| 33 Window window_; | |
| 34 GC context_; | |
| 35 Colormap colormap_; | |
| 36 }; | |
| 37 | |
| 38 } // namespace webrtc | |
| 39 | |
| 40 #endif // MODULES_DESKTOP_CAPTURE_SCREEN_DRAWER_LINUX_H_ | |
| OLD | NEW |