OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 "GrClip.h" | 8 #include "GrClip.h" |
9 | 9 |
| 10 #include "GrAppliedClip.h" |
10 #include "GrDrawContext.h" | 11 #include "GrDrawContext.h" |
11 | 12 |
12 void GrNoClip::getConservativeBounds(int width, int height, SkIRect* devResult, | 13 void GrNoClip::getConservativeBounds(int width, int height, SkIRect* devResult, |
13 bool* isIntersectionOfRects) const { | 14 bool* isIntersectionOfRects) const { |
14 devResult->setXYWH(0, 0, width, height); | 15 devResult->setXYWH(0, 0, width, height); |
15 if (isIntersectionOfRects) { | 16 if (isIntersectionOfRects) { |
16 *isIntersectionOfRects = true; | 17 *isIntersectionOfRects = true; |
17 } | 18 } |
18 } | 19 } |
19 | 20 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 out->addScissor(tightScissor); | 53 out->addScissor(tightScissor); |
53 } | 54 } |
54 } | 55 } |
55 | 56 |
56 if (fHasStencilClip) { | 57 if (fHasStencilClip) { |
57 out->addStencilClip(); | 58 out->addStencilClip(); |
58 } | 59 } |
59 | 60 |
60 return true; | 61 return true; |
61 } | 62 } |
OLD | NEW |