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

Unified Diff: android_webview/browser/test/rendering_test.cc

Issue 1002013003: Unit Test for WebView animating in and out of screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new test Created 5 years, 9 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: android_webview/browser/test/rendering_test.cc
diff --git a/android_webview/browser/test/rendering_test.cc b/android_webview/browser/test/rendering_test.cc
index fe69bcd6d3c54b018a600a8b13dbd23ab8e40390..f07a40396772b2ada77437c819210f5569b67f69 100644
--- a/android_webview/browser/test/rendering_test.cc
+++ b/android_webview/browser/test/rendering_test.cc
@@ -66,6 +66,21 @@ bool RenderingTest::RequestDrawGL(bool wait_for_completion) {
return true;
}
+void RenderingTest::SetParentDrawConstraints(AwDrawGLInfo& draw_info) {
+ draw_info.width = window_->surface_size().width();
+ draw_info.height = window_->surface_size().height();
+ draw_info.is_layer = false;
+ gfx::Transform transform;
+ transform.matrix().asColMajorf(draw_info.transform);
+}
+
+bool RenderingTest::WillWaitForModeDrawToFinish() {
+ return false;
+}
+bool RenderingTest::WillDrawOnRT(SharedRendererState* functor) {
+ return true;
+}
+
void RenderingTest::OnNewPicture() {
}
« android_webview/browser/test/fake_window.cc ('K') | « android_webview/browser/test/rendering_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698