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

Side by Side Diff: content/browser/media/android/browser_media_player_manager.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
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 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Permits embedders to handle custom urls. 53 // Permits embedders to handle custom urls.
54 static void RegisterMediaUrlInterceptor( 54 static void RegisterMediaUrlInterceptor(
55 media::MediaUrlInterceptor* media_url_interceptor); 55 media::MediaUrlInterceptor* media_url_interceptor);
56 56
57 // Init the SurfaceTexturePeer. 57 // Init the SurfaceTexturePeer.
58 static void InitSurfaceTexturePeer(); 58 static void InitSurfaceTexturePeer();
59 59
60 // Pass a java surface object to the MediaPlayerAndroid object 60 // Pass a java surface object to the MediaPlayerAndroid object
61 // identified by render process handle, render frame ID and player ID. 61 // identified by render process handle, render frame ID and player ID.
62 static void SetSurfacePeer(scoped_refptr<gfx::SurfaceTexture> surface_texture, 62 static void SetSurfacePeer(scoped_refptr<gl::SurfaceTexture> surface_texture,
63 base::ProcessHandle render_process_handle, 63 base::ProcessHandle render_process_handle,
64 int render_frame_id, 64 int render_frame_id,
65 int player_id); 65 int player_id);
66 66
67 // Returns a new instance using the registered factory if available. 67 // Returns a new instance using the registered factory if available.
68 static BrowserMediaPlayerManager* Create(RenderFrameHost* rfh); 68 static BrowserMediaPlayerManager* Create(RenderFrameHost* rfh);
69 69
70 #if !defined(USE_AURA) 70 #if !defined(USE_AURA)
71 ContentViewCore* GetContentViewCore() const; 71 ContentViewCore* GetContentViewCore() const;
72 #endif 72 #endif
73 73
74 ~BrowserMediaPlayerManager() override; 74 ~BrowserMediaPlayerManager() override;
75 75
76 // ContentVideoView::Client implementation. 76 // ContentVideoView::Client implementation.
77 void DidExitFullscreen(bool release_media_player) override; 77 void DidExitFullscreen(bool release_media_player) override;
78 void SetVideoSurface(gfx::ScopedJavaSurface surface) override; 78 void SetVideoSurface(gl::ScopedJavaSurface surface) override;
79 79
80 // Called when browser player wants the renderer media element to seek. 80 // Called when browser player wants the renderer media element to seek.
81 // Any actual seek started by renderer will be handled by browser in OnSeek(). 81 // Any actual seek started by renderer will be handled by browser in OnSeek().
82 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); 82 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek);
83 83
84 // media::MediaPlayerManager overrides. 84 // media::MediaPlayerManager overrides.
85 void OnTimeUpdate(int player_id, 85 void OnTimeUpdate(int player_id,
86 base::TimeDelta current_timestamp, 86 base::TimeDelta current_timestamp,
87 base::TimeTicks current_time_ticks) override; 87 base::TimeTicks current_time_ticks) override;
88 void OnMediaMetadataChanged(int player_id, 88 void OnMediaMetadataChanged(int player_id,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 // NOTE: Weak pointers must be invalidated before all other member variables. 236 // NOTE: Weak pointers must be invalidated before all other member variables.
237 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 237 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
238 238
239 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 239 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
240 }; 240 };
241 241
242 } // namespace content 242 } // namespace content
243 243
244 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 244 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_surface_tracker.cc ('k') | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698