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

Unified Diff: extensions/browser/api/capture_web_contents_function.cc

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted code and fixed build issue in test. Created 6 years, 1 month 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: extensions/browser/api/capture_web_contents_function.cc
diff --git a/extensions/browser/api/capture_web_contents_function.cc b/extensions/browser/api/capture_web_contents_function.cc
index a888284deb42913e5327e45f940c5a2e4f8c6039..611af6fbfe2e13550dbf6053a34dfb8e549ecff1 100644
--- a/extensions/browser/api/capture_web_contents_function.cc
+++ b/extensions/browser/api/capture_web_contents_function.cc
@@ -91,9 +91,9 @@ bool CaptureWebContentsFunction::RunAsync() {
}
void CaptureWebContentsFunction::CopyFromBackingStoreComplete(
- bool succeeded,
- const SkBitmap& bitmap) {
- if (succeeded) {
+ const SkBitmap& bitmap,
+ content::ReadbackResponse response) {
+ if (response == content::READBACK_SUCCESS) {
OnCaptureSuccess(bitmap);
return;
}

Powered by Google App Engine
This is Rietveld 408576698