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

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

Issue 1508953002: Implement helper functionalities for computing image size with ES3 settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 5f154c28a73eb90bcec864f3cee7399585da8f1e..e1fa4a4bb3c33d5f0f4cca98af2eb4727018ccc5 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -138,6 +138,11 @@ template <>
GPU_EXPORT void Vec4::SetValues<GLuint>(const GLuint* values);
struct GPU_EXPORT ContextState {
+ enum Dimension {
+ k2D,
+ k3D
+ };
+
ContextState(FeatureInfo* feature_info,
ErrorStateClient* error_state_client,
Logger* logger);
@@ -220,6 +225,9 @@ struct GPU_EXPORT ContextState {
void UnbindTexture(TextureRef* texture);
void UnbindSampler(Sampler* sampler);
+ PixelStoreParams GetPackParams();
+ PixelStoreParams GetUnpackParams(Dimension dimension);
+
#include "gpu/command_buffer/service/context_state_autogen.h"
EnableFlags enable_flags;

Powered by Google App Engine
This is Rietveld 408576698