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

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

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_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 1f961d1e64cbe2b17f67c50f1e32f28b698ad214..49b33baa0f5ee8585dbeb7d2a669118b54a7ccb7 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -5107,6 +5107,22 @@ GLES2DecoderImpl::HandleUniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate(
return error::kNoError;
}
+error::Error GLES2DecoderImpl::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);
+ DoSendOverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x,
+ display_y);
+ return error::kNoError;
+}
+
bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
switch (cap) {
case GL_BLEND:

Powered by Google App Engine
This is Rietveld 408576698