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

Unified Diff: tests/PictureTest.cpp

Issue 255733002: Fix r14368 (First pass at GPU veto) for non-GPU builds (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PictureTest.cpp
===================================================================
--- tests/PictureTest.cpp (revision 14368)
+++ tests/PictureTest.cpp (working copy)
@@ -695,6 +695,7 @@
}
}
+#if SK_SUPPORT_GPU
static void test_gpu_veto(skiatest::Reporter* reporter) {
SkPictureRecorder recorder;
@@ -764,6 +765,7 @@
// 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 @@
#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);
« 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