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..0291a90aaaf5b00cd3d704896befacca920cf31c 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h |
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.h |
@@ -27,14 +27,14 @@ 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; |
+ protected: |
+ bool CopyFromTexture(const DXGI_OUTDUPL_FRAME_INFO& frame_info, |
+ ID3D11Texture2D* texture) override; |
bool DoRelease() override; |