Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: tests/CanvasTest.cpp

Issue 672273002: Removed simple tests steps from CanvasTest. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 /* Description: 8 /* Description:
9 * This test defines a series of elementatry test steps that perform 9 * This test defines a series of elementatry test steps that perform
10 * a single or a small group of canvas API calls. Each test step is 10 * a single or a small group of canvas API calls. Each test step is
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 SIMPLE_TEST_STEP(Translate, translate(SkIntToScalar(1), SkIntToScalar(2))); 336 SIMPLE_TEST_STEP(Translate, translate(SkIntToScalar(1), SkIntToScalar(2)));
337 SIMPLE_TEST_STEP(Scale, scale(SkIntToScalar(1), SkIntToScalar(2))); 337 SIMPLE_TEST_STEP(Scale, scale(SkIntToScalar(1), SkIntToScalar(2)));
338 SIMPLE_TEST_STEP(Rotate, rotate(SkIntToScalar(1))); 338 SIMPLE_TEST_STEP(Rotate, rotate(SkIntToScalar(1)));
339 SIMPLE_TEST_STEP(Skew, skew(SkIntToScalar(1), SkIntToScalar(2))); 339 SIMPLE_TEST_STEP(Skew, skew(SkIntToScalar(1), SkIntToScalar(2)));
340 SIMPLE_TEST_STEP(Concat, concat(d.fMatrix)); 340 SIMPLE_TEST_STEP(Concat, concat(d.fMatrix));
341 SIMPLE_TEST_STEP(SetMatrix, setMatrix(d.fMatrix)); 341 SIMPLE_TEST_STEP(SetMatrix, setMatrix(d.fMatrix));
342 SIMPLE_TEST_STEP(ClipRect, clipRect(d.fRect)); 342 SIMPLE_TEST_STEP(ClipRect, clipRect(d.fRect));
343 SIMPLE_TEST_STEP(ClipPath, clipPath(d.fPath)); 343 SIMPLE_TEST_STEP(ClipPath, clipPath(d.fPath));
344 SIMPLE_TEST_STEP(ClipRegion, clipRegion(d.fRegion, SkRegion::kReplace_Op)); 344 SIMPLE_TEST_STEP(ClipRegion, clipRegion(d.fRegion, SkRegion::kReplace_Op));
345 SIMPLE_TEST_STEP(Clear, clear(d.fColor)); 345 SIMPLE_TEST_STEP(Clear, clear(d.fColor));
346 SIMPLE_TEST_STEP(DrawPaint, drawPaint(d.fPaint));
347 SIMPLE_TEST_STEP(DrawPointsPoints, drawPoints(SkCanvas::kPoints_PointMode,
348 d.fPointCount, d.fPoints, d.fPaint));
349 SIMPLE_TEST_STEP(DrawPointsLiness, drawPoints(SkCanvas::kLines_PointMode,
350 d.fPointCount, d.fPoints, d.fPaint));
351 SIMPLE_TEST_STEP(DrawPointsPolygon, drawPoints(SkCanvas::kPolygon_PointMode,
352 d.fPointCount, d.fPoints, d.fPaint));
353 SIMPLE_TEST_STEP(DrawRect, drawRect(d.fRect, d.fPaint));
354 SIMPLE_TEST_STEP(DrawPath, drawPath(d.fPath, d.fPaint));
355 SIMPLE_TEST_STEP(DrawBitmap, drawBitmap(d.fBitmap, 0, 0));
356 SIMPLE_TEST_STEP(DrawBitmapPaint, drawBitmap(d.fBitmap, 0, 0, &d.fPaint));
357 SIMPLE_TEST_STEP(DrawBitmapRect, drawBitmapRect(d.fBitmap, NULL, d.fRect, NULL)) ;
358 SIMPLE_TEST_STEP(DrawBitmapRectSrcRect, drawBitmapRect(d.fBitmap, &d.fIRect, d.f Rect, NULL));
359 SIMPLE_TEST_STEP(DrawBitmapRectPaint, drawBitmapRect(d.fBitmap, NULL, d.fRect, & d.fPaint));
360 SIMPLE_TEST_STEP(DrawBitmapMatrix, drawBitmapMatrix(d.fBitmap, d.fMatrix, NULL)) ;
361 SIMPLE_TEST_STEP(DrawBitmapMatrixPaint, drawBitmapMatrix(d.fBitmap, d.fMatrix, & d.fPaint));
362 SIMPLE_TEST_STEP(DrawBitmapNine, drawBitmapNine(d.fBitmap, d.fIRect, d.fRect, NU LL));
363 SIMPLE_TEST_STEP(DrawBitmapNinePaint, drawBitmapNine(d.fBitmap, d.fIRect, d.fRec t, &d.fPaint));
364 SIMPLE_TEST_STEP(DrawSprite, drawSprite(d.fBitmap, 0, 0, NULL));
365 SIMPLE_TEST_STEP(DrawSpritePaint, drawSprite(d.fBitmap, 0, 0, &d.fPaint));
366 SIMPLE_TEST_STEP(DrawText, drawText(d.fText.c_str(), d.fText.size(), 0, 1, d.fPa int));
367 SIMPLE_TEST_STEP(DrawPosText, drawPosText(d.fText.c_str(), d.fText.size(), d.fPo ints2, d.fPaint));
368 SIMPLE_TEST_STEP(DrawTextOnPath, drawTextOnPath(d.fText.c_str(), d.fText.size(),
369 d.fPath, NULL, d.fPaint));
370 SIMPLE_TEST_STEP(DrawTextOnPathMatrix, drawTextOnPath(d.fText.c_str(), d.fText.s ize(), d.fPath,
371 &d.fMatrix, d.fPaint));
372 SIMPLE_TEST_STEP(DrawData, drawData(d.fText.c_str(), d.fText.size()));
373 SIMPLE_TEST_STEP(BeginGroup, beginCommentGroup(d.fText.c_str())); 346 SIMPLE_TEST_STEP(BeginGroup, beginCommentGroup(d.fText.c_str()));
374 SIMPLE_TEST_STEP(AddComment, addComment(d.fText.c_str(), d.fText.c_str())); 347 SIMPLE_TEST_STEP(AddComment, addComment(d.fText.c_str(), d.fText.c_str()));
375 SIMPLE_TEST_STEP(EndGroup, endCommentGroup()); 348 SIMPLE_TEST_STEP(EndGroup, endCommentGroup());
376 349
377 /////////////////////////////////////////////////////////////////////////////// 350 ///////////////////////////////////////////////////////////////////////////////
378 // Complex test steps 351 // Complex test steps
379 352
380 static void SaveMatrixClipStep(SkCanvas* canvas, const TestData& d, 353 static void SaveMatrixClipStep(SkCanvas* canvas, const TestData& d,
381 skiatest::Reporter* reporter, CanvasTestStep* tes tStep) { 354 skiatest::Reporter* reporter, CanvasTestStep* tes tStep) {
382 int saveCount = canvas->getSaveCount(); 355 int saveCount = canvas->getSaveCount();
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 841
869 for (int testStep = 0; testStep < testStepArray().count(); testStep++) { 842 for (int testStep = 0; testStep < testStepArray().count(); testStep++) {
870 TestOverrideStateConsistency(reporter, d, testStepArray()[testStep]); 843 TestOverrideStateConsistency(reporter, d, testStepArray()[testStep]);
871 if (testStepArray()[testStep]->enablePdfTesting()) { 844 if (testStepArray()[testStep]->enablePdfTesting()) {
872 TestPdfDevice(reporter, d, testStepArray()[testStep]); 845 TestPdfDevice(reporter, d, testStepArray()[testStep]);
873 } 846 }
874 } 847 }
875 848
876 test_newraster(reporter); 849 test_newraster(reporter);
877 } 850 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698