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

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

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase for commit Created 5 years 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/gles2_cmd_decoder_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
index 30a08daafe5c2cd77902304ab497f31de44351ea..badfbcd5cad4868a668452af5a999bf2c76d9966 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -4995,6 +4995,29 @@ error::Error GLES2DecoderImpl::HandlePathStencilFuncCHROMIUM(
return error::kNoError;
}
+error::Error GLES2DecoderImpl::HandleCoverageModulationCHROMIUM(
+ uint32_t immediate_data_size,
+ const void* cmd_data) {
+ const gles2::cmds::CoverageModulationCHROMIUM& c =
+ *static_cast<const gles2::cmds::CoverageModulationCHROMIUM*>(cmd_data);
+ (void)c;
+ if (!features().chromium_framebuffer_mixed_samples) {
+ return error::kUnknownCommand;
+ }
+
+ GLenum components = static_cast<GLenum>(c.components);
+ if (!validators_->coverage_modulation_components.IsValid(components)) {
+ LOCAL_SET_GL_ERROR_INVALID_ENUM("glCoverageModulationCHROMIUM", components,
+ "components");
+ return error::kNoError;
+ }
+ if (state_.coverage_modulation != components) {
+ state_.coverage_modulation = components;
+ glCoverageModulationNV(components);
+ }
+ return error::kNoError;
+}
+
error::Error GLES2DecoderImpl::HandleBlendBarrierKHR(
uint32_t immediate_data_size,
const void* cmd_data) {
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698