diff options
author | reed <reed@chromium.org> | 2015-01-02 06:39:51 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-02 06:39:51 -0800 |
commit | c4fda92f45b9649f233a5b8636618a6431aa59cb (patch) | |
tree | 18eab2beddd77308e51e6aba0fa152e883d7b1b0 /samplecode | |
parent | 7c339ae1e362e9f02cdfb9b32007f143dec0bc0e (diff) |
remove unused drawData
BUG=skia:
Review URL: https://codereview.chromium.org/830083002
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), |