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

Unified Diff: webkit/tools/test_shell/webwidget_host.h

Issue 180033: Implement layoutTestController.display() method.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Prettify. Created 11 years, 3 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 | « webkit/tools/test_shell/test_shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webwidget_host.h
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index 2fc2a101c124522485e313d369f22e195aa0d04c..49c0ba798483468ae11a407d896d3c68768f4c3f 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -61,6 +61,12 @@ class WebWidgetHost {
WebKit::WebScreenInfo GetScreenInfo();
+ // Paints the entire canvas a semi-transparent black (grayish). This is used
+ // by the layout tests in fast/repaint. The alpha value matches upstream.
+ void DisplayRepaintMask() {
+ canvas()->drawARGB(167, 0, 0, 0);
+ }
+
protected:
WebWidgetHost();
~WebWidgetHost();
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698