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

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

Issue 1298523003: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 years, 3 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/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 b8bb7c15e918813b7c5f836267b9a4e9e8e8776c..62b6dbc5f3c7fdfcb62f7e52f202f56ddcedef05 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -5066,6 +5066,24 @@ error::Error GLES2DecoderImpl::HandleBlendBarrierKHR(
return error::kNoError;
}
+error::Error GLES2DecoderImpl::HandleApplyScreenSpaceAntialiasingCHROMIUM(
+ uint32_t immediate_data_size,
+ const void* cmd_data) {
+ const gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM& c =
+ *static_cast<const gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM*>(
+ cmd_data);
+ (void)c;
+ if (!features().chromium_screen_space_antialiasing) {
+ LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION,
+ "glApplyScreenSpaceAntialiasingCHROMIUM",
+ "function not available");
+ return error::kNoError;
+ }
+
+ DoApplyScreenSpaceAntialiasingCHROMIUM();
+ return error::kNoError;
+}
+
bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
switch (cap) {
case GL_BLEND:

Powered by Google App Engine
This is Rietveld 408576698