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

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

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues 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/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_channel.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 90f7d9dd9d28de51ea8c2309071488526d56f074..562f365401704d987cb1dee3f7aa6fb5fef2db83 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -1000,7 +1000,7 @@ bool WebGraphicsContext3DCommandBufferImpl::getActiveAttrib(
if (max_name_length < 0)
return false;
scoped_ptr<GLchar[]> name(new GLchar[max_name_length]);
- if (!name.get()) {
+ if (!name) {
synthesizeGLError(GL_OUT_OF_MEMORY);
return false;
}
@@ -1026,7 +1026,7 @@ bool WebGraphicsContext3DCommandBufferImpl::getActiveUniform(
if (max_name_length < 0)
return false;
scoped_ptr<GLchar[]> name(new GLchar[max_name_length]);
- if (!name.get()) {
+ if (!name) {
synthesizeGLError(GL_OUT_OF_MEMORY);
return false;
}
@@ -1094,7 +1094,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::getProgramInfoLog(
if (!logLength)
return WebKit::WebString();
scoped_ptr<GLchar[]> log(new GLchar[logLength]);
- if (!log.get())
+ if (!log)
return WebKit::WebString();
GLsizei returnedLogLength = 0;
gl_->GetProgramInfoLog(
@@ -1117,7 +1117,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::getShaderInfoLog(
if (!logLength)
return WebKit::WebString();
scoped_ptr<GLchar[]> log(new GLchar[logLength]);
- if (!log.get())
+ if (!log)
return WebKit::WebString();
GLsizei returnedLogLength = 0;
gl_->GetShaderInfoLog(
@@ -1138,7 +1138,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::getShaderSource(
if (!logLength)
return WebKit::WebString();
scoped_ptr<GLchar[]> log(new GLchar[logLength]);
- if (!log.get())
+ if (!log)
return WebKit::WebString();
GLsizei returnedLogLength = 0;
gl_->GetShaderSource(
@@ -1159,7 +1159,7 @@ WebKit::WebString WebGraphicsContext3DCommandBufferImpl::
if (!logLength)
return WebKit::WebString();
scoped_ptr<GLchar[]> log(new GLchar[logLength]);
- if (!log.get())
+ if (!log)
return WebKit::WebString();
GLsizei returnedLogLength = 0;
gl_->GetTranslatedShaderSourceANGLE(
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698