diff options
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(); |