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

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

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.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.h b/third_party/WebKit/Source/modules/webgl/WebGLTexture.h
index a71cb81389aef26cc32f8e5b27cbc3e56dcf975d..325194380bcdcd0d023c5b548aeaf0971ec9950b 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLTexture.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTexture.h
@@ -41,6 +41,10 @@ public:
GLenum getTarget() const { return m_target; }
+ void setColorFormat(GLenum);
+
+ GLenum getColorFormat() const { return m_colorFormat; }
+
static GLenum getValidFormatForInternalFormat(GLenum);
bool hasEverBeenBound() const { return object() && m_target; }
@@ -56,6 +60,7 @@ private:
int mapTargetToIndex(GLenum) const;
+ GLenum m_colorFormat;
GLenum m_target;
};

Powered by Google App Engine
This is Rietveld 408576698