| Index: webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| index 9e35b6cdc5df5cbfcbafbff3f04ccaa56df33d1e..e2b2235352d1dd2173c47e9fb05bf583ec1288b9 100644
|
| --- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| +++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| @@ -85,13 +85,10 @@ DxgiOutputDuplicator::~DxgiOutputDuplicator() {
|
|
|
| bool DxgiOutputDuplicator::Initialize() {
|
| if (DuplicateOutput()) {
|
| - DesktopSize unrotated_size =
|
| - RotateSize(desktop_rect().size(), ReverseRotation(rotation_));
|
| if (desc_.DesktopImageInSystemMemory) {
|
| - texture_.reset(
|
| - new DxgiTextureMapping(unrotated_size, duplication_.Get()));
|
| + texture_.reset(new DxgiTextureMapping(duplication_.Get()));
|
| } else {
|
| - texture_.reset(new DxgiTextureStaging(unrotated_size, device_));
|
| + texture_.reset(new DxgiTextureStaging(device_));
|
| }
|
| return true;
|
| } else {
|
|
|