| 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 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 GrGLuint basePathID() const { return fBasePathID; } | 43 GrGLuint basePathID() const { return fBasePathID; } |
| 44 | 44 |
| 45 bool shouldStroke() const { return fShouldStroke; } | 45 bool shouldStroke() const { return fShouldStroke; } |
| 46 bool shouldFill() const { return fShouldFill; } | 46 bool shouldFill() const { return fShouldFill; } |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 void onInitPath(int index, const SkPath&) const override; | 49 void onInitPath(int index, const SkPath&) const override; |
| 50 | 50 |
| 51 void onRelease() override; | 51 void onRelease() override; |
| 52 void onAbandon() override; | 52 void onAbandon() override; |
| 53 | 53 bool refsWrappedResources() const override { return false; } |
| 54 private: | 54 private: |
| 55 void init(); | 55 void init(); |
| 56 size_t onGpuMemorySize() const override { return fGpuMemorySize; } | 56 size_t onGpuMemorySize() const override { return fGpuMemorySize; } |
| 57 | 57 |
| 58 const GrStrokeInfo fStroke; | 58 const GrStrokeInfo fStroke; |
| 59 GrGLuint fBasePathID; | 59 GrGLuint fBasePathID; |
| 60 mutable size_t fGpuMemorySize; | 60 mutable size_t fGpuMemorySize; |
| 61 bool fShouldStroke; | 61 bool fShouldStroke; |
| 62 bool fShouldFill; | 62 bool fShouldFill; |
| 63 | 63 |
| 64 typedef GrPathRange INHERITED; | 64 typedef GrPathRange INHERITED; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif | 67 #endif |
| OLD | NEW |