aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-25 00:02:12 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-25 00:02:12 +0000
commitb950c6fd7188d625ed64ee6a3ea4f66d6d52e10c (patch)
treec8a78db3da9fcb843116f578f34bad40af52ffac
parente2cb12a82ad924f7b134a9459b190213485c6a50 (diff)
Fix r14368 (First pass at GPU veto) for non-GPU builds
-rw-r--r--tests/PictureTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 5e152341cc..8c5ae62857 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -695,6 +695,7 @@ static void rand_op(SkCanvas* canvas, SkRandom& rand) {
}
}
+#if SK_SUPPORT_GPU
static void test_gpu_veto(skiatest::Reporter* reporter) {
SkPictureRecorder recorder;
@@ -764,6 +765,7 @@ static void test_gpu_veto(skiatest::Reporter* reporter) {
// hairline stroked AA concave paths are fine for GPU rendering
REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(NULL));
}
+#endif
static void set_canvas_to_save_count_4(SkCanvas* canvas) {
canvas->restoreToCount(1);
@@ -1268,7 +1270,9 @@ DEF_TEST(Picture, reporter) {
#endif
test_unbalanced_save_restores(reporter);
test_peephole();
+#if SK_SUPPORT_GPU
test_gpu_veto(reporter);
+#endif
test_gatherpixelrefs(reporter);
test_gatherpixelrefsandrects(reporter);
test_bitmap_with_encoded_data(reporter);