OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "Test.h" | 9 #include "Test.h" |
10 // This is a GR test | 10 // This is a GR test |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // make sure that the SkClipStack is behaving itself | 51 // make sure that the SkClipStack is behaving itself |
52 REPORTER_ASSERT(reporter, screen == devStackBounds); | 52 REPORTER_ASSERT(reporter, screen == devStackBounds); |
53 REPORTER_ASSERT(reporter, isIntersectionOfRects); | 53 REPORTER_ASSERT(reporter, isIntersectionOfRects); |
54 | 54 |
55 // wrap the SkClipStack in a GrClip | 55 // wrap the SkClipStack in a GrClip |
56 GrClip clipData; | 56 GrClip clipData; |
57 clipData.setClipStack(&stack); | 57 clipData.setClipStack(&stack); |
58 | 58 |
59 SkIRect devGrClipBound; | 59 SkIRect devGrClipBound; |
60 clipData.getConservativeBounds(texture, | 60 clipData.getConservativeBounds(texture->width(), texture->height(), |
61 &devGrClipBound, | 61 &devGrClipBound, |
62 &isIntersectionOfRects); | 62 &isIntersectionOfRects); |
63 | 63 |
64 // make sure that GrClip is behaving itself | 64 // make sure that GrClip is behaving itself |
65 REPORTER_ASSERT(reporter, intScreen == devGrClipBound); | 65 REPORTER_ASSERT(reporter, intScreen == devGrClipBound); |
66 REPORTER_ASSERT(reporter, isIntersectionOfRects); | 66 REPORTER_ASSERT(reporter, isIntersectionOfRects); |
67 } | 67 } |
68 | 68 |
69 #endif | 69 #endif |
OLD | NEW |