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

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 763493003: Track scissored damage area for WebGL Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index f2d1d39a71c7de19ea74612b701d63661e02eb29..ced35e76cd6599f96026ea78d2ef0963d360c365 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -890,11 +890,14 @@ void GraphicsLayer::setIsRootForIsolatedGroup(bool isolated)
platformLayer()->setIsRootForIsolatedGroup(isolated);
}
-void GraphicsLayer::setContentsNeedsDisplay()
+void GraphicsLayer::setContentsNeedsDisplay(const IntRect& dirtyRect)
{
if (WebLayer* contentsLayer = contentsLayerIfRegistered()) {
- contentsLayer->invalidate();
- addRepaintRect(m_contentsRect);
+ IntRect rect = m_contentsRect;
+ if (!dirtyRect.isEmpty())
+ rect = dirtyRect;
+ contentsLayer->invalidateRect(rect);
+ addRepaintRect(rect);
}
}
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698