| 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 #include "GrGLPath.h" | 9 #include "GrGLPath.h" |
| 10 #include "GrGLPathRendering.h" | 10 #include "GrGLPathRendering.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 // FIXME: try to account for stroking, without rasterizing the strok
e. | 329 // FIXME: try to account for stroking, without rasterizing the strok
e. |
| 330 fBounds.outset(stroke->getWidth(), stroke->getWidth()); | 330 fBounds.outset(stroke->getWidth(), stroke->getWidth()); |
| 331 } | 331 } |
| 332 } | 332 } |
| 333 | 333 |
| 334 this->registerWithCache(); | 334 this->registerWithCache(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 void GrGLPath::onRelease() { | 337 void GrGLPath::onRelease() { |
| 338 if (0 != fPathID && this->shouldFreeResources()) { | 338 if (0 != fPathID) { |
| 339 static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fP
athID, 1); | 339 static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fP
athID, 1); |
| 340 fPathID = 0; | 340 fPathID = 0; |
| 341 } | 341 } |
| 342 | 342 |
| 343 INHERITED::onRelease(); | 343 INHERITED::onRelease(); |
| 344 } | 344 } |
| 345 | 345 |
| 346 void GrGLPath::onAbandon() { | 346 void GrGLPath::onAbandon() { |
| 347 fPathID = 0; | 347 fPathID = 0; |
| 348 | 348 |
| 349 INHERITED::onAbandon(); | 349 INHERITED::onAbandon(); |
| 350 } | 350 } |
| OLD | NEW |