summaryrefslogtreecommitdiff
path: root/chromium/gpu/command_buffer/common/gles2_cmd_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/gpu/command_buffer/common/gles2_cmd_utils.h')
-rw-r--r--chromium/gpu/command_buffer/common/gles2_cmd_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/gpu/command_buffer/common/gles2_cmd_utils.h b/chromium/gpu/command_buffer/common/gles2_cmd_utils.h
index b8619e61d37..59b5d96de8c 100644
--- a/chromium/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/chromium/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -132,6 +132,11 @@ class GLES2_UTILS_EXPORT GLES2Util {
static uint32 IndexToGLFaceTarget(int index);
+ static uint32 GetPreferredGLReadPixelsFormat(uint32 internal_format);
+
+ static uint32 GetPreferredGLReadPixelsType(
+ uint32 internal_format, uint32 texture_type);
+
// Returns a bitmask for the channels the given format supports.
// See ChannelBits.
static uint32 GetChannelsForFormat(int format);
@@ -193,6 +198,7 @@ class GLES2_UTILS_EXPORT ContextCreationAttribHelper {
bool buffer_preserved_;
bool share_resources_;
bool bind_generates_resource_;
+ bool fail_if_major_perf_caveat_;
};
} // namespace gles2