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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/native_widget_types.h"
16 class WebGraphicsContext3D
;
22 class ImageTransportFactoryAndroid
{
24 virtual ~ImageTransportFactoryAndroid();
26 static ImageTransportFactoryAndroid
* GetInstance();
28 virtual gfx::GLSurfaceHandle
CreateSharedSurfaceHandle() = 0;
29 virtual void DestroySharedSurfaceHandle(
30 const gfx::GLSurfaceHandle
& handle
) = 0;
32 virtual uint32_t InsertSyncPoint() = 0;
34 virtual WebKit::WebGraphicsContext3D
* GetContext3D() = 0;
35 virtual GLHelper
* GetGLHelper() = 0;
38 ImageTransportFactoryAndroid();
41 } // namespace content
43 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_