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

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

Issue 2652343003: Replace source pointer in cc::CopyOutputRequest with a base::UnguessableToken (Closed)
Patch Set: c Created 3 years, 11 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
Index: content/browser/renderer_host/delegated_frame_host.cc
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc
index 7d3807ebcee216276a2353130d188cc53e80e009..fbaf8650b02d097e5f123ed2156217e79ceacab7 100644
--- a/content/browser/renderer_host/delegated_frame_host.cc
+++ b/content/browser/renderer_host/delegated_frame_host.cc
@@ -363,7 +363,7 @@ void DelegatedFrameHost::AttemptFrameSubscriberCapture(
// DelegatedFrameHost (e.g., a call to CopyFromCompositingSurface() for
// screenshots) since those copy requests do not specify |frame_subscriber()|
// as a source.
- request->set_source(frame_subscriber());
+ request->set_source(frame_subscriber()->GetSourceIdForCopyRequest());
if (subscriber_texture.get()) {
request->SetTextureMailbox(cc::TextureMailbox(
subscriber_texture->mailbox(), subscriber_texture->sync_token(),

Powered by Google App Engine
This is Rietveld 408576698