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_sync.h" | 5 #include "gpu/command_buffer/service/mailbox_manager_sync.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <queue> | 10 #include <queue> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return it->second; | 159 return it->second; |
160 } | 160 } |
161 return NULL; | 161 return NULL; |
162 } | 162 } |
163 | 163 |
164 MailboxManagerSync::TextureGroupRef::TextureGroupRef(unsigned version, | 164 MailboxManagerSync::TextureGroupRef::TextureGroupRef(unsigned version, |
165 TextureGroup* group) | 165 TextureGroup* group) |
166 : version(version), group(group) { | 166 : version(version), group(group) { |
167 } | 167 } |
168 | 168 |
| 169 MailboxManagerSync::TextureGroupRef::TextureGroupRef( |
| 170 const TextureGroupRef& other) = default; |
| 171 |
169 MailboxManagerSync::TextureGroupRef::~TextureGroupRef() { | 172 MailboxManagerSync::TextureGroupRef::~TextureGroupRef() { |
170 } | 173 } |
171 | 174 |
172 MailboxManagerSync::MailboxManagerSync() { | 175 MailboxManagerSync::MailboxManagerSync() { |
173 } | 176 } |
174 | 177 |
175 MailboxManagerSync::~MailboxManagerSync() { | 178 MailboxManagerSync::~MailboxManagerSync() { |
176 DCHECK_EQ(0U, texture_to_group_.size()); | 179 DCHECK_EQ(0U, texture_to_group_.size()); |
177 } | 180 } |
178 | 181 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 334 |
332 if (!needs_update.empty()) { | 335 if (!needs_update.empty()) { |
333 for (const TextureUpdatePair& pair : needs_update) { | 336 for (const TextureUpdatePair& pair : needs_update) { |
334 pair.second.UpdateTexture(pair.first); | 337 pair.second.UpdateTexture(pair.first); |
335 } | 338 } |
336 } | 339 } |
337 } | 340 } |
338 | 341 |
339 } // namespace gles2 | 342 } // namespace gles2 |
340 } // namespace gpu | 343 } // namespace gpu |
OLD | NEW |