| Index: gpu/command_buffer/common/gles2_cmd_utils.cc
|
| diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| index 1d31f7040cbb235de74bc0e000b36b58d03e94c2..6a483f6f6afed11e3b477a2288e0e16b3ffcaafa 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| +++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| @@ -822,6 +822,28 @@ bool GLES2Util::ParseUniformName(
|
| return true;
|
| }
|
|
|
| +size_t GLES2Util::CalcClearBufferivDataCount(int buffer) {
|
| + switch (buffer) {
|
| + case GL_COLOR:
|
| + return 4;
|
| + case GL_STENCIL:
|
| + return 1;
|
| + default:
|
| + return 0;
|
| + }
|
| +}
|
| +
|
| +size_t GLES2Util::CalcClearBufferfvDataCount(int buffer) {
|
| + switch (buffer) {
|
| + case GL_COLOR:
|
| + return 4;
|
| + case GL_DEPTH:
|
| + return 1;
|
| + default:
|
| + return 0;
|
| + }
|
| +}
|
| +
|
| namespace {
|
|
|
| // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in
|
|
|