| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ |
| 6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ | 6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 virtual void RegisterSurfaceTexture(int surface_texture_id, | 22 virtual void RegisterSurfaceTexture(int surface_texture_id, |
| 23 int client_id, | 23 int client_id, |
| 24 gfx::SurfaceTexture* surface_texture) = 0; | 24 gfx::SurfaceTexture* surface_texture) = 0; |
| 25 | 25 |
| 26 // Unregister a surface texture previously registered for use in another | 26 // Unregister a surface texture previously registered for use in another |
| 27 // process. | 27 // process. |
| 28 virtual void UnregisterSurfaceTexture(int surface_texture_id, | 28 virtual void UnregisterSurfaceTexture(int surface_texture_id, |
| 29 int client_id) = 0; | 29 int client_id) = 0; |
| 30 | 30 |
| 31 // Acquire native widget for surface texture. | 31 // Acquire native widget for surface texture. |
| 32 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_texture_id, | 32 virtual gfx::AcceleratedWidget AcquireNativeWidget( |
| 33 int client_id) = 0; | 33 int surface_texture_id) = 0; |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 virtual ~SurfaceTextureManager() {} | 36 virtual ~SurfaceTextureManager() {} |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace content | 39 } // namespace content |
| 40 | 40 |
| 41 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ | 41 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ |
| OLD | NEW |