summaryrefslogtreecommitdiffstats
path: root/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-07 16:10:47 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-07 16:10:47 +0000
commit9ec0f9c97357dd5b4dd9deae252f8d3633ad38a9 (patch)
tree061c0b2fb922a0e0f710d8399c6f45cbd5f2e8df /webkit/gpu/webgraphicscontext3d_in_process_impl.cc
parent93a99125d4826e560c9a51603279eae9a7390694 (diff)
downloadchromium_src-9ec0f9c97357dd5b4dd9deae252f8d3633ad38a9.zip
chromium_src-9ec0f9c97357dd5b4dd9deae252f8d3633ad38a9.tar.gz
chromium_src-9ec0f9c97357dd5b4dd9deae252f8d3633ad38a9.tar.bz2
Rewrite scoped_array<T> to scoped_ptr<T[]> in media/ and webkit/.
This changelist was automatically generated using a clang tool. BUG=171111 Review URL: https://codereview.chromium.org/13752002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu/webgraphicscontext3d_in_process_impl.cc')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index a810c1c..36ce3d2 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -40,9 +40,9 @@ struct WebGraphicsContext3DInProcessImpl::ShaderSourceEntry {
}
WGC3Denum type;
- scoped_array<char> source;
- scoped_array<char> log;
- scoped_array<char> translated_source;
+ scoped_ptr<char[]> source;
+ scoped_ptr<char[]> log;
+ scoped_ptr<char[]> translated_source;
bool is_valid;
};
@@ -1080,7 +1080,7 @@ bool WebGraphicsContext3DInProcessImpl::getActiveAttrib(
glGetProgramiv(program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &max_name_length);
if (max_name_length < 0)
return false;
- scoped_array<GLchar> name(new GLchar[max_name_length]);
+ scoped_ptr<GLchar[]> name(new GLchar[max_name_length]);
GLsizei length = 0;
GLint size = -1;
GLenum type = 0;
@@ -1102,7 +1102,7 @@ bool WebGraphicsContext3DInProcessImpl::getActiveUniform(
glGetProgramiv(program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &max_name_length);
if (max_name_length < 0)
return false;
- scoped_array<GLchar> name(new GLchar[max_name_length]);
+ scoped_ptr<GLchar[]> name(new GLchar[max_name_length]);
GLsizei length = 0;
GLint size = -1;
GLenum type = 0;
@@ -1202,7 +1202,7 @@ WebString WebGraphicsContext3DInProcessImpl::getProgramInfoLog(
glGetProgramiv(program, GL_INFO_LOG_LENGTH, &log_length);
if (!log_length)
return WebString();
- scoped_array<GLchar> log(new GLchar[log_length]);
+ scoped_ptr<GLchar[]> log(new GLchar[log_length]);
GLsizei returned_log_length;
glGetProgramInfoLog(program, log_length, &returned_log_length, log.get());
DCHECK(log_length == returned_log_length + 1);
@@ -1305,7 +1305,7 @@ WebString WebGraphicsContext3DInProcessImpl::getShaderInfoLog(WebGLId shader) {
glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &log_length);
if (log_length <= 1)
return WebString();
- scoped_array<GLchar> log(new GLchar[log_length]);
+ scoped_ptr<GLchar[]> log(new GLchar[log_length]);
GLsizei returned_log_length;
glGetShaderInfoLog(shader, log_length, &returned_log_length, log.get());
DCHECK(log_length == returned_log_length + 1);
@@ -1331,7 +1331,7 @@ WebString WebGraphicsContext3DInProcessImpl::getShaderSource(WebGLId shader) {
glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &log_length);
if (log_length <= 1)
return WebString();
- scoped_array<GLchar> log(new GLchar[log_length]);
+ scoped_ptr<GLchar[]> log(new GLchar[log_length]);
GLsizei returned_log_length;
glGetShaderSource(shader, log_length, &returned_log_length, log.get());
DCHECK(log_length == returned_log_length + 1);