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> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <queue> | 10 #include <queue> |
9 | 11 |
10 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
11 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
12 #include "gpu/command_buffer/common/sync_token.h" | 14 #include "gpu/command_buffer/common/sync_token.h" |
13 #include "gpu/command_buffer/service/texture_manager.h" | 15 #include "gpu/command_buffer/service/texture_manager.h" |
14 #include "ui/gl/gl_fence.h" | 16 #include "ui/gl/gl_fence.h" |
15 #include "ui/gl/gl_implementation.h" | 17 #include "ui/gl/gl_implementation.h" |
16 | 18 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 331 |
330 if (!needs_update.empty()) { | 332 if (!needs_update.empty()) { |
331 for (const TextureUpdatePair& pair : needs_update) { | 333 for (const TextureUpdatePair& pair : needs_update) { |
332 pair.second.UpdateTexture(pair.first); | 334 pair.second.UpdateTexture(pair.first); |
333 } | 335 } |
334 } | 336 } |
335 } | 337 } |
336 | 338 |
337 } // namespace gles2 | 339 } // namespace gles2 |
338 } // namespace gpu | 340 } // namespace gpu |
OLD | NEW |