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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 6283019: Render using WebPaintSurface. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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_webview_delegate.h ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698