#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
#define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
#include <stddef.h>
#include <stdint.h>
#include <limits>
#include <string>
#include "base/check.h"
#include "base/numerics/safe_math.h"
#include "gpu/command_buffer/common/gles2_utils_export.h"
namespace gpu {
namespace gles2 {
inline uint32_t ToGLuint(const void* ptr) { … }
template <typename T>
const volatile void* AddressAfterStruct(const volatile T& pod) { … }
template <typename RETURN_TYPE, typename COMMAND_TYPE>
RETURN_TYPE GetImmediateDataAs(const volatile COMMAND_TYPE& pod,
uint32_t size,
uint32_t immediate_data_size) { … }
struct GLES2_UTILS_EXPORT PixelStoreParams { … };
class GLES2_UTILS_EXPORT GLES2Util { … };
class GLES2_UTILS_EXPORT GLSLArrayName { … };
}
}
#endif