diff options
| author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-23 17:03:15 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-23 17:03:15 +0200 |
| commit | a73d1c176f2f3e0458861de8590dc20321a501ae (patch) | |
| tree | d897fc5974797c3cb300d7f5916f258df765401f /Source/WebKit/chromium/public/WebWidget.h | |
| parent | c311cf639cc1d6570d67b0a80a8ba04dc992a658 (diff) | |
| download | qtwebkit-a73d1c176f2f3e0458861de8590dc20321a501ae.tar.gz | |
Imported WebKit commit a5ae8a56a48e44ebfb9b81aaa5488affaffdb175 (http://svn.webkit.org/repository/webkit/trunk@126420)
New snapshot with OS X 10.6 build fix
Diffstat (limited to 'Source/WebKit/chromium/public/WebWidget.h')
| -rw-r--r-- | Source/WebKit/chromium/public/WebWidget.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/public/WebWidget.h b/Source/WebKit/chromium/public/WebWidget.h index 8e4fecac7..ac1658140 100644 --- a/Source/WebKit/chromium/public/WebWidget.h +++ b/Source/WebKit/chromium/public/WebWidget.h @@ -41,6 +41,7 @@ #define WEBKIT_HAS_NEW_FULLSCREEN_API 1 #define WEBWIDGET_HAS_SETCOMPOSITORSURFACEREADY 1 +#define WEBWIDGET_HAS_PAINT_OPTIONS 1 namespace WebKit { @@ -90,6 +91,21 @@ public: // and it may result in calls to WebWidgetClient::didInvalidateRect. virtual void layout() { } + enum PaintOptions { + // Attempt to fulfill the painting request by reading back from the + // compositor, assuming we're using a compositor to render. + ReadbackFromCompositorIfAvailable, + + // Force the widget to rerender onto the canvas using software. This + // mode ignores 3d transforms and ignores GPU-resident content, such + // as video, canvas, and WebGL. + // + // Note: This option exists on OS(ANDROID) and will hopefully be + // removed once the link disambiguation feature renders using + // the compositor. + ForceSoftwareRenderingAndIgnoreGPUResidentContent, + }; + // Called to paint the rectangular region within the WebWidget // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call // Layout before calling this method. It is okay to call paint @@ -97,7 +113,7 @@ public: // changes are made to the WebWidget (e.g., once events are // processed, it should be assumed that another call to layout is // warranted before painting again). - virtual void paint(WebCanvas*, const WebRect& viewPort) { } + virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = ReadbackFromCompositorIfAvailable) { } // In non-threaded compositing mode, triggers compositing of the current // layers onto the screen. You MUST call Layout before calling this method, |
