Chromium Code Reviews| Index: webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h |
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h |
| index 7d2c2edef605c72d91b7dcd76a024718d805208e..dc0bdabca8c8577f45678bdcdde7286cf7136c71 100644 |
| --- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h |
| +++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h |
| @@ -75,6 +75,9 @@ class DxgiOutputDuplicator { |
| // How many frames have been captured by this DxigOutputDuplicator. |
| int64_t num_frames_captured() const; |
| + // Moves |desktop_rect_|. See DxgiDuplicatorController::Translate(). |
| + void Translate(int32_t dx, int32_t dy); |
|
Sergey Ulanov
2017/04/28 01:15:02
Maybe call it TranslateRect()?
Also make it take D
Hzj_jie
2017/04/28 01:58:32
Done.
|
| + |
| private: |
| // Calls DoDetectUpdatedRegion(). If it fails, this function sets the |
| // |updated_region| as entire UntranslatedDesktopRect(). |
| @@ -109,7 +112,7 @@ class DxgiOutputDuplicator { |
| const D3dDevice device_; |
| const Microsoft::WRL::ComPtr<IDXGIOutput1> output_; |
| - const DesktopRect desktop_rect_; |
| + DesktopRect desktop_rect_; |
| Microsoft::WRL::ComPtr<IDXGIOutputDuplication> duplication_; |
| DXGI_OUTDUPL_DESC desc_; |
| std::vector<uint8_t> metadata_; |