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 b795b1cb8e39ed8476c2a74b6b3e93da72319d32..4939b62dbc5424a2c27184b51d7a8ed5438c3805 100644 |
--- a/content/browser/media/capture/desktop_capture_device_aura.cc |
+++ b/content/browser/media/capture/desktop_capture_device_aura.cc |
@@ -278,10 +278,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_window_->layer()->RequestCopyOfOutput(request.Pass()); |
} |