| OLD | NEW |
| 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 "GrStrokeInfo.h" | 13 #include "GrStrokeInfo.h" |
| 14 #include "gl/GrGLTypes.h" | 14 #include "gl/GrGLTypes.h" |
| 15 | 15 |
| 16 class GrGLGpu; | 16 class GrGLGpu; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Currently this represents a range of GL_NV_path_rendering Path IDs. If we | 19 * Currently this represents a range of GL_NV_path_rendering Path IDs. If we |
| 20 * support other GL path extensions then this would have to have a type enum | 20 * support other GL path extensions then this would have to have a type enum |
| 21 * and/or be subclassed. | 21 * and/or be subclassed. |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 class GrGLPathRange : public GrPathRange { | 24 class GrGLPathRange : public GrPathRange { |
| 25 public: | 25 public: |
| 26 GrRenderTarget* arrgh() override { return NULL; } |
| 27 |
| 26 /** | 28 /** |
| 27 * Initialize a GL path range from a PathGenerator. This class will allocate | 29 * Initialize a GL path range from a PathGenerator. This class will allocate |
| 28 * the GPU path objects and initialize them lazily. | 30 * the GPU path objects and initialize them lazily. |
| 29 */ | 31 */ |
| 30 GrGLPathRange(GrGLGpu*, PathGenerator*, const GrStrokeInfo&); | 32 GrGLPathRange(GrGLGpu*, PathGenerator*, const GrStrokeInfo&); |
| 31 | 33 |
| 32 /** | 34 /** |
| 33 * Initialize a GL path range from an existing range of pre-initialized GPU | 35 * Initialize a GL path range from an existing range of pre-initialized GPU |
| 34 * path objects. This class assumes ownership of the GPU path objects and | 36 * path objects. This class assumes ownership of the GPU path objects and |
| 35 * will delete them when done. | 37 * will delete them when done. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 58 const GrStrokeInfo fStroke; | 60 const GrStrokeInfo fStroke; |
| 59 GrGLuint fBasePathID; | 61 GrGLuint fBasePathID; |
| 60 mutable size_t fGpuMemorySize; | 62 mutable size_t fGpuMemorySize; |
| 61 bool fShouldStroke; | 63 bool fShouldStroke; |
| 62 bool fShouldFill; | 64 bool fShouldFill; |
| 63 | 65 |
| 64 typedef GrPathRange INHERITED; | 66 typedef GrPathRange INHERITED; |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 #endif | 69 #endif |
| OLD | NEW |