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

Side by Side Diff: content/browser/android/surface_texture_peer_browser_impl.cc

Issue 16907002: Update Android to use scoped_refptr<T>::get() rather than 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/android/surface_texture_peer_browser_impl.h" 5 #include "content/browser/android/surface_texture_peer_browser_impl.h"
6 6
7 #include "content/browser/renderer_host/render_view_host_impl.h" 7 #include "content/browser/renderer_host/render_view_host_impl.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/render_process_host.h" 9 #include "content/public/browser/render_process_host.h"
10 #include "media/base/android/media_player_android.h" 10 #include "media/base/android/media_player_android.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 SurfaceTexturePeerBrowserImpl::~SurfaceTexturePeerBrowserImpl() { 55 SurfaceTexturePeerBrowserImpl::~SurfaceTexturePeerBrowserImpl() {
56 } 56 }
57 57
58 void SurfaceTexturePeerBrowserImpl::EstablishSurfaceTexturePeer( 58 void SurfaceTexturePeerBrowserImpl::EstablishSurfaceTexturePeer(
59 base::ProcessHandle render_process_handle, 59 base::ProcessHandle render_process_handle,
60 scoped_refptr<gfx::SurfaceTextureBridge> surface_texture_bridge, 60 scoped_refptr<gfx::SurfaceTextureBridge> surface_texture_bridge,
61 int render_view_id, 61 int render_view_id,
62 int player_id) { 62 int player_id) {
63 if (!surface_texture_bridge) 63 if (!surface_texture_bridge.get())
64 return; 64 return;
65 65
66 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( 66 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind(
67 &SetSurfacePeer, surface_texture_bridge, render_process_handle, 67 &SetSurfacePeer, surface_texture_bridge, render_process_handle,
68 render_view_id, player_id)); 68 render_view_id, player_id));
69 } 69 }
70 70
71 } // namespace content 71 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698