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

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

Issue 272503009: store map ptr in GrGeometryBuffer base class (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address 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') | no next file » | 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 af6099353a5dc4bb53a9f107e3eefb1fbbabbf64..a13ad126ecc8343260a8b3068fd72a64a0b77e42 100644
--- a/src/gpu/gl/GrGLVertexBuffer.cpp
+++ b/src/gpu/gl/GrGLVertexBuffer.cpp
@@ -21,13 +21,12 @@ void GrGLVertexBuffer::onRelease() {
INHERITED::onRelease();
}
-
void GrGLVertexBuffer::onAbandon() {
fImpl.abandon();
INHERITED::onAbandon();
}
-void* GrGLVertexBuffer::map() {
+void* GrGLVertexBuffer::onMap() {
if (!this->wasDestroyed()) {
return fImpl.map(this->getGpuGL());
} else {
@@ -35,21 +34,13 @@ void* GrGLVertexBuffer::map() {
}
}
-void* GrGLVertexBuffer::mapPtr() const {
- return fImpl.mapPtr();
-}
-
-void GrGLVertexBuffer::unmap() {
+void GrGLVertexBuffer::onUnmap() {
if (!this->wasDestroyed()) {
fImpl.unmap(this->getGpuGL());
}
}
-bool GrGLVertexBuffer::isMapped() const {
- return fImpl.isMapped();
-}
-
-bool GrGLVertexBuffer::updateData(const void* src, size_t srcSizeInBytes) {
+bool GrGLVertexBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) {
if (!this->wasDestroyed()) {
return fImpl.updateData(this->getGpuGL(), src, srcSizeInBytes);
} else {
« no previous file with comments | « src/gpu/gl/GrGLVertexBuffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698