OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file defines constants and functions for the Pepper gles2 command | 5 // This file defines constants and functions for the Pepper gles2 command |
6 // buffers that fall outside the scope of OpenGL ES 2.0 | 6 // buffers that fall outside the scope of OpenGL ES 2.0 |
7 | 7 |
8 #ifndef GPU_GLES2_GLES2_COMMAND_BUFFER_H_ | 8 #ifndef GPU_GLES2_GLES2_COMMAND_BUFFER_H_ |
9 #define GPU_GLES2_GLES2_COMMAND_BUFFER_H_ | 9 #define GPU_GLES2_GLES2_COMMAND_BUFFER_H_ |
10 | 10 |
11 // constants for CommandBufferEnable command. | 11 // constants for CommandBufferEnable command. |
12 #define PEPPER3D_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS \ | 12 #define PEPPER3D_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS \ |
13 "pepper3d_allow_buffers_on_multiple_targets" | 13 "pepper3d_allow_buffers_on_multiple_targets" |
14 // TODO(gman): remove this | 14 // TODO(gman): remove this |
15 #define PEPPER3D_SKIP_GLSL_TRANSLATION \ | 15 #define PEPPER3D_SKIP_GLSL_TRANSLATION \ |
16 "pepper3d_skip_glsl_translation" | 16 "pepper3d_skip_glsl_translation" |
17 | 17 |
| 18 // TODO(gman): move this somewhere else. |
| 19 #ifndef GL_READ_ONLY |
| 20 #define GL_READ_ONLY 0x88B8 |
| 21 #endif |
| 22 #ifndef GL_WRITE_ONLY |
| 23 #define GL_WRITE_ONLY 0x88B9 |
| 24 #endif |
| 25 |
18 #endif // GPU_GLES2_GLES2_COMMAND_BUFFER_H_ | 26 #endif // GPU_GLES2_GLES2_COMMAND_BUFFER_H_ |
19 | 27 |
20 | 28 |
21 | 29 |
22 | 30 |
OLD | NEW |