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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp

Issue 1856933002: WebGL GL_RGB emulation to support IOSurfaces on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full client side implementation of GL_RGB emulation. Created 4 years, 8 months 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: third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
index aa333ff32c41745591b593415838723cd9eadab7..10c38f86e8c7ec776395bc4e0fbb4a30cff7c150 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
@@ -37,6 +37,7 @@ WebGLTexture* WebGLTexture::create(WebGLRenderingContextBase* ctx)
WebGLTexture::WebGLTexture(WebGLRenderingContextBase* ctx)
: WebGLSharedPlatform3DObject(ctx)
+ , m_colorFormat(0)
, m_target(0)
{
GLuint texture;
@@ -60,6 +61,13 @@ void WebGLTexture::setTarget(GLenum target)
m_target = target;
}
+void WebGLTexture::setColorFormat(GLenum format)
+{
+ if (!object())
+ return;
+ m_colorFormat = format;
+}
+
void WebGLTexture::deleteObjectImpl(gpu::gles2::GLES2Interface* gl)
{
gl->DeleteTextures(1, &m_object);

Powered by Google App Engine
This is Rietveld 408576698