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