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

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

Issue 2535173002: Prevent implicit framebuffer clear from clobbering alpha in emulated RGB (Closed)
Patch Set: remove unnecessary std::list Created 4 years 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/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index bf622dc3b37fc80168880842099e99f7c0db8f96..9a17b3a119fe9a79d271ae4d409f94811f76e165 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -2576,7 +2576,7 @@ void WebGL2RenderingContextBase::drawArraysInstanced(GLenum mode,
return;
}
- ScopedRGBEmulationColorMask emulationColorMask(contextGL(), m_colorMask,
+ ScopedRGBEmulationColorMask emulationColorMask(this, m_colorMask,
m_drawingBuffer.get());
clearIfComposited();
contextGL()->DrawArraysInstancedANGLE(mode, first, count, instanceCount);
@@ -2597,7 +2597,7 @@ void WebGL2RenderingContextBase::drawElementsInstanced(GLenum mode,
return;
}
- ScopedRGBEmulationColorMask emulationColorMask(contextGL(), m_colorMask,
+ ScopedRGBEmulationColorMask emulationColorMask(this, m_colorMask,
m_drawingBuffer.get());
clearIfComposited();
contextGL()->DrawElementsInstancedANGLE(
@@ -2621,7 +2621,7 @@ void WebGL2RenderingContextBase::drawRangeElements(GLenum mode,
return;
}
- ScopedRGBEmulationColorMask emulationColorMask(contextGL(), m_colorMask,
+ ScopedRGBEmulationColorMask emulationColorMask(this, m_colorMask,
m_drawingBuffer.get());
clearIfComposited();
contextGL()->DrawRangeElements(
@@ -2634,7 +2634,7 @@ void WebGL2RenderingContextBase::drawBuffers(const Vector<GLenum>& buffers) {
if (isContextLost())
return;
- ScopedRGBEmulationColorMask emulationColorMask(contextGL(), m_colorMask,
+ ScopedRGBEmulationColorMask emulationColorMask(this, m_colorMask,
m_drawingBuffer.get());
GLsizei n = buffers.size();
const GLenum* bufs = buffers.data();
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_test_pages.py ('k') | third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698