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

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

Issue 1120953002: WebGL 2: add read/write framebuffer binding points to related APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed zmo@'s feedback: WebGLFramebuffer::isBound need to be updated Created 5 years, 6 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/WebGLRenderingContextBase.h
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.h b/Source/core/html/canvas/WebGLRenderingContextBase.h
index f8e72ae00baa8859f1fd7fac8676a9e73fa36e94..0f6d7275e4c260c67cdaff6525afe92277df88d8 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.h
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.h
@@ -165,7 +165,7 @@ public:
void cullFace(GLenum mode);
void deleteBuffer(WebGLBuffer*);
- void deleteFramebuffer(WebGLFramebuffer*);
+ virtual void deleteFramebuffer(WebGLFramebuffer*);
void deleteProgram(WebGLProgram*);
void deleteRenderbuffer(WebGLRenderbuffer*);
void deleteShader(WebGLShader*);
@@ -776,7 +776,7 @@ protected:
bool isTexInternalFormatColorBufferCombinationValid(GLenum texInternalFormat, GLenum colorBufferFormat);
// Helper function to get the bound framebuffer's color buffer format.
- GLenum boundFramebufferColorFormat();
+ virtual GLenum boundFramebufferColorFormat();
// Helper function to verify limits on the length of uniform and attribute locations.
bool validateLocationLength(const char* functionName, const String&);
@@ -988,7 +988,7 @@ protected:
void setBackDrawBuffer(GLenum);
void setFramebuffer(GLenum, WebGLFramebuffer*);
- void restoreCurrentFramebuffer();
+ virtual void restoreCurrentFramebuffer();
void restoreCurrentTexture2D();
virtual void multisamplingChanged(bool) override;

Powered by Google App Engine
This is Rietveld 408576698