| 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_idle.h" | 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_idle.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | |
| 9 #include "base/debug/trace_event_synthetic_delay.h" | |
| 10 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 11 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/trace_event/trace_event.h" |
| 11 #include "base/trace_event/trace_event_synthetic_delay.h" |
| 12 #include "ui/gl/scoped_binders.h" | 12 #include "ui/gl/scoped_binders.h" |
| 13 | 13 |
| 14 namespace gpu { | 14 namespace gpu { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 static uint64 g_next_pixel_transfer_state_id = 1; | 18 static uint64 g_next_pixel_transfer_state_id = 1; |
| 19 | 19 |
| 20 void PerformNotifyCompletion( | 20 void PerformNotifyCompletion( |
| 21 AsyncMemoryParams mem_params, | 21 AsyncMemoryParams mem_params, |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 AsyncPixelTransferDelegate* | 313 AsyncPixelTransferDelegate* |
| 314 AsyncPixelTransferManagerIdle::CreatePixelTransferDelegateImpl( | 314 AsyncPixelTransferManagerIdle::CreatePixelTransferDelegateImpl( |
| 315 gles2::TextureRef* ref, | 315 gles2::TextureRef* ref, |
| 316 const AsyncTexImage2DParams& define_params) { | 316 const AsyncTexImage2DParams& define_params) { |
| 317 return new AsyncPixelTransferDelegateIdle(&shared_state_, | 317 return new AsyncPixelTransferDelegateIdle(&shared_state_, |
| 318 ref->service_id(), | 318 ref->service_id(), |
| 319 define_params); | 319 define_params); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace gpu | 322 } // namespace gpu |
| OLD | NEW |