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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: more changes Created 3 years, 11 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 1e30865884e393f5e5ef3c0016c19cf83426afdf..765beaeba9fa8c5d91f82079a2b2c0fd33e9ebfa 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -5125,6 +5125,20 @@ error::Error GLES2DecoderImpl::HandleOverlayPromotionHintCHROMIUM(
return error::kNoError;
}
+error::Error GLES2DecoderImpl::HandleSetDrawRectangleCHROMIUM(
+ uint32_t immediate_data_size,
+ const volatile void* cmd_data) {
+ const volatile gles2::cmds::SetDrawRectangleCHROMIUM& c =
+ *static_cast<const volatile gles2::cmds::SetDrawRectangleCHROMIUM*>(
+ cmd_data);
+ GLint x = static_cast<GLint>(c.x);
+ GLint y = static_cast<GLint>(c.y);
+ GLint width = static_cast<GLint>(c.width);
+ GLint height = static_cast<GLint>(c.height);
+ DoSetDrawRectangleCHROMIUM(x, y, width, height);
+ return error::kNoError;
+}
+
bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
switch (cap) {
case GL_BLEND:

Powered by Google App Engine
This is Rietveld 408576698