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

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

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.cc ('k') | webkit/tools/test_shell/webwidget_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webwidget_host.h
===================================================================
--- webkit/tools/test_shell/webwidget_host.h (revision 73503)
+++ webkit/tools/test_shell/webwidget_host.h (working copy)
@@ -11,6 +11,7 @@
#include "gfx/native_widget_types.h"
#include "gfx/rect.h"
#include "skia/ext/platform_canvas.h"
+#include "webkit/tools/test_shell/simple_webpaintsurface_impl.h"
namespace gfx {
class Size;
@@ -31,7 +32,7 @@
#endif
// This class is a simple NativeView-based host for a WebWidget
-class WebWidgetHost {
+class WebWidgetHost : public SimpleWebPaintSurfaceImpl::Delegate {
public:
// The new instance is deleted once the associated NativeView is destroyed.
// The newly created window should be resized after it is created, using the
@@ -46,8 +47,11 @@
gfx::NativeView view_handle() const { return view_; }
WebKit::WebWidget* webwidget() const { return webwidget_; }
+ WebKit::WebPaintSurface* GetPaintSurface();
+#if !WEBKIT_USING_PAINTSURFACE
void DidInvalidateRect(const gfx::Rect& rect);
void DidScrollRect(int dx, int dy, const gfx::Rect& clip_rect);
+#endif
void ScheduleComposite();
void ScheduleAnimation();
#if defined(OS_WIN)
@@ -126,10 +130,16 @@
#endif
}
+ // SimpleWebPaintSurfaceImpl::Delegate methods:
+ virtual void DidModifyPaintSurface(const gfx::Rect& bounds);
+
gfx::NativeView view_;
WebKit::WebWidget* webwidget_;
scoped_ptr<skia::PlatformCanvas> canvas_;
+ scoped_ptr<SimpleWebPaintSurfaceImpl> paint_surface_;
+ scoped_ptr<SimpleWebPaintSurfaceImpl> pending_paint_surface_;
+
// specifies the portion of the webwidget that needs painting
gfx::Rect paint_rect_;
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.cc ('k') | webkit/tools/test_shell/webwidget_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698