OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/async_pixel_transfer_manager_share_group.h" | 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_share_group.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/debug/trace_event_synthetic_delay.h" | |
12 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
13 #include "base/logging.h" | 11 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
16 #include "base/synchronization/cancellation_flag.h" | 14 #include "base/synchronization/cancellation_flag.h" |
17 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
18 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
19 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
20 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 19 #include "base/trace_event/trace_event.h" |
| 20 #include "base/trace_event/trace_event_synthetic_delay.h" |
21 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" | 21 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" |
22 #include "ui/gl/gl_bindings.h" | 22 #include "ui/gl/gl_bindings.h" |
23 #include "ui/gl/gl_context.h" | 23 #include "ui/gl/gl_context.h" |
24 #include "ui/gl/gl_surface.h" | 24 #include "ui/gl/gl_surface.h" |
25 #include "ui/gl/gpu_preference.h" | 25 #include "ui/gl/gpu_preference.h" |
26 #include "ui/gl/scoped_binders.h" | 26 #include "ui/gl/scoped_binders.h" |
27 | 27 |
28 namespace gpu { | 28 namespace gpu { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 | 542 |
543 AsyncPixelTransferDelegate* | 543 AsyncPixelTransferDelegate* |
544 AsyncPixelTransferManagerShareGroup::CreatePixelTransferDelegateImpl( | 544 AsyncPixelTransferManagerShareGroup::CreatePixelTransferDelegateImpl( |
545 gles2::TextureRef* ref, | 545 gles2::TextureRef* ref, |
546 const AsyncTexImage2DParams& define_params) { | 546 const AsyncTexImage2DParams& define_params) { |
547 return new AsyncPixelTransferDelegateShareGroup( | 547 return new AsyncPixelTransferDelegateShareGroup( |
548 &shared_state_, ref->service_id(), define_params); | 548 &shared_state_, ref->service_id(), define_params); |
549 } | 549 } |
550 | 550 |
551 } // namespace gpu | 551 } // namespace gpu |
OLD | NEW |