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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc

Issue 2559523002: Send overlay promotion hints from to GLStreamTextureImage. (Closed)
Patch Set: reverted media Created 4 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_passthrough_handlers_autogen.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
index 6f3935fa187b1465cba240030dd98a714faa14a9..3e595c19d633e7dc933f8d4414985961e3153deb 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
@@ -4130,5 +4130,25 @@ error::Error GLES2DecoderPassthroughImpl::
return error::kNoError;
}
+error::Error
+GLES2DecoderPassthroughImpl::HandleSendOverlayPromotionHintCHROMIUM(
+ uint32_t immediate_data_size,
+ const volatile void* cmd_data) {
+ const volatile gles2::cmds::SendOverlayPromotionHintCHROMIUM& c =
+ *static_cast<
+ const volatile gles2::cmds::SendOverlayPromotionHintCHROMIUM*>(
+ cmd_data);
+ GLuint texture = c.texture;
+ GLboolean promotion_hint = static_cast<GLboolean>(c.promotion_hint);
+ GLint display_x = static_cast<GLint>(c.display_x);
+ GLint display_y = static_cast<GLint>(c.display_y);
+ error::Error error = DoSendOverlayPromotionHintCHROMIUM(
+ texture, promotion_hint, display_x, display_y);
+ if (error != error::kNoError) {
+ return error;
+ }
+ return error::kNoError;
+}
+
} // namespace gles2
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698