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

Side by Side 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, 9 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 unified diff | Download patch
« no previous file with comments | « include/gpu/GrClip.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« 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