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

Unified Diff: Source/core/html/canvas/WebGLTexture.h

Issue 14860016: Implement OES_texture_float_linear and OES_texture_half_float_linear extensions in WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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: Source/core/html/canvas/WebGLTexture.h
diff --git a/Source/core/html/canvas/WebGLTexture.h b/Source/core/html/canvas/WebGLTexture.h
index d766c3f617ed17a544c68bebff104612405fbc39..cc1c8f2a3190c3a88c3a92e935b60f7e6e89029c 100644
--- a/Source/core/html/canvas/WebGLTexture.h
+++ b/Source/core/html/canvas/WebGLTexture.h
@@ -36,6 +36,11 @@ namespace WebCore {
class WebGLTexture : public WebGLSharedObject {
public:
+ enum TextureExtensionFlag {
+ NoTextureExtensionEnabled = 0,
+ TextureFloatLinearExtensionEnabled = 1 << 0,
+ TextureHalfFloatLinearExtensionEnabled = 1 << 1
+ };
virtual ~WebGLTexture();
static PassRefPtr<WebGLTexture> create(WebGLRenderingContext*);
@@ -65,7 +70,7 @@ public:
bool isNPOT() const;
// Determine if texture sampling should always return [0, 0, 0, 1] (OpenGL ES 2.0 Sec 3.8.2).
- bool needToUseBlackTexture() const;
+ bool needToUseBlackTexture(TextureExtensionFlag) const;
bool hasEverBeenBound() const { return object() && m_target; }
@@ -124,6 +129,8 @@ private:
bool m_isNPOT;
bool m_isComplete;
bool m_needToUseBlackTexture;
+ bool m_isFloatType;
+ bool m_isHalfFloatType;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698