Chromium Code Reviews| Index: src/gpu/GrClip.cpp |
| diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp |
| index 0f8aac874953237dfd03323c516d2879b2edfc38..15b1fbc8111efee6ffabc934165a6e024a86dde3 100644 |
| --- a/src/gpu/GrClip.cpp |
| +++ b/src/gpu/GrClip.cpp |
| @@ -48,3 +48,8 @@ void GrClip::getConservativeBounds(int width, int height, SkIRect* devResult, |
| } |
| } |
| + |
| +const GrClip& GrClip::WideOpen() { |
| + 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
|
| + return clip; |
| +} |