Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc

Issue 2787263003: Delete all log messages depending on system_wrappers. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698