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

Unified Diff: content/browser/android/content_readback_handler.h

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: content/browser/android/content_readback_handler.h
diff --git a/content/browser/android/content_readback_handler.h b/content/browser/android/content_readback_handler.h
index 403bdd0a7af20e7661f2aa13224a9c66d3607343..66b2c8588d4fcaea36e4fb19d9a4892bd07ac662 100644
--- a/content/browser/android/content_readback_handler.h
+++ b/content/browser/android/content_readback_handler.h
@@ -10,6 +10,7 @@
#include "base/android/jni_weak_ref.h"
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
+#include "content/public/browser/readback_types.h"
class SkBitmap;
@@ -48,8 +49,8 @@ class ContentReadbackHandler {
virtual ~ContentReadbackHandler();
void OnFinishReadback(int readback_id,
- bool success,
- const SkBitmap& bitmap);
+ const SkBitmap& bitmap,
+ ReadbackResponse response);
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
base::WeakPtrFactory<ContentReadbackHandler> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698