#include "device/vr/vr_gl_util.h"
#include "ui/gfx/geometry/transform.h"
namespace vr {
std::array<float, 16> MatrixToGLArray(const gfx::Transform& transform) { … }
GLuint CompileShader(GLenum shader_type,
const std::string& shader_source,
std::string& error) { … }
GLuint CreateAndLinkProgram(GLuint vertext_shader_handle,
GLuint fragment_shader_handle,
std::string& error) { … }
void SetTexParameters(GLenum texture_type) { … }
void SetColorUniform(GLuint handle, SkColor c) { … }
void SetOpaqueColorUniform(GLuint handle, SkColor c) { … }
}