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

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

Issue 13454036: Rewrite scoped_array<T> to scoped_ptr<T[]> in gpu/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yikes 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
Index: gpu/command_buffer/service/memory_program_cache.cc
diff --git a/gpu/command_buffer/service/memory_program_cache.cc b/gpu/command_buffer/service/memory_program_cache.cc
index 32db0c71761dd6b5a242755f27528d33707ebac2..84ae7ba1af50f601c4d2c480c5a157bfad41fbd0 100644
--- a/gpu/command_buffer/service/memory_program_cache.cc
+++ b/gpu/command_buffer/service/memory_program_cache.cc
@@ -136,7 +136,7 @@ void MemoryProgramCache::SaveLinkedProgram(
if (length == 0 || static_cast<unsigned int>(length) > max_size_bytes_) {
return;
}
- scoped_array<char> binary(new char[length]);
+ scoped_ptr<char[]> binary(new char[length]);
glGetProgramBinary(program,
length,
NULL,
@@ -252,7 +252,7 @@ void MemoryProgramCache::LoadProgram(const std::string& program) {
&fragment_uniforms);
}
- scoped_array<char> binary(new char[proto->program().length()]);
+ scoped_ptr<char[]> binary(new char[proto->program().length()]);
memcpy(binary.get(), proto->program().c_str(), proto->program().length());
store_[proto->sha()] = new ProgramCacheValue(proto->program().length(),
« no previous file with comments | « gpu/command_buffer/service/memory_program_cache.h ('k') | gpu/command_buffer/service/memory_program_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698