diff options
author | wangxianzhu <wangxianzhu@chromium.org> | 2015-10-29 16:24:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-29 23:25:24 +0000 |
commit | f118da73a9f15420c1757133de7b89a019186bb3 (patch) | |
tree | cdc544c60e2b816dc0b0a08382952a9492668ead /third_party/WebKit/Source/platform/graphics/GraphicsLayer.h | |
parent | 7b1b702ddf43a7fb214a460ff43d976b73e1a973 (diff) | |
download | chromium_src-f118da73a9f15420c1757133de7b89a019186bb3.zip chromium_src-f118da73a9f15420c1757133de7b89a019186bb3.tar.gz chromium_src-f118da73a9f15420c1757133de7b89a019186bb3.tar.bz2 |
Repaint on interest rect change
This is needed before we enable sync painting. Repaint when interest
rect changed sufficiently.
Also combine GraphicsLayer::paintIfNeeded() and GraphicsLayer::paint().
The former was needed because the caller needed to check the result to
determine if it's safe to commit the new paints. Now this is not needed.
Actually we always paint, and output CachedDisplayItemList when the
whole display item list is cached.
BUG=536999
Review URL: https://codereview.chromium.org/1428643004
Cr-Commit-Position: refs/heads/master@{#356979}
Diffstat (limited to 'third_party/WebKit/Source/platform/graphics/GraphicsLayer.h')
-rw-r--r-- | third_party/WebKit/Source/platform/graphics/GraphicsLayer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h index 6d93068..48725ea 100644 --- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h +++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h @@ -245,8 +245,7 @@ public: static void unregisterContentsLayer(WebLayer*); // GraphicsContextPainter implementation. - void paint(GraphicsContext&, const IntRect& clip) override; - void paintIfNeeded(GraphicsContext&) override; + void paint(GraphicsContext&, const IntRect* clip) override; // WebCompositorAnimationDelegate implementation. void notifyAnimationStarted(double monotonicTime, int group) override; |