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/frame_host/render_frame_host_impl.h" | 7 #include "content/browser/frame_host/render_frame_host_impl.h" |
8 #include "content/browser/media/android/browser_media_player_manager.h" | 8 #include "content/browser/media/android/browser_media_player_manager.h" |
9 #include "content/browser/media/android/media_web_contents_observer.h" | 9 #include "content/browser/media/media_web_contents_observer.h" |
10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
13 #include "media/base/android/media_player_android.h" | 13 #include "media/base/android/media_player_android.h" |
14 #include "ui/gl/android/scoped_java_surface.h" | 14 #include "ui/gl/android/scoped_java_surface.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int player_id) { | 82 int player_id) { |
83 if (!surface_texture.get()) | 83 if (!surface_texture.get()) |
84 return; | 84 return; |
85 | 85 |
86 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( | 86 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( |
87 &SetSurfacePeer, surface_texture, render_process_handle, | 87 &SetSurfacePeer, surface_texture, render_process_handle, |
88 render_frame_id, player_id)); | 88 render_frame_id, player_id)); |
89 } | 89 } |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
OLD | NEW |