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

Unified Diff: content/public/test/browser_test_utils.h

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test so it waits for the first frame to be generated. Created 4 years, 11 months 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/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index 5d9405237378812c05ddc6479711cc47fb1b29eb..d4e01892ebca16d168bb97d3c5af1ae7e8311cce 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -408,6 +408,9 @@ class WebContentsAddedObserver {
DISALLOW_COPY_AND_ASSIGN(WebContentsAddedObserver);
};
+// Wait until the first compositor frame swap has occured.
+void WaitForFirstFrame(WebContents* web_contents);
+
// Request a new frame be drawn, returns false if request fails.
bool RequestFrame(WebContents* web_contents);

Powered by Google App Engine
This is Rietveld 408576698