| 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 2ac0a75eabef51ba8c0516762779789a5bfd72da..6892bad91baeb040f9376d218ed91b611bdd9616 100644 | 
| --- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h | 
| +++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h | 
| @@ -36,8 +36,8 @@ class DxgiOutputDuplicator { | 
| public: | 
| struct Context { | 
| // The updated region DxgiOutputDuplicator::DetectUpdatedRegion() output | 
| -    // during last Duplicate() function call. It's a DesktopRegion translated by | 
| -    // offset of each DxgiOutputDuplicator instance. | 
| +    // during last Duplicate() function call. It's always relative to the | 
| +    // (0, 0). | 
| DesktopRegion updated_region; | 
| }; | 
|  | 
| @@ -80,11 +80,9 @@ class DxgiOutputDuplicator { | 
| int64_t num_frames_captured() const; | 
|  | 
| private: | 
| -  // Detects updated region translated by offset from IDXGIOutput1. This | 
| -  // function will set the |updated_region| as entire DesktopRect starts from | 
| -  // offset if it failed to execute Windows APIs. | 
| +  // Calls DoDetectUpdatedRegion(). If it fails, this function sets the | 
| +  // |updated_region| as entire UntranslatedDesktopRect(). | 
| void DetectUpdatedRegion(const DXGI_OUTDUPL_FRAME_INFO& frame_info, | 
| -                           DesktopVector offset, | 
| DesktopRegion* updated_region); | 
|  | 
| // Returns untranslated updated region, which are directly returned by Windows | 
| @@ -98,14 +96,21 @@ class DxgiOutputDuplicator { | 
| // Returns false if system does not support IDXGIOutputDuplication. | 
| bool DuplicateOutput(); | 
|  | 
| -  // Returns a DesktopRect with the same size of desktop_size_, but translated | 
| +  // Returns a DesktopRect with the same size of desktop_size(), but translated | 
| // by offset. | 
| -  DesktopRect TranslatedDesktopRect(DesktopVector offset); | 
| +  DesktopRect TranslatedDesktopRect(DesktopVector offset) const; | 
| + | 
| +  // Returns a DesktopRect with the same size of desktop_size(), but starts from | 
| +  // (0, 0). | 
| +  DesktopRect UntranslatedDesktopRect() const; | 
|  | 
| // Spreads changes from |context| to other registered Context(s) in | 
| // contexts_. | 
| void SpreadContextChange(const Context* const context); | 
|  | 
| +  // Returns the size of desktop rectangle current instance representing. | 
| +  DesktopSize desktop_size() const; | 
| + | 
| const D3dDevice device_; | 
| const Microsoft::WRL::ComPtr<IDXGIOutput1> output_; | 
| const DesktopRect desktop_rect_; | 
|  |