| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |