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

Unified Diff: webrtc/modules/desktop_capture/win/d3d_device.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
« no previous file with comments | « webrtc/modules/desktop_capture/win/cursor.cc ('k') | webrtc/modules/desktop_capture/win/desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/win/d3d_device.cc
diff --git a/webrtc/modules/desktop_capture/win/d3d_device.cc b/webrtc/modules/desktop_capture/win/d3d_device.cc
index 078c0c4295f7b87eb279521acbe626dc1d274824..7304f01375bece53a83124314ffe2f919d1e88c1 100644
--- a/webrtc/modules/desktop_capture/win/d3d_device.cc
+++ b/webrtc/modules/desktop_capture/win/d3d_device.cc
@@ -12,8 +12,6 @@
#include <utility>
-#include "webrtc/system_wrappers/include/logging.h"
-
namespace webrtc {
using Microsoft::WRL::ComPtr;
@@ -26,7 +24,6 @@ D3dDevice::~D3dDevice() = default;
bool D3dDevice::Initialize(const ComPtr<IDXGIAdapter>& adapter) {
dxgi_adapter_ = adapter;
if (!dxgi_adapter_) {
- LOG(LS_WARNING) << "An empty IDXGIAdapter instance has been received.";
return false;
}
@@ -38,25 +35,16 @@ bool D3dDevice::Initialize(const ComPtr<IDXGIAdapter>& adapter) {
nullptr, 0, D3D11_SDK_VERSION, d3d_device_.GetAddressOf(), &feature_level,
context_.GetAddressOf());
if (error.Error() != S_OK || !d3d_device_ || !context_) {
- LOG(LS_WARNING) << "D3D11CreateDeivce returns error "
- << error.ErrorMessage() << " with code " << error.Error();
return false;
}
if (feature_level < D3D_FEATURE_LEVEL_11_0) {
- LOG(LS_WARNING) << "D3D11CreateDevice returns an instance without DirectX "
- "11 support, level " << feature_level
- << ". Following initialization may fail.";
// D3D_FEATURE_LEVEL_11_0 is not officially documented on MSDN to be a
// requirement of Dxgi duplicator APIs.
}
error = d3d_device_.As(&dxgi_device_);
if (error.Error() != S_OK || !dxgi_device_) {
- LOG(LS_WARNING) << "ID3D11Device is not an implementation of IDXGIDevice, "
- "this usually means the system does not support DirectX "
- "11. Error "
- << error.ErrorMessage() << " with code " << error.Error();
return false;
}
@@ -85,9 +73,6 @@ std::vector<D3dDevice> D3dDevice::EnumDevices() {
} else if (error.Error() == DXGI_ERROR_NOT_FOUND) {
break;
} else {
- LOG(LS_WARNING) << "IDXGIFactory1::EnumAdapters returns an unexpected "
- "error "
- << error.ErrorMessage() << " with code " << error.Error();
return std::vector<D3dDevice>();
}
}
« no previous file with comments | « webrtc/modules/desktop_capture/win/cursor.cc ('k') | webrtc/modules/desktop_capture/win/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698