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

Unified Diff: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc

Issue 2702093002: Consistent CopyFromSurface() API, consolidated to RWHV (Closed)
Patch Set: REBASE Created 3 years, 10 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 | « content/test/test_render_view_host.cc ('k') | extensions/browser/api/web_contents_capture_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
diff --git a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
index c12db754ddf13d152f1d2a58923048268cff484d..6852ff51d9d267860315f048c0bf3573565da81c 100644
--- a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
+++ b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
@@ -311,10 +311,11 @@ bool WebViewInternalCaptureVisibleRegionFunction::RunAsyncSafe(
}
is_guest_transparent_ = guest->allow_transparency();
- return CaptureAsync(guest->web_contents(), image_details.get(),
- base::Bind(&WebViewInternalCaptureVisibleRegionFunction::
- CopyFromBackingStoreComplete,
- this));
+ return CaptureAsync(
+ guest->web_contents(), image_details.get(),
+ base::Bind(
+ &WebViewInternalCaptureVisibleRegionFunction::CopyFromSurfaceComplete,
+ this));
}
bool WebViewInternalCaptureVisibleRegionFunction::IsScreenshotEnabled() {
// TODO(wjmaclean): Is it ok to always return true here?
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | extensions/browser/api/web_contents_capture_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698