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

Unified Diff: src/gpu/gl/GrGLVertexBuffer.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/GrGLVertexBuffer.h ('k') | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLVertexBuffer.cpp
diff --git a/src/gpu/gl/GrGLVertexBuffer.cpp b/src/gpu/gl/GrGLVertexBuffer.cpp
index 8bfe1f0c96341dfd9628db6619eefc1f07c19482..af6099353a5dc4bb53a9f107e3eefb1fbbabbf64 100644
--- a/src/gpu/gl/GrGLVertexBuffer.cpp
+++ b/src/gpu/gl/GrGLVertexBuffer.cpp
@@ -27,26 +27,26 @@ void GrGLVertexBuffer::onAbandon() {
INHERITED::onAbandon();
}
-void* GrGLVertexBuffer::lock() {
+void* GrGLVertexBuffer::map() {
if (!this->wasDestroyed()) {
- return fImpl.lock(this->getGpuGL());
+ return fImpl.map(this->getGpuGL());
} else {
return NULL;
}
}
-void* GrGLVertexBuffer::lockPtr() const {
- return fImpl.lockPtr();
+void* GrGLVertexBuffer::mapPtr() const {
+ return fImpl.mapPtr();
}
-void GrGLVertexBuffer::unlock() {
+void GrGLVertexBuffer::unmap() {
if (!this->wasDestroyed()) {
- fImpl.unlock(this->getGpuGL());
+ fImpl.unmap(this->getGpuGL());
}
}
-bool GrGLVertexBuffer::isLocked() const {
- return fImpl.isLocked();
+bool GrGLVertexBuffer::isMapped() const {
+ return fImpl.isMapped();
}
bool GrGLVertexBuffer::updateData(const void* src, size_t srcSizeInBytes) {
« no previous file with comments | « src/gpu/gl/GrGLVertexBuffer.h ('k') | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698