Index: webrtc/modules/desktop_capture/win/dxgi_texture.cc |
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture.cc b/webrtc/modules/desktop_capture/win/dxgi_texture.cc |
index 96c98363a0264a36e26ae4da2d3bd49980a12be2..c798631bdcbfbb23c4cb70def9b53fecf4dc93df 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_texture.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture.cc |
@@ -24,7 +24,7 @@ class DxgiDesktopFrame : public DesktopFrame { |
texture.bits(), |
nullptr) {} |
- virtual ~DxgiDesktopFrame() = default; |
+ ~DxgiDesktopFrame() override = default; |
}; |
} // namespace |
@@ -32,6 +32,8 @@ class DxgiDesktopFrame : public DesktopFrame { |
DxgiTexture::DxgiTexture(const DesktopRect& desktop_rect) |
: desktop_rect_(desktop_rect) {} |
+DxgiTexture::~DxgiTexture() {} |
+ |
const DesktopFrame& DxgiTexture::AsDesktopFrame() { |
if (!frame_) { |
frame_.reset(new DxgiDesktopFrame(*this)); |