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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_
6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_
8 #include "ui/gfx/native_widget_types.h"
16 class SurfaceTextureManager
{
18 static SurfaceTextureManager
* GetInstance();
19 static void InitInstance(SurfaceTextureManager
* instance
);
21 // Register a surface texture for use in another process.
22 virtual void RegisterSurfaceTexture(int surface_texture_id
,
24 gfx::SurfaceTexture
* surface_texture
) = 0;
26 // Unregister a surface texture previously registered for use in another
28 virtual void UnregisterSurfaceTexture(int surface_texture_id
,
31 // Acquire native widget for a registered surface texture.
32 virtual gfx::AcceleratedWidget
AcquireNativeWidgetForSurfaceTexture(
33 int surface_texture_id
) = 0;
36 virtual ~SurfaceTextureManager() {}
39 } // namespace content
41 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_