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

Unified Diff: Source/web/tests/MockWebGraphicsContext3D.h

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
« no previous file with comments | « Source/web/tests/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/MockWebGraphicsContext3D.h
diff --git a/Source/web/tests/MockWebGraphicsContext3D.h b/Source/web/tests/MockWebGraphicsContext3D.h
index f53f21731413ff268ca91211a6b56a5c204fff7e..9c590f9ca8724b26614d22408d7e672bccf490cb 100644
--- a/Source/web/tests/MockWebGraphicsContext3D.h
+++ b/Source/web/tests/MockWebGraphicsContext3D.h
@@ -85,7 +85,7 @@ public:
virtual WGC3Denum checkFramebufferStatus(WGC3Denum target)
{
- return WebCore::GraphicsContext3D::FRAMEBUFFER_COMPLETE;
+ return GL_FRAMEBUFFER_COMPLETE;
}
virtual void clear(WGC3Dbitfield mask) { }
@@ -131,13 +131,13 @@ public:
virtual void getIntegerv(WGC3Denum pname, WGC3Dint* value)
{
- if (pname == WebCore::GraphicsContext3D::MAX_TEXTURE_SIZE)
+ if (pname == GL_MAX_TEXTURE_SIZE)
*value = 1024;
}
virtual void getProgramiv(WebGLId program, WGC3Denum pname, WGC3Dint* value)
{
- if (pname == WebCore::GraphicsContext3D::LINK_STATUS)
+ if (pname == GL_LINK_STATUS)
*value = 1;
}
@@ -146,7 +146,7 @@ public:
virtual void getShaderiv(WebGLId shader, WGC3Denum pname, WGC3Dint* value)
{
- if (pname == WebCore::GraphicsContext3D::COMPILE_STATUS)
+ if (pname == GL_COMPILE_STATUS)
*value = 1;
}
« no previous file with comments | « Source/web/tests/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698