diff options
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r-- | samplecode/SampleAll.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index 968263bef5..8719e67892 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -18,7 +18,7 @@ #include "SkPath.h" #include "SkRegion.h" #include "SkShader.h" -#include "SkShaderExtras.h" +#include "SkComposeShader.h" #include "SkCornerPathEffect.h" #include "SkPathMeasure.h" #include "SkPicture.h" @@ -718,7 +718,8 @@ SkCornerPathEffect.h:28:class SkCornerPathEffect : public SkPathEffect { paint.setAntiAlias(true); paint.setTextSize(SkIntToScalar(48)); - paint.setTypeface(SkTypeface::Create("sans-serif", SkTypeface::kBold)); + paint.setTypeface(SkTypeface::CreateFromName("sans-serif", + SkTypeface::kBold)); SkString str("GOOGLE"); |