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

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

Issue 1949303003: Improve indexed gl state related GL commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tex
Patch Set: fix a DCHECK failure Created 4 years, 7 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
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 3a44730c40b37e49128c4a1692aac8dc3052fc90..ffd38d2a47a1359c4caed13191c75e9de89aabdf 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -26,6 +26,7 @@ class ErrorState;
class ErrorStateClient;
class FeatureInfo;
class Framebuffer;
+class IndexedBufferBindingHost;
class Logger;
class Program;
class Renderbuffer;
@@ -190,6 +191,7 @@ struct GPU_EXPORT ContextState {
void RestoreProgramBindings() const;
void RestoreRenderbufferBindings();
void RestoreTransformFeedbackBindings(const ContextState* prev_state);
+ void RestoreIndexedUniformBufferBindings(const ContextState* prev_state);
void RestoreTextureUnitBindings(
GLuint unit, const ContextState* prev_state) const;
@@ -283,6 +285,8 @@ struct GPU_EXPORT ContextState {
scoped_refptr<TransformFeedback> bound_transform_feedback;
+ scoped_refptr<IndexedBufferBindingHost> indexed_uniform_buffer_bindings;
+
// The values for each attrib.
std::vector<Vec4> attrib_values;
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698