Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 13749004: Rewrite scoped_array<T> to scoped_ptr<T[]> in content/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/common_param_traits_unittest.cc ('k') | content/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 8484974a2e7d1dac53d9e042a0825fe208e5d3c1..90f7d9dd9d28de51ea8c2309071488526d56f074 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -999,7 +999,7 @@ bool WebGraphicsContext3DCommandBufferImpl::getActiveAttrib(
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]);
if (!name.get()) {
synthesizeGLError(GL_OUT_OF_MEMORY);
return false;
@@ -1025,7 +1025,7 @@ bool WebGraphicsContext3DCommandBufferImpl::getActiveUniform(
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]);
if (!name.get()) {
synthesizeGLError(GL_OUT_OF_MEMORY);
return false;
@@ -1093,7 +1093,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::getProgramInfoLog(
gl_->GetProgramiv(program, GL_INFO_LOG_LENGTH, &logLength);
if (!logLength)
return WebKit::WebString();
- scoped_array<GLchar> log(new GLchar[logLength]);
+ scoped_ptr<GLchar[]> log(new GLchar[logLength]);
if (!log.get())
return WebKit::WebString();
GLsizei returnedLogLength = 0;
@@ -1116,7 +1116,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::getShaderInfoLog(
gl_->GetShaderiv(shader, GL_INFO_LOG_LENGTH, &logLength);
if (!logLength)
return WebKit::WebString();
- scoped_array<GLchar> log(new GLchar[logLength]);
+ scoped_ptr<GLchar[]> log(new GLchar[logLength]);
if (!log.get())
return WebKit::WebString();
GLsizei returnedLogLength = 0;
@@ -1137,7 +1137,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::getShaderSource(
gl_->GetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &logLength);
if (!logLength)
return WebKit::WebString();
- scoped_array<GLchar> log(new GLchar[logLength]);
+ scoped_ptr<GLchar[]> log(new GLchar[logLength]);
if (!log.get())
return WebKit::WebString();
GLsizei returnedLogLength = 0;
@@ -1158,7 +1158,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::
shader, GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE, &logLength);
if (!logLength)
return WebKit::WebString();
- scoped_array<GLchar> log(new GLchar[logLength]);
+ scoped_ptr<GLchar[]> log(new GLchar[logLength]);
if (!log.get())
return WebKit::WebString();
GLsizei returnedLogLength = 0;
« no previous file with comments | « content/common/common_param_traits_unittest.cc ('k') | content/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698