OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if !defined(OS_WIN) | 7 #if !defined(OS_WIN) |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 | 711 |
712 vcanvas_->drawLine(90, 10, 10, 90, paint); | 712 vcanvas_->drawLine(90, 10, 10, 90, paint); |
713 pcanvas_->drawLine(90, 10, 10, 90, paint); | 713 pcanvas_->drawLine(90, 10, 10, 90, paint); |
714 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("ne-sw"))); | 714 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("ne-sw"))); |
715 | 715 |
716 vcanvas_->drawLine(95, 90, 15, 10, paint); | 716 vcanvas_->drawLine(95, 90, 15, 10, paint); |
717 pcanvas_->drawLine(95, 90, 15, 10, paint); | 717 pcanvas_->drawLine(95, 90, 15, 10, paint); |
718 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("se-nw"))); | 718 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("se-nw"))); |
719 } | 719 } |
720 | 720 |
721 TEST_F(VectorCanvasTest, PathEffects) { | 721 #if defined(OS_WIN) |
| 722 #define MAYBE_PathEffects DISABLED_PathEffects |
| 723 #else |
| 724 #define MAYBE_PathEffects PathEffects |
| 725 #endif |
| 726 TEST_F(VectorCanvasTest, MAYBE_PathEffects) { |
722 { | 727 { |
723 SkPaint paint; | 728 SkPaint paint; |
724 SkScalar intervals[] = { 1, 1 }; | 729 SkScalar intervals[] = { 1, 1 }; |
725 SkPathEffect* effect = new SkDashPathEffect(intervals, arraysize(intervals), | 730 SkPathEffect* effect = new SkDashPathEffect(intervals, arraysize(intervals), |
726 0); | 731 0); |
727 paint.setPathEffect(effect)->unref(); | 732 paint.setPathEffect(effect)->unref(); |
728 paint.setColor(SK_ColorMAGENTA); | 733 paint.setColor(SK_ColorMAGENTA); |
729 paint.setStyle(SkPaint::kStroke_Style); | 734 paint.setStyle(SkPaint::kStroke_Style); |
730 | 735 |
731 vcanvas_->drawLine(10, 10, 90, 10, paint); | 736 vcanvas_->drawLine(10, 10, 90, 10, paint); |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 { | 955 { |
951 vcanvas_->rotate(67); | 956 vcanvas_->rotate(67); |
952 pcanvas_->rotate(67); | 957 pcanvas_->rotate(67); |
953 vcanvas_->drawBitmap(bitmap, 20, -50, NULL); | 958 vcanvas_->drawBitmap(bitmap, 20, -50, NULL); |
954 pcanvas_->drawBitmap(bitmap, 20, -50, NULL); | 959 pcanvas_->drawBitmap(bitmap, 20, -50, NULL); |
955 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("rotate"))); | 960 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("rotate"))); |
956 } | 961 } |
957 } | 962 } |
958 | 963 |
959 } // namespace skia | 964 } // namespace skia |
OLD | NEW |