diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture.cc b/webrtc/modules/desktop_capture/win/dxgi_texture.cc index 6c19ee0932..964e00f9c7 100644 --- a/webrtc/modules/desktop_capture/win/dxgi_texture.cc +++ b/webrtc/modules/desktop_capture/win/dxgi_texture.cc @@ -57,10 +57,6 @@ bool DxgiTexture::CopyFrom(const DXGI_OUTDUPL_FRAME_INFO& frame_info, D3D11_TEXTURE2D_DESC desc = {0}; texture->GetDesc(&desc); desktop_size_.set(desc.Width, desc.Height); - if (resolution_tracker_.SetResolution(desktop_size_)) { - LOG(LS_ERROR) << "Texture size is not consistent with current DxgiTexture."; - return false; - } return CopyFromTexture(frame_info, texture.Get()); } diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture.h b/webrtc/modules/desktop_capture/win/dxgi_texture.h index c2b0db4c9e..fb120921da 100644 --- a/webrtc/modules/desktop_capture/win/dxgi_texture.h +++ b/webrtc/modules/desktop_capture/win/dxgi_texture.h @@ -18,7 +18,6 @@ #include "webrtc/modules/desktop_capture/desktop_frame.h" #include "webrtc/modules/desktop_capture/desktop_geometry.h" -#include "webrtc/modules/desktop_capture/resolution_tracker.h" namespace webrtc { @@ -67,7 +66,6 @@ class DxgiTexture { DXGI_MAPPED_RECT rect_ = {0}; DesktopSize desktop_size_; std::unique_ptr frame_; - ResolutionTracker resolution_tracker_; }; } // namespace webrtc