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

Unified Diff: Source/web/tests/DrawingBufferTest.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
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | Source/web/tests/MockWebGraphicsContext3D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/DrawingBufferTest.cpp
diff --git a/Source/web/tests/DrawingBufferTest.cpp b/Source/web/tests/DrawingBufferTest.cpp
index dc8bd6971d0d2d6359001fb7fd4296ba5db5082a..6f127a36c956dd60074c3afdb45f0a4c92f31070 100644
--- a/Source/web/tests/DrawingBufferTest.cpp
+++ b/Source/web/tests/DrawingBufferTest.cpp
@@ -63,14 +63,14 @@ public:
virtual void bindTexture(WGC3Denum target, WebGLId texture)
{
- if (target == GraphicsContext3D::TEXTURE_2D) {
+ if (target == GL_TEXTURE_2D) {
m_boundTexture = texture;
}
}
virtual void texImage2D(WGC3Denum target, WGC3Dint level, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dint border, WGC3Denum format, WGC3Denum type, const void* pixels)
{
- if (target == GraphicsContext3D::TEXTURE_2D && !level) {
+ if (target == GL_TEXTURE_2D && !level) {
m_textureSizes.set(m_boundTexture, IntSize(width, height));
}
}
@@ -84,7 +84,7 @@ public:
virtual void produceTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailbox)
{
- ASSERT_EQ(target, GraphicsContext3D::TEXTURE_2D);
+ ASSERT_EQ(target, static_cast<WGC3Denum>(GL_TEXTURE_2D));
m_mostRecentlyProducedSize = m_textureSizes.get(m_boundTexture);
}
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | Source/web/tests/MockWebGraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698