diff options
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleFilterFuzz.cpp | 5 | ||||
-rw-r--r-- | samplecode/SamplePicture.cpp | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp index 6ddc87c9d9..894e4faac0 100644 --- a/samplecode/SampleFilterFuzz.cpp +++ b/samplecode/SampleFilterFuzz.cpp @@ -248,15 +248,10 @@ static void drawSomething(SkCanvas* canvas) { canvas->drawBitmap(make_bitmap(), 0, 0, NULL); canvas->restore(); - const char beforeStr[] = "before circle"; - const char afterStr[] = "after circle"; - paint.setAntiAlias(true); paint.setColor(SK_ColorRED); - canvas->drawData(beforeStr, sizeof(beforeStr)); canvas->drawCircle(SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/3), paint); - canvas->drawData(afterStr, sizeof(afterStr)); paint.setColor(SK_ColorBLACK); paint.setTextSize(SkIntToScalar(kBitmapSize/3)); canvas->drawText("Picture", 7, SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/4), paint); diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp index 28256e5675..46c57d7f39 100644 --- a/samplecode/SamplePicture.cpp +++ b/samplecode/SamplePicture.cpp @@ -112,16 +112,11 @@ protected: canvas->drawBitmap(fBitmap, 0, 0, NULL); canvas->restore(); - const char beforeStr[] = "before circle"; - const char afterStr[] = "after circle"; - paint.setAntiAlias(true); paint.setColor(SK_ColorRED); - canvas->drawData(beforeStr, sizeof(beforeStr)); canvas->drawCircle(SkIntToScalar(50), SkIntToScalar(50), SkIntToScalar(40), paint); - canvas->drawData(afterStr, sizeof(afterStr)); paint.setColor(SK_ColorBLACK); paint.setTextSize(SkIntToScalar(40)); canvas->drawText("Picture", 7, SkIntToScalar(50), SkIntToScalar(62), |