| Index: webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc b/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc
|
| index daa910d83a9975ac95087b340f83ac18e6c5a373..6612d3824933eaee24efc3551e855bbd59d9e9ea 100644
|
| --- a/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc
|
| +++ b/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc
|
| @@ -16,7 +16,6 @@
|
| #include <DXGI1_2.h>
|
|
|
| #include "webrtc/base/checks.h"
|
| -#include "webrtc/system_wrappers/include/logging.h"
|
|
|
| using Microsoft::WRL::ComPtr;
|
|
|
| @@ -59,15 +58,11 @@ bool DxgiTextureStaging::InitializeStage(ID3D11Texture2D* texture) {
|
| _com_error error = device_.d3d_device()->CreateTexture2D(
|
| &desc, nullptr, stage_.GetAddressOf());
|
| if (error.Error() != S_OK || !stage_) {
|
| - LOG(LS_ERROR) << "Failed to create a new ID3D11Texture2D as stage, error "
|
| - << error.ErrorMessage() << ", code " << error.Error();
|
| return false;
|
| }
|
|
|
| error = stage_.As(&surface_);
|
| if (error.Error() != S_OK || !surface_) {
|
| - LOG(LS_ERROR) << "Failed to convert ID3D11Texture2D to IDXGISurface, error "
|
| - << error.ErrorMessage() << ", code " << error.Error();
|
| return false;
|
| }
|
|
|
| @@ -102,8 +97,6 @@ bool DxgiTextureStaging::CopyFromTexture(
|
| _com_error error = surface_->Map(rect(), DXGI_MAP_READ);
|
| if (error.Error() != S_OK) {
|
| *rect() = {0};
|
| - LOG(LS_ERROR) << "Failed to map the IDXGISurface to a bitmap, error "
|
| - << error.ErrorMessage() << ", code " << error.Error();
|
| return false;
|
| }
|
|
|
|
|