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

Unified Diff: chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.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: chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc
diff --git a/chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc b/chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc
index 4d4f96e371454882afb764195ba3aab1445cbbb8..030456b6fa07bb378fd21b548e8f76963f7573c4 100644
--- a/chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc
+++ b/chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc
@@ -240,9 +240,9 @@ class FlashFullscreenInteractiveBrowserTest : public OutOfProcessPPAPITest {
static void CheckBitmapForFillColor(SkColor expected_color,
bool* is_expected_color,
const base::Closure& done_cb,
- bool success,
- const SkBitmap& bitmap) {
- if (success) {
+ const SkBitmap& bitmap,
+ content::ReadbackResponse response) {
+ if (response == content::READBACK_SUCCESS) {
SkAutoLockPixels lock_pixels(bitmap);
if (bitmap.width() > 0 && bitmap.height() > 0)
*is_expected_color = (bitmap.getColor(0, 0) == expected_color);

Powered by Google App Engine
This is Rietveld 408576698