Chromium Code Reviews| 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 "GrSurface.h" | 10 #include "GrSurface.h" |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 -this->origin().fY, | 41 -this->origin().fY, |
| 42 width, | 42 width, |
| 43 height, | 43 height, |
| 44 &devBounds, | 44 &devBounds, |
| 45 isIntersectionOfRects); | 45 isIntersectionOfRects); |
| 46 devBounds.roundOut(devResult); | 46 devBounds.roundOut(devResult); |
| 47 } break; | 47 } break; |
| 48 | 48 |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | |
| 52 const GrClip& GrClip::WideOpen() { | |
| 53 static GrClip clip; | |
|
bsalomon
2015/02/24 13:29:19
probably should be const.
lgtm
mtklein
2015/02/24 13:41:25
Yep. And please keep in mind that local statics l
| |
| 54 return clip; | |
| 55 } | |
| OLD | NEW |