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

Unified Diff: content/browser/devtools/protocol/page_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/devtools/protocol/page_handler.h
diff --git a/content/browser/devtools/protocol/page_handler.h b/content/browser/devtools/protocol/page_handler.h
index 3a8c30c7f9b415d2673b70385c86bcb91df282de..75fd8a401727d8ef9f8b3617dc80454adf3f6f9e 100644
--- a/content/browser/devtools/protocol/page_handler.h
+++ b/content/browser/devtools/protocol/page_handler.h
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "cc/output/compositor_frame_metadata.h"
#include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h"
+#include "content/public/browser/readback_types.h"
class SkBitmap;
@@ -88,12 +89,11 @@ class PageHandler {
void NotifyScreencastVisibility(bool visible);
void InnerSwapCompositorFrame();
- void ScreencastFrameCaptured(
- const std::string& format,
- int quality,
- const cc::CompositorFrameMetadata& metadata,
- bool success,
- const SkBitmap& bitmap);
+ void ScreencastFrameCaptured(const std::string& format,
+ int quality,
+ const cc::CompositorFrameMetadata& metadata,
+ const SkBitmap& bitmap,
+ ReadbackResponse response);
void ScreenshotCaptured(
scoped_refptr<DevToolsProtocol::Command> command,

Powered by Google App Engine
This is Rietveld 408576698