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

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

Issue 93873009: Moved GL enums from GraphicsContext3D to a more generic location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed unneeded include 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/core/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp
diff --git a/Source/core/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp b/Source/core/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp
index 0c8857b1c599fb209b778b261fe579d54d945f68..0b0b160bc421337e47e6349db674db50967e6bd6 100644
--- a/Source/core/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp
+++ b/Source/core/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp
@@ -33,6 +33,7 @@
#include "core/platform/graphics/GraphicsContext3D.h"
#include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h"
+#include "third_party/khronos/GLES2/gl2.h"
Ken Russell (switch to Gerrit) 2013/12/06 23:45:20 Should be unnecessary.
namespace WebCore {
@@ -83,7 +84,7 @@ void CustomFilterGlobalContext::prepareContextIfNeeded()
if (!m_context)
return;
m_context->makeContextCurrent();
- m_context->enable(GraphicsContext3D::DEPTH_TEST);
+ m_context->enable(GL_DEPTH_TEST);
}
PassRefPtr<CustomFilterValidatedProgram> CustomFilterGlobalContext::getValidatedProgram(const CustomFilterProgramInfo& programInfo)

Powered by Google App Engine
This is Rietveld 408576698