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 | |
|
scherkus (not reviewing)
2012/09/07 13:17:35
nit: remove blank line
qinmin
2012/09/07 22:48:27
Done.
| |
| 19 virtual ~SurfaceTexturePeerBrowserImpl(); | |
| 20 | |
| 21 // Methods inherited from SurfaceTexturePeer. | |
|
scherkus (not reviewing)
2012/09/07 13:17:35
nit: SurfaceTexturePeer implementation.
qinmin
2012/09/07 22:48:27
Done.
| |
| 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 static bool RegisterBrowserProcessSurfaceTexture(JNIEnv* env); | |
| 29 | |
| 30 private: | |
| 31 // Whether the mediaplayer is in render process | |
|
scherkus (not reviewing)
2012/09/07 13:17:35
s/mediaplayer/media player/
add period to end of
qinmin
2012/09/07 22:48:27
Done.
| |
| 32 bool player_in_render_process_; | |
| 33 | |
| 34 base::android::ScopedJavaGlobalRef<jobject> surface_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerBrowserImpl); | |
| 37 }; | |
| 38 | |
| 39 } // namespace content | |
| 40 | |
| 41 #endif // CONTENT_BROWSER_ANDROID_SURFACE_TEXTURE_PEER_BROWSER_IMPL_H_ | |
| OLD | NEW |