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

Unified Diff: gm/shallowgradient.cpp

Issue 321253002: Simple GPU based dithering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 | gyp/gpu.gypi » ('j') | src/gpu/SkGr.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/shallowgradient.cpp
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp
index a2b29d37ed8064632d7a38affa7f8a1a8d6d9538..21dd46a91c431296c0be5265a9beb5a41d1b6572 100644
--- a/gm/shallowgradient.cpp
+++ b/gm/shallowgradient.cpp
@@ -66,6 +66,7 @@ protected:
SkPaint paint;
paint.setShader(fProc(colors, colorCount, size))->unref();
+ paint.setDither(true);
egdaniel 2014/06/11 14:05:10 You may want to consider adding this gm to the gm
canvas->drawRect(r, paint);
}
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | src/gpu/SkGr.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698