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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 5305005: Initialize destinations variables before calling GL functions... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « gpu/command_buffer/service/common_decoder.cc ('k') | media/tools/player_x11/gl_video_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.cc (revision 67161)
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy)
@@ -4313,7 +4313,7 @@
bucket->SetSize(0);
return error::kNoError;
}
- bucket->SetFromString(info->source());
+ bucket->SetFromString(info->source().c_str());
return error::kNoError;
}
@@ -4327,7 +4327,7 @@
if (!info) {
return error::kNoError;
}
- bucket->SetFromString(info->log_info());
+ bucket->SetFromString(info->log_info().c_str());
return error::kNoError;
}
@@ -4342,7 +4342,7 @@
bucket->SetSize(0);
return error::kNoError;
}
- bucket->SetFromString(info->log_info());
+ bucket->SetFromString(info->log_info().c_str());
return error::kNoError;
}
@@ -5739,7 +5739,7 @@
result->size = uniform_info->size;
result->type = uniform_info->type;
Bucket* bucket = CreateBucket(name_bucket_id);
- bucket->SetFromString(uniform_info->name);
+ bucket->SetFromString(uniform_info->name.c_str());
return error::kNoError;
}
@@ -5773,7 +5773,7 @@
result->size = attrib_info->size;
result->type = attrib_info->type;
Bucket* bucket = CreateBucket(name_bucket_id);
- bucket->SetFromString(attrib_info->name);
+ bucket->SetFromString(attrib_info->name.c_str());
return error::kNoError;
}
« no previous file with comments | « gpu/command_buffer/service/common_decoder.cc ('k') | media/tools/player_x11/gl_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698