| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SampleCode.h" | 8 #include "SampleCode.h" |
| 9 #include "SkView.h" | 9 #include "SkView.h" |
| 10 #include "SkBlurMask.h" | 10 #include "SkBlurMask.h" |
| 11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
| 12 #include "SkCornerPathEffect.h" | 12 #include "SkCornerPathEffect.h" |
| 13 #include "SkGradientShader.h" | 13 #include "SkGradientShader.h" |
| 14 #include "SkGraphics.h" | 14 #include "SkGraphics.h" |
| 15 #include "SkImageDecoder.h" | 15 #include "SkImageDecoder.h" |
| 16 #include "SkPath.h" | 16 #include "SkPath.h" |
| 17 #include "SkRandom.h" | 17 #include "SkRandom.h" |
| 18 #include "SkRegion.h" | 18 #include "SkRegion.h" |
| 19 #include "SkShader.h" | 19 #include "SkShader.h" |
| 20 #include "SkUtils.h" | 20 #include "SkUtils.h" |
| 21 #include "SkColorPriv.h" | 21 #include "SkColorPriv.h" |
| 22 #include "SkColorFilter.h" | 22 #include "SkColorFilter.h" |
| 23 #include "SkTime.h" | 23 #include "SkTime.h" |
| 24 #include "SkTypeface.h" | 24 #include "SkTypeface.h" |
| 25 #include "SkXfermode.h" | 25 #include "SkXfermode.h" |
| 26 | 26 |
| 27 #include "SkStream.h" | 27 #include "SkStream.h" |
| 28 #include "SkXMLParser.h" | |
| 29 #include "SkColorPriv.h" | 28 #include "SkColorPriv.h" |
| 30 #include "SkImageDecoder.h" | 29 #include "SkImageDecoder.h" |
| 31 #include "SkBlurMaskFilter.h" | 30 #include "SkBlurMaskFilter.h" |
| 32 | 31 |
| 33 static void setNamedTypeface(SkPaint* paint, const char name[]) { | 32 static void setNamedTypeface(SkPaint* paint, const char name[]) { |
| 34 SkTypeface* face = SkTypeface::CreateFromName(name, SkTypeface::kNormal); | 33 SkTypeface* face = SkTypeface::CreateFromName(name, SkTypeface::kNormal); |
| 35 paint->setTypeface(face); | 34 paint->setTypeface(face); |
| 36 SkSafeUnref(face); | 35 SkSafeUnref(face); |
| 37 } | 36 } |
| 38 | 37 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 } | 200 } |
| 202 | 201 |
| 203 private: | 202 private: |
| 204 typedef SampleView INHERITED; | 203 typedef SampleView INHERITED; |
| 205 }; | 204 }; |
| 206 | 205 |
| 207 ////////////////////////////////////////////////////////////////////////////// | 206 ////////////////////////////////////////////////////////////////////////////// |
| 208 | 207 |
| 209 static SkView* MyFactory() { return new XfermodesBlurView; } | 208 static SkView* MyFactory() { return new XfermodesBlurView; } |
| 210 static SkViewRegister reg(MyFactory); | 209 static SkViewRegister reg(MyFactory); |
| OLD | NEW |