| 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_WIN_H_ |
| 12 #define MODULES_DESKTOP_CAPTURE_SCREEN_DRAWER_WIN_H_ |
| 13 |
| 14 #include "webrtc/modules/desktop_capture/screen_drawer.h" |
| 15 |
| 16 #include <windows.h> |
| 17 |
| 18 namespace webrtc { |
| 19 |
| 20 // A ScreenDrawer implementation for Windows. |
| 21 class ScreenDrawerWin : public ScreenDrawer { |
| 22 public: |
| 23 ScreenDrawerWin(); |
| 24 ~ScreenDrawerWin() override; |
| 25 |
| 26 DesktopRect DrawableRegion() override; |
| 27 void DrawRectangle(DesktopRect rect, uint32_t rgba) override; |
| 28 |
| 29 private: |
| 30 const DesktopRect rect_; |
| 31 HWND window_; |
| 32 HDC hdc_; |
| 33 }; |
| 34 |
| 35 } // namespace webrtc |
| 36 |
| 37 #endif // MODULES_DESKTOP_CAPTURE_SCREEN_DRAWER_WIN_H_ |
| OLD | NEW |