Chromium Code Reviews

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

Issue 93873009: Moved GL enums from GraphicsContext3D to a more generic location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missed a couple of test files Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp
diff --git a/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp b/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp
index 98ed14993aa16a88b60342f3c33f64a20e4fbb3a..9392b9b079df63786e5a9e5620c2120653f59ac8 100644
--- a/Source/core/platform/graphics/filters/custom/CustomFilterMesh.cpp
+++ b/Source/core/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