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

Unified Diff: content/public/browser/android/content_view_core.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/public/browser/android/content_view_core.h
diff --git a/content/public/browser/android/content_view_core.h b/content/public/browser/android/content_view_core.h
index 2afd50efe8b77fa717e81c0ff949deef8898a5b5..f80020d1743cdaf5cdcc64152736cee146d8d5d0 100644
--- a/content/public/browser/android/content_view_core.h
+++ b/content/public/browser/android/content_view_core.h
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "content/common/content_export.h"
#include "content/public/browser/navigation_controller.h"
+#include "content/public/browser/readback_types.h"
#include "third_party/skia/include/core/SkImageInfo.h"
#include "ui/gfx/rect.h"
@@ -57,7 +58,7 @@ class CONTENT_EXPORT ContentViewCore {
float scale,
SkColorType color_type,
gfx::Rect src_rect,
- const base::Callback<void(bool, const SkBitmap&)>& result_callback) = 0;
+ ReadbackRequestCallback& result_callback) = 0;
virtual float GetDpiScale() const = 0;
virtual void PauseOrResumeGeolocation(bool should_pause) = 0;

Powered by Google App Engine
This is Rietveld 408576698