| OLD | NEW |
| 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 #include "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
| 9 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
| 10 #include "SkBlurImageFilter.h" | 10 #include "SkBlurImageFilter.h" |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 REPORTER_ASSERT(reporter, kWidth == info1.fSize.fWidth && kHeight == inf
o1.fSize.fHeight); | 882 REPORTER_ASSERT(reporter, kWidth == info1.fSize.fWidth && kHeight == inf
o1.fSize.fHeight); |
| 883 REPORTER_ASSERT(reporter, info1.fCTM.isIdentity()); | 883 REPORTER_ASSERT(reporter, info1.fCTM.isIdentity()); |
| 884 REPORTER_ASSERT(reporter, 0 == info1.fOffset.fX && 0 == info1.fOffset.fY
); | 884 REPORTER_ASSERT(reporter, 0 == info1.fOffset.fX && 0 == info1.fOffset.fY
); |
| 885 REPORTER_ASSERT(reporter, NULL != info1.fPaint); | 885 REPORTER_ASSERT(reporter, NULL != info1.fPaint); |
| 886 REPORTER_ASSERT(reporter, !info1.fIsNested && info1.fHasNestedLayers); /
/ has a nested SL | 886 REPORTER_ASSERT(reporter, !info1.fIsNested && info1.fHasNestedLayers); /
/ has a nested SL |
| 887 | 887 |
| 888 REPORTER_ASSERT(reporter, info2.fValid); | 888 REPORTER_ASSERT(reporter, info2.fValid); |
| 889 REPORTER_ASSERT(reporter, kWidth/2 == info2.fSize.fWidth && | 889 REPORTER_ASSERT(reporter, kWidth/2 == info2.fSize.fWidth && |
| 890 kHeight/2 == info2.fSize.fHeight); // bound re
duces size | 890 kHeight/2 == info2.fSize.fHeight); // bound re
duces size |
| 891 REPORTER_ASSERT(reporter, info2.fCTM.isIdentity()); // translate
d | 891 REPORTER_ASSERT(reporter, info2.fCTM.isIdentity()); // translate
d |
| 892 REPORTER_ASSERT(reporter, 0 == info2.fOffset.fX && 0 == info2.fOffset.fY
); | 892 REPORTER_ASSERT(reporter, kWidth/2 == info2.fOffset.fX && |
| 893 kHeight/2 == info2.fOffset.fY); |
| 893 REPORTER_ASSERT(reporter, NULL != info1.fPaint); | 894 REPORTER_ASSERT(reporter, NULL != info1.fPaint); |
| 894 REPORTER_ASSERT(reporter, info2.fIsNested && !info2.fHasNestedLayers); /
/ is nested | 895 REPORTER_ASSERT(reporter, info2.fIsNested && !info2.fHasNestedLayers); /
/ is nested |
| 895 | 896 |
| 896 REPORTER_ASSERT(reporter, info3.fValid); | 897 REPORTER_ASSERT(reporter, info3.fValid); |
| 897 REPORTER_ASSERT(reporter, kWidth == info3.fSize.fWidth && kHeight == inf
o3.fSize.fHeight); | 898 REPORTER_ASSERT(reporter, kWidth == info3.fSize.fWidth && kHeight == inf
o3.fSize.fHeight); |
| 898 REPORTER_ASSERT(reporter, info3.fCTM.isIdentity()); | 899 REPORTER_ASSERT(reporter, info3.fCTM.isIdentity()); |
| 899 REPORTER_ASSERT(reporter, 0 == info3.fOffset.fX && 0 == info3.fOffset.fY
); | 900 REPORTER_ASSERT(reporter, 0 == info3.fOffset.fX && 0 == info3.fOffset.fY
); |
| 900 REPORTER_ASSERT(reporter, NULL != info3.fPaint); | 901 REPORTER_ASSERT(reporter, NULL != info3.fPaint); |
| 901 REPORTER_ASSERT(reporter, !info3.fIsNested && !info3.fHasNestedLayers); | 902 REPORTER_ASSERT(reporter, !info3.fIsNested && !info3.fHasNestedLayers); |
| 902 | 903 |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 SkAutoTUnref<SkPicture> picture(recorder.endRecording()); | 1461 SkAutoTUnref<SkPicture> picture(recorder.endRecording()); |
| 1461 } | 1462 } |
| 1462 | 1463 |
| 1463 DEF_TEST(Canvas_EmptyBitmap, r) { | 1464 DEF_TEST(Canvas_EmptyBitmap, r) { |
| 1464 SkBitmap dst; | 1465 SkBitmap dst; |
| 1465 dst.allocN32Pixels(10, 10); | 1466 dst.allocN32Pixels(10, 10); |
| 1466 SkCanvas canvas(dst); | 1467 SkCanvas canvas(dst); |
| 1467 | 1468 |
| 1468 test_draw_bitmaps(&canvas); | 1469 test_draw_bitmaps(&canvas); |
| 1469 } | 1470 } |
| OLD | NEW |