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

Unified Diff: gpu/command_buffer/client/client_context_state_impl_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/client/client_context_state_impl_autogen.h
diff --git a/gpu/command_buffer/client/client_context_state_impl_autogen.h b/gpu/command_buffer/client/client_context_state_impl_autogen.h
index d0ce722624332d05f79addfeedb175badea0fa73..036f92ccdc958291ac4f37ebf0d7326c821d33ac 100644
--- a/gpu/command_buffer/client/client_context_state_impl_autogen.h
+++ b/gpu/command_buffer/client/client_context_state_impl_autogen.h
@@ -22,7 +22,8 @@ ClientContextState::EnableFlags::EnableFlags()
sample_coverage(false),
scissor_test(false),
stencil_test(false),
- rasterizer_discard(false) {
+ rasterizer_discard(false),
+ primitive_restart_fixed_index(false) {
}
bool ClientContextState::SetCapabilityState(GLenum cap,
@@ -90,6 +91,12 @@ bool ClientContextState::SetCapabilityState(GLenum cap,
enable_flags.rasterizer_discard = enabled;
}
return true;
+ case GL_PRIMITIVE_RESTART_FIXED_INDEX:
+ if (enable_flags.primitive_restart_fixed_index != enabled) {
+ *changed = true;
+ enable_flags.primitive_restart_fixed_index = enabled;
+ }
+ return true;
default:
return false;
}
@@ -126,6 +133,9 @@ bool ClientContextState::GetEnabled(GLenum cap, bool* enabled) const {
case GL_RASTERIZER_DISCARD:
*enabled = enable_flags.rasterizer_discard;
return true;
+ case GL_PRIMITIVE_RESTART_FIXED_INDEX:
+ *enabled = enable_flags.primitive_restart_fixed_index;
+ return true;
default:
return false;
}
« no previous file with comments | « gpu/command_buffer/client/client_context_state_autogen.h ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698