| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 #include "GrBufferObj.h" | 8 #include "GrBufferObj.h" |
| 10 | 9 |
| 11 void GrBufferObj::allocate(GrGLsizeiptr size, const GrGLchar *dataPtr) { | 10 void GrBufferObj::allocate(GrGLsizeiptr size, const GrGLchar *dataPtr) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 22 // TODO: w/ no dataPtr the data is unitialized - this could be tracked | 21 // TODO: w/ no dataPtr the data is unitialized - this could be tracked |
| 23 } | 22 } |
| 24 | 23 |
| 25 void GrBufferObj::deleteAction() { | 24 void GrBufferObj::deleteAction() { |
| 26 | 25 |
| 27 // buffers are automatically unmapped when deleted | 26 // buffers are automatically unmapped when deleted |
| 28 this->resetMapped(); | 27 this->resetMapped(); |
| 29 | 28 |
| 30 this->INHERITED::deleteAction(); | 29 this->INHERITED::deleteAction(); |
| 31 } | 30 } |
| OLD | NEW |