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

Unified Diff: Source/platform/graphics/filters/custom/CustomFilterMesh.cpp

Issue 106503003: Changed GL enums from GraphicsContext3D to standard versions (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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: Source/platform/graphics/filters/custom/CustomFilterMesh.cpp
diff --git a/Source/platform/graphics/filters/custom/CustomFilterMesh.cpp b/Source/platform/graphics/filters/custom/CustomFilterMesh.cpp
index 3ca8cb8977c5233225354b45571aaa2ad3668aa3..cb4c59cfc374a363bb239d817bf8d0a2999decb1 100644
--- a/Source/platform/graphics/filters/custom/CustomFilterMesh.cpp
+++ b/Source/platform/graphics/filters/custom/CustomFilterMesh.cpp
@@ -50,12 +50,12 @@ CustomFilterMesh::CustomFilterMesh(GraphicsContext3D* context, unsigned columns,
m_context->makeContextCurrent();
m_verticesBufferObject = m_context->createBuffer();
- m_context->bindBuffer(GraphicsContext3D::ARRAY_BUFFER, m_verticesBufferObject);
- m_context->bufferData(GraphicsContext3D::ARRAY_BUFFER, generator.vertices().size() * sizeof(float), generator.vertices().data(), GraphicsContext3D::STATIC_DRAW);
+ m_context->bindBuffer(GL_ARRAY_BUFFER, m_verticesBufferObject);
+ m_context->bufferData(GL_ARRAY_BUFFER, generator.vertices().size() * sizeof(float), generator.vertices().data(), GL_STATIC_DRAW);
m_elementsBufferObject = m_context->createBuffer();
- m_context->bindBuffer(GraphicsContext3D::ELEMENT_ARRAY_BUFFER, m_elementsBufferObject);
- m_context->bufferData(GraphicsContext3D::ELEMENT_ARRAY_BUFFER, generator.indices().size() * sizeof(uint16_t), generator.indices().data(), GraphicsContext3D::STATIC_DRAW);
+ m_context->bindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_elementsBufferObject);
+ m_context->bufferData(GL_ELEMENT_ARRAY_BUFFER, generator.indices().size() * sizeof(uint16_t), generator.indices().data(), GL_STATIC_DRAW);
}
CustomFilterMesh::~CustomFilterMesh()

Powered by Google App Engine
This is Rietveld 408576698