Index: content/browser/media/capture/desktop_capture_device_aura.cc |
diff --git a/content/browser/media/capture/desktop_capture_device_aura.cc b/content/browser/media/capture/desktop_capture_device_aura.cc |
index 432a1854019aab49d9876a3fe646b0bb31fe9ff5..9a657a89621a0514ef457cb06c5055a669f8154e 100644 |
--- a/content/browser/media/capture/desktop_capture_device_aura.cc |
+++ b/content/browser/media/capture/desktop_capture_device_aura.cc |
@@ -281,10 +281,8 @@ void DesktopVideoCaptureMachine::Capture(bool dirty) { |
cc::CopyOutputRequest::CreateRequest( |
base::Bind(&DesktopVideoCaptureMachine::DidCopyOutput, |
AsWeakPtr(), frame, start_time, capture_frame_cb)); |
- gfx::Rect window_rect = |
- ui::ConvertRectToPixel(desktop_window_->layer(), |
- gfx::Rect(desktop_window_->bounds().width(), |
- desktop_window_->bounds().height())); |
+ gfx::Rect window_rect = gfx::Rect(desktop_window_->bounds().width(), |
+ desktop_window_->bounds().height()); |
request->set_area(window_rect); |
desktop_layer_->RequestCopyOfOutput(request.Pass()); |
} |