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

Unified Diff: gpu/command_buffer/service/context_state.h

Issue 1700433002: Complete disable_gl_rgb_format workaround for Mali-400 GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logic fixes from PS1 review comments Created 4 years, 10 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 5a58916e93e8701864e8a8d210773499de42dd9a..868867808e00930d262a506e7327902d38125031 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -209,7 +209,7 @@ struct GPU_EXPORT ContextState {
cached_color_mask_green = green;
cached_color_mask_blue = blue;
cached_color_mask_alpha = alpha;
- glColorMask(red, green, blue, alpha);
+ glColorMask(red, green, blue, emulating_rgb_with_rgba ? false : alpha);
}
inline void SetDeviceDepthMask(GLboolean mask) {
@@ -294,6 +294,8 @@ struct GPU_EXPORT ContextState {
mutable bool fbo_binding_for_scissor_workaround_dirty;
+ bool emulating_rgb_with_rgba;
+
private:
void EnableDisable(GLenum pname, bool enable) const;
@@ -314,4 +316,3 @@ struct GPU_EXPORT ContextState {
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
-
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698