summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2/gles2_command_buffer.h
blob: 3f6b39d67283c3afea0fb3c4551f7ffb126de716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file defines constants and functions for the Pepper gles2 command
// buffers that fall outside the scope of OpenGL ES 2.0

#ifndef GPU_GLES2_GLES2_COMMAND_BUFFER_H_
#define GPU_GLES2_GLES2_COMMAND_BUFFER_H_

// constants for CommandBufferEnable command.
#define PEPPER3D_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS \
    "pepper3d_allow_buffers_on_multiple_targets"
// TODO(gman): remove this
#define PEPPER3D_SKIP_GLSL_TRANSLATION \
    "pepper3d_skip_glsl_translation"

// TODO(gman): move this somewhere else.
#ifndef GL_READ_ONLY
#define GL_READ_ONLY 0x88B8
#endif
#ifndef GL_WRITE_ONLY
#define GL_WRITE_ONLY 0x88B9
#endif
#ifndef GL_BGRA_EXT
#define GL_BGRA_EXT 0x80E1
#endif
#ifndef GL_HALF_FLOAT_OES
#define GL_HALF_FLOAT_OES 0x8D61
#endif

#endif  // GPU_GLES2_GLES2_COMMAND_BUFFER_H_