OLD | NEW |
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 Loading... |
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 |
OLD | NEW |