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

Side by Side Diff: gpu/command_buffer/service/memory_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 5 years 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/memory_program_cache.h" 5 #include "gpu/command_buffer/service/memory_program_cache.h"
6 6
7 #include <stddef.h>
8
7 #include "base/base64.h" 9 #include "base/base64.h"
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/command_line.h" 11 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
11 #include "base/sha1.h" 13 #include "base/sha1.h"
12 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
13 #include "gpu/command_buffer/common/constants.h" 15 #include "gpu/command_buffer/common/constants.h"
14 #include "gpu/command_buffer/service/disk_cache_proto.pb.h" 16 #include "gpu/command_buffer/service/disk_cache_proto.pb.h"
15 #include "gpu/command_buffer/service/gl_utils.h" 17 #include "gpu/command_buffer/service/gl_utils.h"
16 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 18 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 program_cache_->LinkedProgramCacheSuccess(program_hash); 433 program_cache_->LinkedProgramCacheSuccess(program_hash);
432 } 434 }
433 435
434 MemoryProgramCache::ProgramCacheValue::~ProgramCacheValue() { 436 MemoryProgramCache::ProgramCacheValue::~ProgramCacheValue() {
435 program_cache_->curr_size_bytes_ -= length_; 437 program_cache_->curr_size_bytes_ -= length_;
436 program_cache_->Evict(program_hash_); 438 program_cache_->Evict(program_hash_);
437 } 439 }
438 440
439 } // namespace gles2 441 } // namespace gles2
440 } // namespace gpu 442 } // namespace gpu
OLDNEW
« 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