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

Unified Diff: dm/DMSrcSink.cpp

Issue 2000783002: Exit before reaching some Nonfatal errors (Closed) Base URL: https://skia.googlesource.com/skia.git@opaque
Patch Set: Created 4 years, 7 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 | « dm/DM.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.cpp
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 028dff886b444d5b54736794cd357f16b759b5ab..d523a353f16ba4fb09d5fae1a83506f596860b77 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -123,10 +123,7 @@ Error BRDSrc::draw(SkCanvas* canvas) const {
const uint32_t width = brd->width();
const uint32_t height = brd->height();
- // Visually inspecting very small output images is not necessary.
- if ((width / fSampleSize <= 10 || height / fSampleSize <= 10) && 1 != fSampleSize) {
- return Error::Nonfatal("Scaling very small images is uninteresting.");
- }
+
switch (fMode) {
case kFullImage_Mode: {
SkBitmap bitmap;
« no previous file with comments | « dm/DM.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698