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 /tests | |
parent | 7c339ae1e362e9f02cdfb9b32007f143dec0bc0e (diff) |
remove unused drawData
BUG=skia:
Review URL: https://codereview.chromium.org/830083002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RecorderTest.cpp | 14 | ||||
-rw-r--r-- | tests/SerializationTest.cpp | 5 |
2 files changed, 0 insertions, 19 deletions
diff --git a/tests/RecorderTest.cpp b/tests/RecorderTest.cpp index e0abacef38..4fac1af58c 100644 --- a/tests/RecorderTest.cpp +++ b/tests/RecorderTest.cpp @@ -69,20 +69,6 @@ DEF_TEST(Recorder_CommentGroups, r) { REPORTER_ASSERT(r, 1 == tally.count<SkRecords::EndCommentGroup>()); } -// DrawData is similar to comment groups. It doesn't affect drawing, but -// it's a pass-through we provide to the client. Again, a simple reg. test. -DEF_TEST(Recorder_DrawData, r) { - SkRecord record; - SkRecorder recorder(&record, 100, 100); - - const char* data = "This sure is some data, eh?"; - recorder.drawData(data, strlen(data)); - - Tally tally; - tally.apply(record); - REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawData>()); -} - // Regression test for leaking refs held by optional arguments. DEF_TEST(Recorder_RefLeaking, r) { // We use SaveLayer to test: diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp index dd9b938d52..cd5bc60574 100644 --- a/tests/SerializationTest.cpp +++ b/tests/SerializationTest.cpp @@ -397,15 +397,10 @@ static void draw_something(SkCanvas* canvas) { canvas->drawBitmap(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); |