| 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 #include "GrGLPathRange.h" | 9 #include "GrGLPathRange.h" |
| 10 #include "GrGLPath.h" | 10 #include "GrGLPath.h" |
| 11 #include "GrGLPathRendering.h" | 11 #include "GrGLPathRendering.h" |
| 12 #include "GrGpuGL.h" | 12 #include "GrGLGpu.h" |
| 13 | 13 |
| 14 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, PathGenerator* pathGenerator, const S
kStrokeRec& stroke) | 14 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, PathGenerator* pathGenerator, const S
kStrokeRec& stroke) |
| 15 : INHERITED(gpu, pathGenerator, stroke), | 15 : INHERITED(gpu, pathGenerator, stroke), |
| 16 fBasePathID(gpu->glPathRendering()->genPaths(this->getNumPaths())), | 16 fBasePathID(gpu->glPathRendering()->genPaths(this->getNumPaths())), |
| 17 fGpuMemorySize(0) { | 17 fGpuMemorySize(0) { |
| 18 this->registerWithCache(); | 18 this->registerWithCache(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, | 21 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, |
| 22 GrGLuint basePathID, | 22 GrGLuint basePathID, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 INHERITED::onRelease(); | 59 INHERITED::onRelease(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void GrGLPathRange::onAbandon() { | 62 void GrGLPathRange::onAbandon() { |
| 63 fBasePathID = 0; | 63 fBasePathID = 0; |
| 64 | 64 |
| 65 INHERITED::onAbandon(); | 65 INHERITED::onAbandon(); |
| 66 } | 66 } |
| OLD | NEW |