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

Unified Diff: src/gpu/GrClip.cpp

Issue 947933004: move static init to cpp file to fix linux builder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrClip.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « include/gpu/GrClip.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698