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

Unified Diff: third_party/WebKit/Source/web/PageOverlay.cpp

Issue 1441973003: Use recomputed interest rect only if it changed enough (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix release builds Created 5 years, 1 month 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 | « third_party/WebKit/Source/web/PageOverlay.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/PageOverlay.cpp
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp
index 86ae8472837d8a49b0b163c48c71e5694fc616f1..cf837ab9e73e963ec6e34df54a3e8a3e77bd4747 100644
--- a/third_party/WebKit/Source/web/PageOverlay.cpp
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp
@@ -96,13 +96,18 @@ void PageOverlay::update()
m_layer->setNeedsDisplay();
}
-void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& gc, GraphicsLayerPaintingPhase phase, const IntRect* inClip) const
+IntRect PageOverlay::computeInterestRect(const GraphicsLayer* graphicsLayer, const IntRect&) const
+{
+ return IntRect(IntPoint(), expandedIntSize(m_layer->size()));
+}
+
+void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& gc, GraphicsLayerPaintingPhase phase, const IntRect& interestRect) const
{
ASSERT(m_layer);
- m_delegate->paintPageOverlay(*this, gc, expandedIntSize(m_layer->size()));
+ m_delegate->paintPageOverlay(*this, gc, interestRect.size());
}
-String PageOverlay::debugName(const GraphicsLayer*)
+String PageOverlay::debugName(const GraphicsLayer*) const
{
return "WebViewImpl Page Overlay Content Layer";
}
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698