diff options
Diffstat (limited to 'Source/WebKit/chromium/public/WebWidget.h')
| -rw-r--r-- | Source/WebKit/chromium/public/WebWidget.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebKit/chromium/public/WebWidget.h b/Source/WebKit/chromium/public/WebWidget.h index fa456238a..f2b394439 100644 --- a/Source/WebKit/chromium/public/WebWidget.h +++ b/Source/WebKit/chromium/public/WebWidget.h @@ -83,14 +83,16 @@ public: // Called to update imperative animation state. This should be called before // paint, although the client can rate-limit these calls. - // - // FIXME: remove this function entirely when inversion patches land. virtual void animate(double ignored) { } // Called to layout the WebWidget. This MUST be called before Paint, // and it may result in calls to WebWidgetClient::didInvalidateRect. virtual void layout() { } + // Called to toggle the WebWidget in or out of force compositing mode. This + // should be called before paint. + virtual void enterForceCompositingMode(bool enter) { } + enum PaintOptions { // Attempt to fulfill the painting request by reading back from the // compositor, assuming we're using a compositor to render. @@ -125,6 +127,9 @@ public: // animate or layout in this case. virtual void composite(bool finish) = 0; + // Returns true if we've started tracking repaint rectangles. + virtual bool isTrackingRepaints() const { return false; } + // Indicates that the compositing surface associated with this WebWidget is // ready to use. virtual void setCompositorSurfaceReady() = 0; |
