Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698