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

Side by Side Diff: gpu/command_buffer/service/program_cache.cc

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/program_cache.h ('k') | gpu/command_buffer/service/program_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698