Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ | |
| 6 #define CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ | |
| 7 | |
| 8 #include "base/android/scoped_java_ref.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "content/common/android/surface_texture_peer.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 // The SurfaceTexturePeer implementation for browser process. | |
| 15 class SurfaceTexturePeerBrowserImpl : public SurfaceTexturePeer { | |
| 16 public: | |
| 17 explicit SurfaceTexturePeerBrowserImpl(bool player_in_render_process); | |
| 18 | |
| 19 virtual ~SurfaceTexturePeerBrowserImpl(); | |
| 20 | |
| 21 // Methods inherited from SurfaceTexturePeer. | |
| 22 virtual void EstablishSurfaceTexturePeer(base::ProcessHandle pid, | |
| 23 SurfaceTextureTarget type, | |
| 24 jobject j_surface_texture, | |
| 25 int primary_id, | |
| 26 int secondary_id) OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 // Whether the mediaplayer is in render process | |
| 30 bool player_in_render_process_; | |
| 31 | |
| 32 base::android::ScopedJavaGlobalRef<jobject> surface_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerBrowserImpl); | |
| 35 }; | |
| 36 | |
| 37 bool RegisterBrowserProcessSurfaceTexture(JNIEnv* env); | |
|
Yaron
2012/09/05 07:03:56
Nit: move to static method of above class
qinmin
2012/09/05 19:34:42
Done.
| |
| 38 | |
| 39 } // namespace content | |
| 40 | |
| 41 #endif // CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ | |
| OLD | NEW |