Index: gpu/command_buffer/client/gles2_implementation.cc |
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc |
index 59385241e5c89526420ceda1fd8c50d75fc050b1..64683fa0c79f38e0f8573f99bd758fd31a112196 100644 |
--- a/gpu/command_buffer/client/gles2_implementation.cc |
+++ b/gpu/command_buffer/client/gles2_implementation.cc |
@@ -851,6 +851,21 @@ void GLES2Implementation::DrawElements( |
CheckGLError(); |
} |
+void GLES2Implementation::DrawRangeElements( |
+ GLenum mode, GLuint start, GLuint end, |
+ GLsizei count, GLenum type, const void* indices) { |
+ GPU_CLIENT_SINGLE_THREAD_CHECK(); |
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDrawRangeElements(" |
+ << GLES2Util::GetStringDrawMode(mode) << ", " |
+ << start << ", " << end << ", " << count << ", " |
+ << GLES2Util::GetStringIndexType(type) << ", " |
+ << static_cast<const void*>(indices) << ")"); |
+ // TODO(zmo): mImplement client side data support. |
+ // crbug.com/461871 |
+ helper_->DrawRangeElements(mode, start, end, count, type, ToGLuint(indices)); |
+ CheckGLError(); |
+} |
+ |
void GLES2Implementation::Flush() { |
GPU_CLIENT_SINGLE_THREAD_CHECK(); |
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFlush()"); |