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

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

Issue 12533007: Use vertex array objects on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use vertex array objects on core profiles. Created 7 years, 9 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
Index: src/gpu/gl/GrGLBufferImpl.cpp
===================================================================
--- src/gpu/gl/GrGLBufferImpl.cpp (revision 8015)
+++ src/gpu/gl/GrGLBufferImpl.cpp (working copy)
@@ -57,12 +57,11 @@
void GrGLBufferImpl::bind(GrGpuGL* gpu) const {
VALIDATE();
- GL_CALL(gpu, BindBuffer(fBufferType, fDesc.fID));
if (GR_GL_ARRAY_BUFFER == fBufferType) {
- gpu->notifyVertexBufferBind(fDesc.fID);
+ gpu->bindVertexBuffer(fDesc.fID);
} else {
GrAssert(GR_GL_ELEMENT_ARRAY_BUFFER == fBufferType);
- gpu->notifyIndexBufferBind(fDesc.fID);
+ gpu->bindIndexBufferAndDefaultVertexArray(fDesc.fID);
}
}
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/gl/GrGLShaderBuilder.cpp » ('j') | src/gpu/gl/GrGpuGL.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698