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

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

Issue 12388038: Android: Remove Surface cruft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 #ifndef CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_
7 7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
10 #include "content/common/android/surface_texture_peer.h" 9 #include "content/common/android/surface_texture_peer.h"
11 10
12 namespace content { 11 namespace content {
13 12
14 // The SurfaceTexturePeer implementation for browser process. 13 // The SurfaceTexturePeer implementation for browser process.
15 class SurfaceTexturePeerBrowserImpl : public SurfaceTexturePeer { 14 class SurfaceTexturePeerBrowserImpl : public SurfaceTexturePeer {
16 public: 15 public:
17 // Construct a SurfaceTexturePeerBrowserImpl object. If 16 // Construct a SurfaceTexturePeerBrowserImpl object. If
18 // |player_in_render_process| is true, calling EstablishSurfaceTexturePeer() 17 // |player_in_render_process| is true, calling EstablishSurfaceTexturePeer()
19 // will send the java surface texture object to the render process through 18 // will send the java surface texture object to the render process through
20 // SandboxedProcessService. Otherwise, it will pass the surface texture 19 // SandboxedProcessService. Otherwise, it will pass the surface texture
21 // to the MediaPlayerBridge object in the browser process. 20 // to the MediaPlayerBridge object in the browser process.
22 explicit SurfaceTexturePeerBrowserImpl(bool player_in_render_process); 21 SurfaceTexturePeerBrowserImpl();
23 virtual ~SurfaceTexturePeerBrowserImpl(); 22 virtual ~SurfaceTexturePeerBrowserImpl();
24 23
25 // SurfaceTexturePeer implementation. 24 // SurfaceTexturePeer implementation.
26 virtual void EstablishSurfaceTexturePeer( 25 virtual void EstablishSurfaceTexturePeer(
27 base::ProcessHandle render_process_handle, 26 base::ProcessHandle render_process_handle,
28 SurfaceTextureTarget type,
29 scoped_refptr<SurfaceTextureBridge> surface_texture_bridge, 27 scoped_refptr<SurfaceTextureBridge> surface_texture_bridge,
30 int render_view_id, 28 int render_view_id,
31 int player_id) OVERRIDE; 29 int player_id) OVERRIDE;
32 30
33 static bool RegisterBrowserProcessSurfaceTexture(JNIEnv* env);
34
35 private: 31 private:
36 // Whether the media player is in render process.
37 bool player_in_render_process_;
38
39 base::android::ScopedJavaGlobalRef<jobject> surface_;
40
41 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerBrowserImpl); 32 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerBrowserImpl);
42 }; 33 };
43 34
44 } // namespace content 35 } // namespace content
45 36
46 #endif // CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ 37 #endif // CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_video_view.cc ('k') | content/browser/android/surface_texture_peer_browser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698