Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: src/gpu/gl/GrGLIndexBuffer.cpp

Issue 275493004: Rename from "(un)lock" to "(un)map" for geometry buffers. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address Rob's comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLIndexBuffer.h ('k') | src/gpu/gl/GrGLVertexBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLIndexBuffer.cpp
diff --git a/src/gpu/gl/GrGLIndexBuffer.cpp b/src/gpu/gl/GrGLIndexBuffer.cpp
index 4e7f989ce0187e6dbd98faec89edeb30fcd6a2cd..38dd15d5f6aaf431140f2faaa75b7a65a3e5c94d 100644
--- a/src/gpu/gl/GrGLIndexBuffer.cpp
+++ b/src/gpu/gl/GrGLIndexBuffer.cpp
@@ -26,26 +26,26 @@ void GrGLIndexBuffer::onAbandon() {
INHERITED::onAbandon();
}
-void* GrGLIndexBuffer::lock() {
+void* GrGLIndexBuffer::map() {
if (!this->wasDestroyed()) {
- return fImpl.lock(this->getGpuGL());
+ return fImpl.map(this->getGpuGL());
} else {
return NULL;
}
}
-void* GrGLIndexBuffer::lockPtr() const {
- return fImpl.lockPtr();
+void* GrGLIndexBuffer::mapPtr() const {
+ return fImpl.mapPtr();
}
-void GrGLIndexBuffer::unlock() {
+void GrGLIndexBuffer::unmap() {
if (!this->wasDestroyed()) {
- fImpl.unlock(this->getGpuGL());
+ fImpl.unmap(this->getGpuGL());
}
}
-bool GrGLIndexBuffer::isLocked() const {
- return fImpl.isLocked();
+bool GrGLIndexBuffer::isMapped() const {
+ return fImpl.isMapped();
}
bool GrGLIndexBuffer::updateData(const void* src, size_t srcSizeInBytes) {
« no previous file with comments | « src/gpu/gl/GrGLIndexBuffer.h ('k') | src/gpu/gl/GrGLVertexBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698