| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fe45ece1356ca19683e026d2049b7a8db503c8ad
|
| --- /dev/null
|
| +++ b/webrtc/modules/desktop_capture/win/dxgi_texture.cc
|
| @@ -0,0 +1,28 @@
|
| +/*
|
| + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license
|
| + * that can be found in the LICENSE file in the root of the source
|
| + * tree. An additional intellectual property rights grant can be found
|
| + * in the file PATENTS. All contributing project authors may
|
| + * be found in the AUTHORS file in the root of the source tree.
|
| + */
|
| +
|
| +#include "webrtc/modules/desktop_capture/win/dxgi_texture.h"
|
| +
|
| +namespace webrtc {
|
| +
|
| +DxgiTexture::DxgiTexture(const DesktopRect& desktop_rect)
|
| + : desktop_rect_(desktop_rect) {}
|
| +
|
| +DxgiTexture::DxgiDesktopFrame::DxgiDesktopFrame(const DxgiTexture& texture)
|
| + : DesktopFrame(texture.desktop_rect().size(),
|
| + texture.pitch(),
|
| + texture.bits(),
|
| + nullptr) {}
|
| +
|
| +std::unique_ptr<DesktopFrame> DxgiTexture::AsDesktopFrame() const {
|
| + return std::unique_ptr<DesktopFrame>(new DxgiDesktopFrame(*this));
|
| +}
|
| +
|
| +} // namespace webrtc
|
|
|