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/android/media_player_manager_android.h" | 7 #include "content/browser/android/media_player_manager_impl.h" |
8 #include "content/browser/renderer_host/render_view_host_impl.h" | 8 #include "content/browser/renderer_host/render_view_host_impl.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
11 #include "media/base/android/media_player_bridge.h" | 11 #include "media/base/android/media_player_bridge.h" |
12 #include "ui/gl/android/scoped_java_surface.h" | 12 #include "ui/gl/android/scoped_java_surface.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int player_id) { | 62 int player_id) { |
63 if (!surface_texture_bridge) | 63 if (!surface_texture_bridge) |
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 |