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

Side by Side Diff: tests/CanvasTest.cpp

Issue 312553006: remove SkBounder -- unused and unloved (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address review comments Created 6 years, 6 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 | « src/views/SkWindow.cpp ('k') | 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 REPORTER_ASSERT_MESSAGE(reporter, bounds1 == bounds2, 625 REPORTER_ASSERT_MESSAGE(reporter, bounds1 == bounds2,
626 testStep->assertMessage()); 626 testStep->assertMessage());
627 627
628 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getDrawFilter() == 628 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getDrawFilter() ==
629 canvas2->getDrawFilter(), testStep->assertMessage()); 629 canvas2->getDrawFilter(), testStep->assertMessage());
630 SkIRect deviceBounds1, deviceBounds2; 630 SkIRect deviceBounds1, deviceBounds2;
631 REPORTER_ASSERT_MESSAGE(reporter, 631 REPORTER_ASSERT_MESSAGE(reporter,
632 canvas1->getClipDeviceBounds(&deviceBounds1) == 632 canvas1->getClipDeviceBounds(&deviceBounds1) ==
633 canvas2->getClipDeviceBounds(&deviceBounds2), 633 canvas2->getClipDeviceBounds(&deviceBounds2),
634 testStep->assertMessage()); 634 testStep->assertMessage());
635 REPORTER_ASSERT_MESSAGE(reporter, deviceBounds1 == deviceBounds2, 635 REPORTER_ASSERT_MESSAGE(reporter, deviceBounds1 == deviceBounds2, testStep-> assertMessage());
636 testStep->assertMessage());
637 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getBounder() ==
638 canvas2->getBounder(), testStep->assertMessage());
639 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getTotalMatrix() == 636 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getTotalMatrix() ==
640 canvas2->getTotalMatrix(), testStep->assertMessage()); 637 canvas2->getTotalMatrix(), testStep->assertMessage());
641 REPORTER_ASSERT_MESSAGE(reporter, equal_clips(*canvas1, *canvas2), testStep- >assertMessage()); 638 REPORTER_ASSERT_MESSAGE(reporter, equal_clips(*canvas1, *canvas2), testStep- >assertMessage());
642 639
643 // The following test code is commented out because the test fails when 640 // The following test code is commented out because the test fails when
644 // the canvas is an SkPictureRecord or SkDeferredCanvas 641 // the canvas is an SkPictureRecord or SkDeferredCanvas
645 // Issue: http://code.google.com/p/skia/issues/detail?id=498 642 // Issue: http://code.google.com/p/skia/issues/detail?id=498
646 // Also, creating a LayerIter on an SkProxyCanvas crashes 643 // Also, creating a LayerIter on an SkProxyCanvas crashes
647 // Issue: http://code.google.com/p/skia/issues/detail?id=499 644 // Issue: http://code.google.com/p/skia/issues/detail?id=499
648 /* 645 /*
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 if (testStepArray()[testStep]->enablePdfTesting()) { 949 if (testStepArray()[testStep]->enablePdfTesting()) {
953 TestPdfDevice(reporter, testStepArray()[testStep]); 950 TestPdfDevice(reporter, testStepArray()[testStep]);
954 } 951 }
955 } 952 }
956 953
957 // Explicitly call reset(), so we don't leak the pixels (since kTestBitmap i s a global) 954 // Explicitly call reset(), so we don't leak the pixels (since kTestBitmap i s a global)
958 kTestBitmap.reset(); 955 kTestBitmap.reset();
959 956
960 test_newraster(reporter); 957 test_newraster(reporter);
961 } 958 }
OLDNEW
« no previous file with comments | « src/views/SkWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698