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

Side by Side Diff: src/gpu/GrPath.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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 | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrPathRange.cpp » ('j') | 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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrPath_DEFINED 8 #ifndef GrPath_DEFINED
9 #define GrPath_DEFINED 9 #define GrPath_DEFINED
10 10
11 #include "GrGpuResource.h" 11 #include "GrGpuResource.h"
12 #include "GrStrokeInfo.h" 12 #include "GrStrokeInfo.h"
13 #include "SkPath.h" 13 #include "SkPath.h"
14 #include "SkRect.h" 14 #include "SkRect.h"
15 15
16 class GrPath : public GrGpuResource { 16 class GrPath : public GrGpuResource {
17 public: 17 public:
18 18
19 19
20 /** 20 /**
21 * Initialize to a path with a fixed stroke. Stroke must not be hairline. 21 * Initialize to a path with a fixed stroke. Stroke must not be hairline.
22 */ 22 */
23 GrPath(GrGpu* gpu, const SkPath& skPath, const GrStrokeInfo& stroke) 23 GrPath(GrGpu* gpu, const SkPath& skPath, const GrStrokeInfo& stroke)
24 : INHERITED(gpu, kCached_LifeCycle) 24 : INHERITED(gpu, kCached_LifeCycle, GrGpuResource::kOther)
25 , fBounds(skPath.getBounds()) 25 , fBounds(skPath.getBounds())
26 #ifdef SK_DEBUG 26 #ifdef SK_DEBUG
27 , fSkPath(skPath) 27 , fSkPath(skPath)
28 , fStroke(stroke) 28 , fStroke(stroke)
29 #endif 29 #endif
30 { 30 {
31 } 31 }
32 32
33 static void ComputeKey(const SkPath& path, const GrStrokeInfo& stroke, GrUni queKey* key, 33 static void ComputeKey(const SkPath& path, const GrStrokeInfo& stroke, GrUni queKey* key,
34 bool* outIsVolatile); 34 bool* outIsVolatile);
(...skipping 11 matching lines...) Expand all
46 #ifdef SK_DEBUG 46 #ifdef SK_DEBUG
47 SkPath fSkPath; 47 SkPath fSkPath;
48 GrStrokeInfo fStroke; 48 GrStrokeInfo fStroke;
49 #endif 49 #endif
50 50
51 private: 51 private:
52 typedef GrGpuResource INHERITED; 52 typedef GrGpuResource INHERITED;
53 }; 53 };
54 54
55 #endif 55 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrPathRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698