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

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

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/GrPath.h ('k') | src/gpu/GrPathRenderer.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 GrPathRange_DEFINED 8 #ifndef GrPathRange_DEFINED
9 #define GrPathRange_DEFINED 9 #define GrPathRange_DEFINED
10 10
11 #include "GrGpuResource.h" 11 #include "GrGpuResource.h"
12 #include "SkRefCnt.h" 12 #include "SkRefCnt.h"
13 #include "SkTArray.h" 13 #include "SkTArray.h"
14 14
15 class SkPath; 15 class SkPath;
16 class SkDescriptor; 16 class SkDescriptor;
17 17
18 /** 18 /**
19 * Represents a contiguous range of GPU path objects. 19 * Represents a contiguous range of GPU path objects.
20 * This object is immutable with the exception that individual paths may be 20 * This object is immutable with the exception that individual paths may be
21 * initialized lazily. 21 * initialized lazily.
22 */ 22 */
23 23
24 class GrPathRange : public GrGpuResource { 24 class GrPathRange : public GrGpuResource {
25 public: 25 public:
26 SK_DECLARE_INST_COUNT(GrPathRange); 26
27 27
28 enum PathIndexType { 28 enum PathIndexType {
29 kU8_PathIndexType, //!< uint8_t 29 kU8_PathIndexType, //!< uint8_t
30 kU16_PathIndexType, //!< uint16_t 30 kU16_PathIndexType, //!< uint16_t
31 kU32_PathIndexType, //!< uint32_t 31 kU32_PathIndexType, //!< uint32_t
32 32
33 kLast_PathIndexType = kU32_PathIndexType 33 kLast_PathIndexType = kU32_PathIndexType
34 }; 34 };
35 35
36 static inline int PathIndexSizeInBytes(PathIndexType type) { 36 static inline int PathIndexSizeInBytes(PathIndexType type) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 template<typename IndexType> void willDrawPaths(const void* indices, int cou nt) const; 88 template<typename IndexType> void willDrawPaths(const void* indices, int cou nt) const;
89 89
90 mutable SkAutoTUnref<PathGenerator> fPathGenerator; 90 mutable SkAutoTUnref<PathGenerator> fPathGenerator;
91 mutable SkTArray<uint8_t, true /*MEM_COPY*/> fGeneratedPaths; 91 mutable SkTArray<uint8_t, true /*MEM_COPY*/> fGeneratedPaths;
92 const int fNumPaths; 92 const int fNumPaths;
93 93
94 typedef GrGpuResource INHERITED; 94 typedef GrGpuResource INHERITED;
95 }; 95 };
96 96
97 #endif 97 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPath.h ('k') | src/gpu/GrPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698