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

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

Issue 1135943002: Pull in various gpu/command_buffer fixes from chromium (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 405addd68f6c0ad6c1683eeef8eabce4722a9272..e2b65bf5d50001c5361ad5619f7dd7858b70aaa6 100644
--- a/gpu/command_buffer/service/context_state_autogen.h
+++ b/gpu/command_buffer/service/context_state_autogen.h
@@ -34,6 +34,8 @@ struct EnableFlags {
bool cached_stencil_test;
bool rasterizer_discard;
bool cached_rasterizer_discard;
+ bool primitive_restart_fixed_index;
+ bool cached_primitive_restart_fixed_index;
};
GLfloat blend_color_red;
@@ -158,6 +160,12 @@ inline void SetDeviceCapabilityState(GLenum cap, bool enable) {
return;
enable_flags.cached_rasterizer_discard = enable;
break;
+ case GL_PRIMITIVE_RESTART_FIXED_INDEX:
+ if (enable_flags.cached_primitive_restart_fixed_index == enable &&
+ !ignore_cached_state)
+ return;
+ enable_flags.cached_primitive_restart_fixed_index = enable;
+ break;
default:
NOTREACHED();
return;
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/context_state_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698