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

Unified Diff: content/browser/devtools/protocol/color_picker.cc

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/color_picker.cc
diff --git a/content/browser/devtools/protocol/color_picker.cc b/content/browser/devtools/protocol/color_picker.cc
index dec4f3103b335a3f355d60032d2abb678c00fed2..44f72106ece7308313ccbfe7b583c9b270f6961f 100644
--- a/content/browser/devtools/protocol/color_picker.cc
+++ b/content/browser/devtools/protocol/color_picker.cc
@@ -95,11 +95,12 @@ void ColorPicker::ResetFrame() {
last_cursor_y_ = -1;
}
-void ColorPicker::FrameUpdated(bool succeeded, const SkBitmap& bitmap) {
+void ColorPicker::FrameUpdated(const SkBitmap& bitmap,
+ ReadbackResponse response) {
if (!enabled_)
return;
- if (succeeded) {
+ if (response == READBACK_SUCCESS) {
frame_ = bitmap;
UpdateCursor();
}

Powered by Google App Engine
This is Rietveld 408576698