| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/program_cache.h" | 5 #include "gpu/command_buffer/service/program_cache.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 9 #include "gpu/command_buffer/service/shader_manager.h" | 11 #include "gpu/command_buffer/service/shader_manager.h" |
| 10 #include "third_party/angle/src/common/version.h" | 12 #include "third_party/angle/src/common/version.h" |
| 11 | 13 |
| 12 namespace gpu { | 14 namespace gpu { |
| 13 namespace gles2 { | 15 namespace gles2 { |
| 14 | 16 |
| 15 ProgramCache::ProgramCache() {} | 17 ProgramCache::ProgramCache() {} |
| 16 ProgramCache::~ProgramCache() {} | 18 ProgramCache::~ProgramCache() {} |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 155 } |
| 154 } | 156 } |
| 155 memcpy(&buffer[current_pos], &transform_feedback_buffer_mode, | 157 memcpy(&buffer[current_pos], &transform_feedback_buffer_mode, |
| 156 sizeof(transform_feedback_buffer_mode)); | 158 sizeof(transform_feedback_buffer_mode)); |
| 157 base::SHA1HashBytes(buffer.get(), | 159 base::SHA1HashBytes(buffer.get(), |
| 158 total_size, reinterpret_cast<unsigned char*>(result)); | 160 total_size, reinterpret_cast<unsigned char*>(result)); |
| 159 } | 161 } |
| 160 | 162 |
| 161 } // namespace gles2 | 163 } // namespace gles2 |
| 162 } // namespace gpu | 164 } // namespace gpu |
| OLD | NEW |