summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/context_state.h')
-rw-r--r--gpu/command_buffer/service/context_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index f9d4ff7..71bb8a5 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -266,6 +266,13 @@ struct GPU_EXPORT ContextState {
private:
void EnableDisable(GLenum pname, bool enable) const;
+ // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters
+ // user values; otherwise, set them to 0.
+ void UpdatePackParameters() const;
+ // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack
+ // parameters user values; otherwise, set them to 0.
+ void UpdateUnpackParameters() const;
+
FeatureInfo* feature_info_;
scoped_ptr<ErrorState> error_state_;
};