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

Unified Diff: content/browser/compositor/delegated_frame_host.cc

Issue 333723004: Fix set_area sizes for RequestCopyOfOutput (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | content/browser/media/capture/desktop_capture_device_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/delegated_frame_host.cc
diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc
index f3d80373a9ced07e89ee07d8d20bff0bc73fb939..5f60874484a6cbf4e1d15c5e7f28060d0f860f5a 100644
--- a/content/browser/compositor/delegated_frame_host.cc
+++ b/content/browser/compositor/delegated_frame_host.cc
@@ -138,9 +138,7 @@ void DelegatedFrameHost::CopyFromCompositingSurface(
dst_size_in_pixel,
config,
callback));
- gfx::Rect src_subrect_in_pixel =
- ConvertRectToPixel(client_->CurrentDeviceScaleFactor(), src_subrect);
- request->set_area(src_subrect_in_pixel);
+ request->set_area(src_subrect);
client_->RequestCopyOfOutput(request.Pass());
}
@@ -175,9 +173,7 @@ void DelegatedFrameHost::CopyFromCompositingSurfaceToVideoFrame(
subscriber_texture,
target,
callback));
- gfx::Rect src_subrect_in_pixel =
- ConvertRectToPixel(client_->CurrentDeviceScaleFactor(), src_subrect);
- request->set_area(src_subrect_in_pixel);
+ request->set_area(src_subrect);
if (subscriber_texture.get()) {
request->SetTextureMailbox(
cc::TextureMailbox(subscriber_texture->mailbox(),
« no previous file with comments | « no previous file | content/browser/media/capture/desktop_capture_device_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698