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

Unified Diff: Source/platform/mac/LocalCurrentGraphicsContext.mm

Issue 488353003: Specify clip rects when drawing Mac native widgets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporate review feedbac Created 6 years, 4 months 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
Index: Source/platform/mac/LocalCurrentGraphicsContext.mm
diff --git a/Source/platform/mac/LocalCurrentGraphicsContext.mm b/Source/platform/mac/LocalCurrentGraphicsContext.mm
index 9c7c1b2e232b62ca1cb20b4fc0c75e6fe1d8b6b8..ac339ff66f0210db4f93f9670df38ea2f455b6ba 100644
--- a/Source/platform/mac/LocalCurrentGraphicsContext.mm
+++ b/Source/platform/mac/LocalCurrentGraphicsContext.mm
@@ -26,9 +26,9 @@
namespace blink {
-LocalCurrentGraphicsContext::LocalCurrentGraphicsContext(GraphicsContext* graphicsContext)
+LocalCurrentGraphicsContext::LocalCurrentGraphicsContext(GraphicsContext* graphicsContext, IntRect dirtyRect)
: m_didSetGraphicsContext(false)
- , m_skiaBitLocker(graphicsContext->canvas())
+ , m_skiaBitLocker(graphicsContext->canvas(), dirtyRect)
{
m_savedGraphicsContext = graphicsContext;
graphicsContext->save();

Powered by Google App Engine
This is Rietveld 408576698