Index: android_webview/browser/scoped_app_gl_state_restore.cc |
diff --git a/android_webview/browser/scoped_app_gl_state_restore.cc b/android_webview/browser/scoped_app_gl_state_restore.cc |
index a36e061cca559587c9ee0087e4b4bf7cf76bd967..43bd8aa142cdc728c15cea4d4821f07f44a89b00 100644 |
--- a/android_webview/browser/scoped_app_gl_state_restore.cc |
+++ b/android_webview/browser/scoped_app_gl_state_restore.cc |
@@ -273,7 +273,7 @@ ScopedAppGLStateRestoreImpl::ScopedAppGLStateRestoreImpl( |
glBindVertexArrayOES(0); |
} |
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(vertex_attrib_); ++i) { |
+ for (size_t i = 0; i < arraysize(vertex_attrib_); ++i) { |
glGetVertexAttribiv( |
i, GL_VERTEX_ATTRIB_ARRAY_ENABLED, &vertex_attrib_[i].enabled); |
glGetVertexAttribiv( |
@@ -309,7 +309,7 @@ ScopedAppGLStateRestoreImpl::~ScopedAppGLStateRestoreImpl() { |
if (g_supports_oes_vertex_array_object) |
glBindVertexArrayOES(0); |
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(vertex_attrib_); ++i) { |
+ for (size_t i = 0; i < arraysize(vertex_attrib_); ++i) { |
glBindBuffer(GL_ARRAY_BUFFER, |
vertex_attrib_[i].vertex_attrib_array_buffer_binding); |
glVertexAttribPointer(i, |