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

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_egl.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_egl.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h"
6 6
7 #include <list> 7 #include <list>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 SafeSharedMemoryPool safe_shared_memory_pool_; 128 SafeSharedMemoryPool safe_shared_memory_pool_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(TransferThread); 130 DISALLOW_COPY_AND_ASSIGN(TransferThread);
131 }; 131 };
132 132
133 base::LazyInstance<TransferThread> 133 base::LazyInstance<TransferThread>
134 g_transfer_thread = LAZY_INSTANCE_INITIALIZER; 134 g_transfer_thread = LAZY_INSTANCE_INITIALIZER;
135 135
136 base::MessageLoopProxy* transfer_message_loop_proxy() { 136 base::MessageLoopProxy* transfer_message_loop_proxy() {
137 return g_transfer_thread.Pointer()->message_loop_proxy(); 137 return g_transfer_thread.Pointer()->message_loop_proxy().get();
138 } 138 }
139 139
140 SafeSharedMemoryPool* safe_shared_memory_pool() { 140 SafeSharedMemoryPool* safe_shared_memory_pool() {
141 return g_transfer_thread.Pointer()->safe_shared_memory_pool(); 141 return g_transfer_thread.Pointer()->safe_shared_memory_pool();
142 } 142 }
143 143
144 // Class which holds async pixel transfers state (EGLImage). 144 // Class which holds async pixel transfers state (EGLImage).
145 // The EGLImage is accessed by either thread, but everything 145 // The EGLImage is accessed by either thread, but everything
146 // else accessed only on the main thread. 146 // else accessed only on the main thread.
147 class TransferStateInternal 147 class TransferStateInternal
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 bool AsyncPixelTransferManagerEGL::NeedsProcessMorePendingTransfers() { 804 bool AsyncPixelTransferManagerEGL::NeedsProcessMorePendingTransfers() {
805 return false; 805 return false;
806 } 806 }
807 807
808 AsyncPixelTransferDelegate* 808 AsyncPixelTransferDelegate*
809 AsyncPixelTransferManagerEGL::GetAsyncPixelTransferDelegate() { 809 AsyncPixelTransferManagerEGL::GetAsyncPixelTransferDelegate() {
810 return delegate_.get(); 810 return delegate_.get();
811 } 811 }
812 812
813 } // namespace gpu 813 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698