diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 23:06:06 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 23:06:06 +0000 |
commit | 76d940b7d89f94f3ff4eea19f5970b57e0adcf93 (patch) | |
tree | d9ad129eb0b1c9c0b2463f5af484b4b4455aee89 /webkit/tools/test_shell/webwidget_host.h | |
parent | 185e83e4d68bad4ddc8bc48d93a38c9bc4219ba3 (diff) | |
download | chromium_src-76d940b7d89f94f3ff4eea19f5970b57e0adcf93.zip chromium_src-76d940b7d89f94f3ff4eea19f5970b57e0adcf93.tar.gz chromium_src-76d940b7d89f94f3ff4eea19f5970b57e0adcf93.tar.bz2 |
Add support for the "repaint" layout tests (LayoutTests/fast/repaint/*), which draw a gray mask over regions that have not been updated.
This still doesn't match the mac expected results, because clip area is wrong.
BUG=8630
Review URL: http://codereview.chromium.org/21192
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host.h')
-rw-r--r-- | webkit/tools/test_shell/webwidget_host.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h index 216c0b1..ca32948 100644 --- a/webkit/tools/test_shell/webwidget_host.h +++ b/webkit/tools/test_shell/webwidget_host.h @@ -46,7 +46,19 @@ class WebWidgetHost { void UpdatePaintRect(const gfx::Rect& rect); void Paint(); + // Get the backing store. + skia::PlatformCanvas* canvas() const { return canvas_.get(); } + + // Paint() the widget, and cover it with a gray mask (black with a=0.66). + void DisplayForRepaint(); + protected: + // Paint the widget into canvas_. + void PaintToCanvas(); + + // Blit |canvas_| to |view_|. + void PaintCanvasToView(); + WebWidgetHost(); ~WebWidgetHost(); |