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

Unified Diff: content/shell/renderer/test_runner/web_test_proxy.cc

Issue 1131803003: Remove testRunner.displayAsync() and displayAsyncThen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/web_test_proxy.cc
diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc
index d6dcbc9a8bc9b3aa7569f77e7047439ab9e742c7..75cfe5c43c0425618ea2843e737a77d33ca913ef 100644
--- a/content/shell/renderer/test_runner/web_test_proxy.cc
+++ b/content/shell/renderer/test_runner/web_test_proxy.cc
@@ -684,21 +684,6 @@ void WebTestProxyBase::LayoutAndPaintAsyncThen(const base::Closure& callback) {
}
}
-void WebTestProxyBase::DidDisplayAsync(const base::Closure& callback,
- const SkBitmap& bitmap) {
- // Verify we actually composited.
- CHECK_NE(0, bitmap.info().fWidth);
- CHECK_NE(0, bitmap.info().fHeight);
- if (!callback.is_null())
- callback.Run();
-}
-
-void WebTestProxyBase::DisplayAsyncThen(const base::Closure& callback) {
- TRACE_EVENT0("shell", "WebTestProxyBase::DisplayAsyncThen");
- CapturePixelsAsync(base::Bind(
- &WebTestProxyBase::DidDisplayAsync, base::Unretained(this), callback));
-}
-
void WebTestProxyBase::GetScreenOrientationForTesting(
blink::WebScreenInfo& screen_info) {
if (!screen_orientation_client_)
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698