Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
| index 0ec433698eb200967e720a8baf3e32f7bff34357..bb505e9f9f9faf845a0f1dac2496413af9f381d5 100644 |
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
| @@ -138,6 +138,19 @@ private: |
| Member<WebGLFramebuffer> m_readFramebufferBinding; |
| }; |
| +// This class uses the color mask to prevents drawing to the alpha channel, if |
|
Ken Russell (switch to Gerrit)
2016/05/03 23:32:27
typo: prevents -> prevent
erikchen
2016/05/04 00:23:11
Done.
|
| +// the DrawingBuffer requires RGB emulation. |
| +class ScopedRGBEmulationColorMask { |
| +public: |
| + ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMask, DrawingBuffer*); |
| + ~ScopedRGBEmulationColorMask(); |
| + |
| +private: |
| + gpu::gles2::GLES2Interface* m_contextGL; |
| + GLboolean m_colorMask[4]; |
| + const bool m_requiresEmulation; |
| +}; |
| + |
| class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext { |
| public: |
| ~WebGLRenderingContextBase() override; |