Suppress sending mousedown / mouseup when in fling
[chromium-blink-merge.git] / content / browser / renderer_host / image_transport_factory_android.h
blob669d516bd5c0b1f2f4a479314a5dc022fc1814d4
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"
11 namespace gfx {
12 class GLShareGroup;
15 namespace WebKit {
16 class WebGraphicsContext3D;
19 namespace content {
20 class GLHelper;
22 class ImageTransportFactoryAndroid {
23 public:
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;
37 protected:
38 ImageTransportFactoryAndroid();
41 } // namespace content
43 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_