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

Side by Side Diff: gpu/command_buffer/service/mailbox_manager_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/mailbox_manager_impl.h" 5 #include "gpu/command_buffer/service/mailbox_manager_impl.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "gpu/command_buffer/service/texture_manager.h" 11 #include "gpu/command_buffer/service/texture_manager.h"
10 12
11 namespace gpu { 13 namespace gpu {
12 namespace gles2 { 14 namespace gles2 {
13 15
14 MailboxManagerImpl::MailboxManagerImpl() { 16 MailboxManagerImpl::MailboxManagerImpl() {
15 } 17 }
16 18
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 it != range.second; ++it) { 64 it != range.second; ++it) {
63 size_t count = mailbox_to_textures_.erase(it->second); 65 size_t count = mailbox_to_textures_.erase(it->second);
64 DCHECK(count == 1); 66 DCHECK(count == 1);
65 } 67 }
66 textures_to_mailboxes_.erase(range.first, range.second); 68 textures_to_mailboxes_.erase(range.first, range.second);
67 DCHECK_EQ(mailbox_to_textures_.size(), textures_to_mailboxes_.size()); 69 DCHECK_EQ(mailbox_to_textures_.size(), textures_to_mailboxes_.size());
68 } 70 }
69 71
70 } // namespace gles2 72 } // namespace gles2
71 } // namespace gpu 73 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_impl.h ('k') | gpu/command_buffer/service/mailbox_manager_sync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698