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

Unified Diff: gpu/command_buffer/client/client_context_state.h

Issue 2558933003: Cache GL's viewport on the GPU command buffer client side. (Closed)
Patch Set: fix 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
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/client_context_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/client_context_state.h
diff --git a/gpu/command_buffer/client/client_context_state.h b/gpu/command_buffer/client/client_context_state.h
index 45cd14b40a850a342889153859af15e761152585..e9f5ad15f3141cef4149dbea80f944be86dbf96b 100644
--- a/gpu/command_buffer/client/client_context_state.h
+++ b/gpu/command_buffer/client/client_context_state.h
@@ -26,9 +26,17 @@ struct GLES2_IMPL_EXPORT ClientContextState {
// 'changed' will be true if the state was different from 'enabled.
bool SetCapabilityState(GLenum cap, bool enabled, bool* changed);
+ // Cache the user's valid viewport.
+ void SetViewport(GLint x, GLint y, GLsizei width, GLsizei height);
+
#include "gpu/command_buffer/client/client_context_state_autogen.h"
EnableFlags enable_flags;
+
+ GLint viewport_x = 0;
+ GLint viewport_y = 0;
+ GLsizei viewport_width = 0;
+ GLsizei viewport_height = 0;
};
} // namespace gles2
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/client_context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698