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

Side by Side Diff: tests/ClipStackTest.cpp

Issue 2041943002: SkLeanWindows.h: #include "Windows.h" fewer places (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-07 (Tuesday) 11:28:42 EDT Created 4 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/xps/SkXPSDevice.cpp ('k') | tests/PathCoverageTest.cpp » ('j') | 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 2011 Google Inc. 2 * Copyright 2011 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 "Test.h" 8 #include "Test.h"
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 #include "GrReducedClip.h" 10 #include "GrReducedClip.h"
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 iter.reset(reducedStack, SkClipStack::Iter::kBottom_IterStart); 1004 iter.reset(reducedStack, SkClipStack::Iter::kBottom_IterStart);
1005 while ((element = iter.next())) { 1005 while ((element = iter.next())) {
1006 add_elem_to_region(*element, inflatedIBounds, &reducedRegion); 1006 add_elem_to_region(*element, inflatedIBounds, &reducedRegion);
1007 } 1007 }
1008 SkString testCase; 1008 SkString testCase;
1009 testCase.printf("Iteration %d", i); 1009 testCase.printf("Iteration %d", i);
1010 REPORTER_ASSERT_MESSAGE(reporter, region == reducedRegion, testCase.c_st r()); 1010 REPORTER_ASSERT_MESSAGE(reporter, region == reducedRegion, testCase.c_st r());
1011 } 1011 }
1012 } 1012 }
1013 1013
1014 #if defined(WIN32) 1014 #ifdef SK_BUILD_FOR_WIN
1015 #define SUPPRESS_VISIBILITY_WARNING 1015 #define SUPPRESS_VISIBILITY_WARNING
1016 #else 1016 #else
1017 #define SUPPRESS_VISIBILITY_WARNING __attribute__((visibility("hidden"))) 1017 #define SUPPRESS_VISIBILITY_WARNING __attribute__((visibility("hidden")))
1018 #endif 1018 #endif
1019 1019
1020 static void test_reduced_clip_stack_genid(skiatest::Reporter* reporter) { 1020 static void test_reduced_clip_stack_genid(skiatest::Reporter* reporter) {
1021 { 1021 {
1022 SkClipStack stack; 1022 SkClipStack stack;
1023 stack.clipDevRect(SkRect::MakeXYWH(0, 0, 100, 100), SkRegion::kReplace_O p, true); 1023 stack.clipDevRect(SkRect::MakeXYWH(0, 0, 100, 100), SkRegion::kReplace_O p, true);
1024 stack.clipDevRect(SkRect::MakeXYWH(0, 0, SkScalar(50.3), SkScalar(50.3)) , SkRegion::kReplace_Op, true); 1024 stack.clipDevRect(SkRect::MakeXYWH(0, 0, SkScalar(50.3), SkScalar(50.3)) , SkRegion::kReplace_Op, true);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 test_rect_replace(reporter); 1212 test_rect_replace(reporter);
1213 test_rect_inverse_fill(reporter); 1213 test_rect_inverse_fill(reporter);
1214 test_path_replace(reporter); 1214 test_path_replace(reporter);
1215 test_quickContains(reporter); 1215 test_quickContains(reporter);
1216 #if SK_SUPPORT_GPU 1216 #if SK_SUPPORT_GPU
1217 test_reduced_clip_stack(reporter); 1217 test_reduced_clip_stack(reporter);
1218 test_reduced_clip_stack_genid(reporter); 1218 test_reduced_clip_stack_genid(reporter);
1219 test_reduced_clip_stack_no_aa_crash(reporter); 1219 test_reduced_clip_stack_no_aa_crash(reporter);
1220 #endif 1220 #endif
1221 } 1221 }
OLDNEW
« no previous file with comments | « src/xps/SkXPSDevice.cpp ('k') | tests/PathCoverageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698