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

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

Issue 1000483002: Added GLES3 Capabilities to the Command Buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed PRIMITIVE_RESTART_FIXED_INDEX, since that's apparently only in desktop GL 4.3+ Created 5 years, 9 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: gpu/command_buffer/service/context_state_autogen.h
diff --git a/gpu/command_buffer/service/context_state_autogen.h b/gpu/command_buffer/service/context_state_autogen.h
index fcae244ca8b86659ae36d40b78518d50611ddf1d..405addd68f6c0ad6c1683eeef8eabce4722a9272 100644
--- a/gpu/command_buffer/service/context_state_autogen.h
+++ b/gpu/command_buffer/service/context_state_autogen.h
@@ -32,6 +32,8 @@ struct EnableFlags {
bool cached_scissor_test;
bool stencil_test;
bool cached_stencil_test;
+ bool rasterizer_discard;
+ bool cached_rasterizer_discard;
};
GLfloat blend_color_red;
@@ -150,6 +152,12 @@ inline void SetDeviceCapabilityState(GLenum cap, bool enable) {
return;
enable_flags.cached_stencil_test = enable;
break;
+ case GL_RASTERIZER_DISCARD:
+ if (enable_flags.cached_rasterizer_discard == enable &&
+ !ignore_cached_state)
+ return;
+ enable_flags.cached_rasterizer_discard = enable;
+ break;
default:
NOTREACHED();
return;

Powered by Google App Engine
This is Rietveld 408576698