| 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(),
|
|
|