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

Unified Diff: gm/matriximagefilter.cpp

Issue 211703002: Remove useless code from matriximagefilter GM. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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: gm/matriximagefilter.cpp
diff --git a/gm/matriximagefilter.cpp b/gm/matriximagefilter.cpp
index ac8b94f148402d568773533a6e93c2d72f62e6be..df691c95d8c3aba72909c832444d34f31a61735e 100644
--- a/gm/matriximagefilter.cpp
+++ b/gm/matriximagefilter.cpp
@@ -59,16 +59,11 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
canvas->clear(0x00000000);
- SkPaint paint;
SkMatrix matrix;
SkScalar margin = SkIntToScalar(10);
matrix.setSkew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2));
- SkRect srcBounds;
SkBitmap checkerboard;
make_checkerboard(&checkerboard);
- checkerboard.getBounds(&srcBounds);
- // Outer paint does no filtering; leave it all for the filter
- paint.setFilterLevel(SkPaint::kNone_FilterLevel);
SkRect srcRect = SkRect::MakeWH(96, 96);
« 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