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

Unified Diff: athena/content/content_proxy.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
« no previous file with comments | « no previous file | athena/content/content_proxy.cc » ('j') | content/browser/compositor/delegated_frame_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/content_proxy.h
diff --git a/athena/content/content_proxy.h b/athena/content/content_proxy.h
index e39d1bb8e826e18ed431796c966430e0463ccedc..aafc82a9bcc6b827e0e662733d0b0e1c0716cf1f 100644
--- a/athena/content/content_proxy.h
+++ b/athena/content/content_proxy.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted_memory.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "content/public/browser/readback_types.h"
#include "ui/gfx/image/image_skia.h"
namespace views {
@@ -70,7 +71,8 @@ class ContentProxy {
bool CreateContentImage();
// Called once the content was read back.
- void OnContentImageRead(bool success, const SkBitmap& bitmap);
+ void OnContentImageRead(const SkBitmap& bitmap,
+ content::ReadbackResponse response);
// Called once the image content has been converted to PNG.
void OnContentImageEncodeComplete(scoped_refptr<ProxyImageData> image);
« no previous file with comments | « no previous file | athena/content/content_proxy.cc » ('j') | content/browser/compositor/delegated_frame_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698