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

Side by Side Diff: src/gpu/gl/GrGLPathRange.h

Issue 808593003: Rename GrGpuGL to GrGLGpu for consistency (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years 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/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGLPathRange.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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrGLPathRange_DEFINED 9 #ifndef GrGLPathRange_DEFINED
10 #define GrGLPathRange_DEFINED 10 #define GrGLPathRange_DEFINED
11 11
12 #include "../GrPathRange.h" 12 #include "../GrPathRange.h"
13 #include "gl/GrGLFunctions.h" 13 #include "gl/GrGLFunctions.h"
14 14
15 class GrGpuGL; 15 class GrGLGpu;
16 16
17 /** 17 /**
18 * Currently this represents a range of GL_NV_path_rendering Path IDs. If we 18 * Currently this represents a range of GL_NV_path_rendering Path IDs. If we
19 * support other GL path extensions then this would have to have a type enum 19 * support other GL path extensions then this would have to have a type enum
20 * and/or be subclassed. 20 * and/or be subclassed.
21 */ 21 */
22 22
23 class GrGLPathRange : public GrPathRange { 23 class GrGLPathRange : public GrPathRange {
24 public: 24 public:
25 /** 25 /**
26 * Initialize a GL path range from a PathGenerator. This class will allocate 26 * Initialize a GL path range from a PathGenerator. This class will allocate
27 * the GPU path objects and initialize them lazily. 27 * the GPU path objects and initialize them lazily.
28 */ 28 */
29 GrGLPathRange(GrGpuGL*, PathGenerator*, const SkStrokeRec&); 29 GrGLPathRange(GrGLGpu*, PathGenerator*, const SkStrokeRec&);
30 30
31 /** 31 /**
32 * Initialize a GL path range from an existing range of pre-initialized GPU 32 * Initialize a GL path range from an existing range of pre-initialized GPU
33 * path objects. This class assumes ownership of the GPU path objects and 33 * path objects. This class assumes ownership of the GPU path objects and
34 * will delete them when done. 34 * will delete them when done.
35 */ 35 */
36 GrGLPathRange(GrGpuGL*, 36 GrGLPathRange(GrGLGpu*,
37 GrGLuint basePathID, 37 GrGLuint basePathID,
38 int numPaths, 38 int numPaths,
39 size_t gpuMemorySize, 39 size_t gpuMemorySize,
40 const SkStrokeRec&); 40 const SkStrokeRec&);
41 41
42 GrGLuint basePathID() const { return fBasePathID; } 42 GrGLuint basePathID() const { return fBasePathID; }
43 43
44 protected: 44 protected:
45 virtual void onInitPath(int index, const SkPath&) const SK_OVERRIDE; 45 virtual void onInitPath(int index, const SkPath&) const SK_OVERRIDE;
46 46
47 virtual void onRelease() SK_OVERRIDE; 47 virtual void onRelease() SK_OVERRIDE;
48 virtual void onAbandon() SK_OVERRIDE; 48 virtual void onAbandon() SK_OVERRIDE;
49 49
50 private: 50 private:
51 virtual size_t onGpuMemorySize() const SK_OVERRIDE { return fGpuMemorySize; } 51 virtual size_t onGpuMemorySize() const SK_OVERRIDE { return fGpuMemorySize; }
52 52
53 GrGLuint fBasePathID; 53 GrGLuint fBasePathID;
54 mutable size_t fGpuMemorySize; 54 mutable size_t fGpuMemorySize;
55 55
56 typedef GrPathRange INHERITED; 56 typedef GrPathRange INHERITED;
57 }; 57 };
58 58
59 #endif 59 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGLPathRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698