| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ |
| 7 | 7 |
| 8 #include "content/common/android/surface_texture_manager.h" | 8 #include "content/common/android/surface_texture_manager.h" |
| 9 | 9 |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 int surface_texture_id) override; | 32 int surface_texture_id) override; |
| 33 | 33 |
| 34 // Overridden from SurfaceTexturePeer: | 34 // Overridden from SurfaceTexturePeer: |
| 35 void EstablishSurfaceTexturePeer( | 35 void EstablishSurfaceTexturePeer( |
| 36 base::ProcessHandle render_process_handle, | 36 base::ProcessHandle render_process_handle, |
| 37 scoped_refptr<gfx::SurfaceTexture> surface_texture, | 37 scoped_refptr<gfx::SurfaceTexture> surface_texture, |
| 38 int render_frame_id, | 38 int render_frame_id, |
| 39 int player_id) override; | 39 int player_id) override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 friend struct DefaultSingletonTraits<InProcessSurfaceTextureManager>; | 42 friend struct base::DefaultSingletonTraits<InProcessSurfaceTextureManager>; |
| 43 | 43 |
| 44 InProcessSurfaceTextureManager(); | 44 InProcessSurfaceTextureManager(); |
| 45 ~InProcessSurfaceTextureManager() override; | 45 ~InProcessSurfaceTextureManager() override; |
| 46 | 46 |
| 47 using SurfaceTextureMap = | 47 using SurfaceTextureMap = |
| 48 base::ScopedPtrHashMap<int, scoped_ptr<gfx::ScopedJavaSurface>>; | 48 base::ScopedPtrHashMap<int, scoped_ptr<gfx::ScopedJavaSurface>>; |
| 49 SurfaceTextureMap surface_textures_; | 49 SurfaceTextureMap surface_textures_; |
| 50 base::Lock lock_; | 50 base::Lock lock_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(InProcessSurfaceTextureManager); | 52 DISALLOW_COPY_AND_ASSIGN(InProcessSurfaceTextureManager); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace content | 55 } // namespace content |
| 56 | 56 |
| 57 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ | 57 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ |
| OLD | NEW |