| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 GrGLPath_DEFINED | 9 #ifndef GrGLPath_DEFINED |
| 10 #define GrGLPath_DEFINED | 10 #define GrGLPath_DEFINED |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 | 35 |
| 36 GrGLPath(GrGLGpu* gpu, const SkPath& path, const GrStrokeInfo& stroke); | 36 GrGLPath(GrGLGpu* gpu, const SkPath& path, const GrStrokeInfo& stroke); |
| 37 GrGLuint pathID() const { return fPathID; } | 37 GrGLuint pathID() const { return fPathID; } |
| 38 | 38 |
| 39 bool shouldStroke() const { return fShouldStroke; } | 39 bool shouldStroke() const { return fShouldStroke; } |
| 40 bool shouldFill() const { return fShouldFill; } | 40 bool shouldFill() const { return fShouldFill; } |
| 41 protected: | 41 protected: |
| 42 void onRelease() override; | 42 void onRelease() override; |
| 43 void onAbandon() override; | 43 void onAbandon() override; |
| 44 | 44 bool refsWrappedResources() const override { return false; } |
| 45 private: | 45 private: |
| 46 // TODO: Figure out how to get an approximate size of the path in Gpu memory
. | 46 // TODO: Figure out how to get an approximate size of the path in Gpu memory
. |
| 47 size_t onGpuMemorySize() const override { return 100; } | 47 size_t onGpuMemorySize() const override { return 100; } |
| 48 | 48 |
| 49 GrGLuint fPathID; | 49 GrGLuint fPathID; |
| 50 bool fShouldStroke; | 50 bool fShouldStroke; |
| 51 bool fShouldFill; | 51 bool fShouldFill; |
| 52 | 52 |
| 53 typedef GrPath INHERITED; | 53 typedef GrPath INHERITED; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif | 56 #endif |
| OLD | NEW |