| Index: webrtc/modules/desktop_capture/window_capturer_win.cc
|
| diff --git a/webrtc/modules/desktop_capture/window_capturer_win.cc b/webrtc/modules/desktop_capture/window_capturer_win.cc
|
| index 31ad0b0acac2055173747bcb7614c852699df680..9382a6bcbdbedb3b0ca1fb655229739ca0ec7fb6 100644
|
| --- a/webrtc/modules/desktop_capture/window_capturer_win.cc
|
| +++ b/webrtc/modules/desktop_capture/window_capturer_win.cc
|
| @@ -18,7 +18,6 @@
|
| #include "webrtc/modules/desktop_capture/desktop_capturer.h"
|
| #include "webrtc/modules/desktop_capture/desktop_frame_win.h"
|
| #include "webrtc/modules/desktop_capture/win/window_capture_utils.h"
|
| -#include "webrtc/system_wrappers/include/logging.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -160,7 +159,6 @@ void WindowCapturerWin::Start(Callback* callback) {
|
|
|
| void WindowCapturerWin::CaptureFrame() {
|
| if (!window_) {
|
| - LOG(LS_ERROR) << "Window hasn't been selected: " << GetLastError();
|
| callback_->OnCaptureResult(Result::ERROR_PERMANENT, nullptr);
|
| return;
|
| }
|
| @@ -188,14 +186,12 @@ void WindowCapturerWin::CaptureFrame() {
|
| DesktopRect original_rect;
|
| DesktopRect cropped_rect;
|
| if (!GetCroppedWindowRect(window_, &cropped_rect, &original_rect)) {
|
| - LOG(LS_WARNING) << "Failed to get window info: " << GetLastError();
|
| callback_->OnCaptureResult(Result::ERROR_TEMPORARY, nullptr);
|
| return;
|
| }
|
|
|
| HDC window_dc = GetWindowDC(window_);
|
| if (!window_dc) {
|
| - LOG(LS_WARNING) << "Failed to get window DC: " << GetLastError();
|
| callback_->OnCaptureResult(Result::ERROR_TEMPORARY, nullptr);
|
| return;
|
| }
|
| @@ -253,7 +249,6 @@ void WindowCapturerWin::CaptureFrame() {
|
| DesktopRect::MakeSize(frame->size()));
|
|
|
| if (!result) {
|
| - LOG(LS_ERROR) << "Both PrintWindow() and BitBlt() failed.";
|
| frame.reset();
|
| }
|
|
|
|
|