| 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" |   10 #include "base/debug/trace_event.h" | 
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  124     caller_wait->Signal(); |  124     caller_wait->Signal(); | 
|  125   } |  125   } | 
|  126  |  126  | 
|  127   DISALLOW_COPY_AND_ASSIGN(TransferThread); |  127   DISALLOW_COPY_AND_ASSIGN(TransferThread); | 
|  128 }; |  128 }; | 
|  129  |  129  | 
|  130 base::LazyInstance<TransferThread>::Leaky |  130 base::LazyInstance<TransferThread>::Leaky | 
|  131     g_transfer_thread = LAZY_INSTANCE_INITIALIZER; |  131     g_transfer_thread = LAZY_INSTANCE_INITIALIZER; | 
|  132  |  132  | 
|  133 base::MessageLoopProxy* transfer_message_loop_proxy() { |  133 base::MessageLoopProxy* transfer_message_loop_proxy() { | 
|  134   return g_transfer_thread.Pointer()->message_loop_proxy(); |  134   return g_transfer_thread.Pointer()->message_loop_proxy().get(); | 
|  135 } |  135 } | 
|  136  |  136  | 
|  137 SafeSharedMemoryPool* safe_shared_memory_pool() { |  137 SafeSharedMemoryPool* safe_shared_memory_pool() { | 
|  138   return g_transfer_thread.Pointer()->safe_shared_memory_pool(); |  138   return g_transfer_thread.Pointer()->safe_shared_memory_pool(); | 
|  139 } |  139 } | 
|  140  |  140  | 
|  141 // Class which holds async pixel transfers state. |  141 // Class which holds async pixel transfers state. | 
|  142 // The texture_id is accessed by either thread, but everything |  142 // The texture_id is accessed by either thread, but everything | 
|  143 // else accessed only on the main thread. |  143 // else accessed only on the main thread. | 
|  144 class TransferStateInternal |  144 class TransferStateInternal | 
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  545 bool AsyncPixelTransferManagerShareGroup::NeedsProcessMorePendingTransfers() { |  545 bool AsyncPixelTransferManagerShareGroup::NeedsProcessMorePendingTransfers() { | 
|  546   return false; |  546   return false; | 
|  547 } |  547 } | 
|  548  |  548  | 
|  549 AsyncPixelTransferDelegate* |  549 AsyncPixelTransferDelegate* | 
|  550 AsyncPixelTransferManagerShareGroup::GetAsyncPixelTransferDelegate() { |  550 AsyncPixelTransferManagerShareGroup::GetAsyncPixelTransferDelegate() { | 
|  551   return delegate_.get(); |  551   return delegate_.get(); | 
|  552 } |  552 } | 
|  553  |  553  | 
|  554 }  // namespace gpu |  554 }  // namespace gpu | 
| OLD | NEW |