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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 41ecb35765e877a2ecd2f7bdd0d1d0ba16955984..6ea591a5cc5b1c1488c54f73a578e3eb36ff44f3 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -33,6 +33,7 @@
#include "content/common/input/input_event_ack_state.h"
#include "content/common/input/synthetic_gesture_packet.h"
#include "content/common/view_message_enums.h"
+#include "content/public/browser/readback_types.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/common/page_zoom.h"
#include "ipc/ipc_listener.h"
@@ -132,11 +133,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl
void Focus() override;
void Blur() override;
void SetActive(bool active) override;
- void CopyFromBackingStore(
- const gfx::Rect& src_rect,
- const gfx::Size& accelerated_dst_size,
- const base::Callback<void(bool, const SkBitmap&)>& callback,
- const SkColorType color_type) override;
+ void CopyFromBackingStore(const gfx::Rect& src_rect,
+ const gfx::Size& accelerated_dst_size,
+ ReadbackRequestCallback& callback,
+ const SkColorType color_type) override;
bool CanCopyFromBackingStore() override;
#if defined(OS_ANDROID)
virtual void LockBackingStore() override;

Powered by Google App Engine
This is Rietveld 408576698