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

Unified Diff: src/core/SkCanvas.cpp

Issue 1244093005: Fix SkCanvas::wouldOverwriteEntireSurface() contains test (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: test comment Created 5 years, 5 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 | tests/ImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 570435869b498dbed2bfc7d557084afe66bf2db4..f55ca5e12721626df873c7836e3829e46018f9e4 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -70,7 +70,7 @@ bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* pa
SkRect devRect;
this->getTotalMatrix().mapRect(&devRect, *rect);
- if (devRect.contains(bounds)) {
+ if (!devRect.contains(bounds)) {
return false;
}
}
« no previous file with comments | « no previous file | tests/ImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698