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

Unified Diff: src/core/SkSpecialSurface.cpp

Issue 1903553002: Add explicit clip to SkSpecialSurface's SkCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Eerrggh Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpecialSurface.cpp
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp
index 83a0ee7a19cec041198f7e5ea0974af7a2b40122..eecdaecd612b2c81be413d745f646f053f3b21c8 100644
--- a/src/core/SkSpecialSurface.cpp
+++ b/src/core/SkSpecialSurface.cpp
@@ -77,6 +77,7 @@ public:
fBitmap.setPixelRef(pr);
fCanvas.reset(new SkCanvas(fBitmap, this->props()));
+ fCanvas->clipRect(SkRect::Make(subset));
}
~SkSpecialSurface_Raster() override { }
@@ -134,6 +135,7 @@ public:
}
fCanvas.reset(new SkCanvas(device));
+ fCanvas->clipRect(SkRect::Make(subset));
}
~SkSpecialSurface_Gpu() override { }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698