| Index: webkit/tools/test_shell/test_webview_delegate.cc
|
| ===================================================================
|
| --- webkit/tools/test_shell/test_webview_delegate.cc (revision 73503)
|
| +++ webkit/tools/test_shell/test_webview_delegate.cc (working copy)
|
| @@ -650,6 +650,17 @@
|
|
|
| // WebWidgetClient -----------------------------------------------------------
|
|
|
| +#if WEBKIT_USING_PAINTSURFACE
|
| +
|
| +WebKit::WebPaintSurface* TestWebViewDelegate::paintSurface() {
|
| + if (WebWidgetHost* host = GetWidgetHost())
|
| + return host->GetPaintSurface();
|
| +
|
| + return NULL;
|
| +}
|
| +
|
| +#else // WEBKIT_USING_PAINTSURFACE
|
| +
|
| void TestWebViewDelegate::didInvalidateRect(const WebRect& rect) {
|
| if (WebWidgetHost* host = GetWidgetHost())
|
| host->DidInvalidateRect(rect);
|
| @@ -661,6 +672,8 @@
|
| host->DidScrollRect(dx, dy, clip_rect);
|
| }
|
|
|
| +#endif // WEBKIT_USING_PAINTSURFACE
|
| +
|
| void TestWebViewDelegate::scheduleComposite() {
|
| if (WebWidgetHost* host = GetWidgetHost())
|
| host->ScheduleComposite();
|
|
|