diff options
Diffstat (limited to 'samplecode/SampleDither.cpp')
-rw-r--r-- | samplecode/SampleDither.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleDither.cpp b/samplecode/SampleDither.cpp index 76ebecc25f..6d91fda3ad 100644 --- a/samplecode/SampleDither.cpp +++ b/samplecode/SampleDither.cpp @@ -19,6 +19,7 @@ #include "SkColorPriv.h" #include "SkColorFilter.h" #include "SkDither.h" +#include "sk_tool_utils.h" static void draw_sweep(SkCanvas* c, int width, int height, SkScalar angle) { SkRect r; @@ -111,7 +112,7 @@ public: make_bm(&fBM); make_bm(&fBMPreDither); pre_dither(fBMPreDither); - fBM.copyTo(&fBM16, kARGB_4444_SkColorType); + sk_tool_utils::copy_to(&fBM16, kARGB_4444_SkColorType, fBM); fAngle = 0; |