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

Unified Diff: gpu/command_buffer/client/client_context_state_impl_autogen.h

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/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 cff14f7a82c60ca86e333338415c9dbcf3e98b94..d0ce722624332d05f79addfeedb175badea0fa73 100644
--- a/gpu/command_buffer/client/client_context_state_impl_autogen.h
+++ b/gpu/command_buffer/client/client_context_state_impl_autogen.h
@@ -21,7 +21,8 @@ ClientContextState::EnableFlags::EnableFlags()
sample_alpha_to_coverage(false),
sample_coverage(false),
scissor_test(false),
- stencil_test(false) {
+ stencil_test(false),
+ rasterizer_discard(false) {
}
bool ClientContextState::SetCapabilityState(GLenum cap,
@@ -83,6 +84,12 @@ bool ClientContextState::SetCapabilityState(GLenum cap,
enable_flags.stencil_test = enabled;
}
return true;
+ case GL_RASTERIZER_DISCARD:
+ if (enable_flags.rasterizer_discard != enabled) {
+ *changed = true;
+ enable_flags.rasterizer_discard = enabled;
+ }
+ return true;
default:
return false;
}
@@ -116,6 +123,9 @@ bool ClientContextState::GetEnabled(GLenum cap, bool* enabled) const {
case GL_STENCIL_TEST:
*enabled = enable_flags.stencil_test;
return true;
+ case GL_RASTERIZER_DISCARD:
+ *enabled = enable_flags.rasterizer_discard;
+ return true;
default:
return false;
}
« no previous file with comments | « gpu/command_buffer/client/client_context_state_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698