Index: webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h |
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h |
index f6760df6df1f2af444de739bf98c2c7adb46090e..f64002c6d820a3397c577346b05a3574d2267010 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h |
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h |
@@ -27,18 +27,17 @@ namespace webrtc { |
class DxgiTextureMapping : public DxgiTexture { |
public: |
// Creates a DxgiTextureMapping instance. Caller must maintain the lifetime |
- // of input duplication to make sure it outlives this instance. |
- DxgiTextureMapping(const DesktopSize& desktop_size, |
- IDXGIOutputDuplication* duplication); |
+ // of input |duplication| to make sure it outlives this instance. |
+ explicit DxgiTextureMapping(IDXGIOutputDuplication* duplication); |
~DxgiTextureMapping() override; |
- bool CopyFrom(const DXGI_OUTDUPL_FRAME_INFO& frame_info, |
- IDXGIResource* resource) override; |
+ private: |
+ bool CopyFromTexture(const DXGI_OUTDUPL_FRAME_INFO& frame_info, |
+ ID3D11Texture2D* texture) override; |
bool DoRelease() override; |
- private: |
IDXGIOutputDuplication* const duplication_; |
}; |