OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 virtual ~ImageTransportFactoryAndroid(); | 24 virtual ~ImageTransportFactoryAndroid(); |
25 | 25 |
26 static ImageTransportFactoryAndroid* GetInstance(); | 26 static ImageTransportFactoryAndroid* GetInstance(); |
27 | 27 |
28 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() = 0; | 28 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() = 0; |
29 virtual void DestroySharedSurfaceHandle( | 29 virtual void DestroySharedSurfaceHandle( |
30 const gfx::GLSurfaceHandle& handle) = 0; | 30 const gfx::GLSurfaceHandle& handle) = 0; |
31 | 31 |
32 virtual uint32_t InsertSyncPoint() = 0; | 32 virtual uint32_t InsertSyncPoint() = 0; |
| 33 virtual uint32_t CreateTexture() = 0; |
| 34 virtual void DeleteTexture(uint32_t id) = 0; |
| 35 virtual void AcquireTexture( |
| 36 uint32 texture_id, const signed char* mailbox_name) = 0; |
| 37 virtual void ReleaseTexture( |
| 38 uint32 texture_id, const signed char* mailbox_name) = 0; |
33 | 39 |
34 virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0; | 40 virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0; |
35 virtual GLHelper* GetGLHelper() = 0; | 41 virtual GLHelper* GetGLHelper() = 0; |
36 | 42 |
37 protected: | 43 protected: |
38 ImageTransportFactoryAndroid(); | 44 ImageTransportFactoryAndroid(); |
39 }; | 45 }; |
40 | 46 |
41 } // namespace content | 47 } // namespace content |
42 | 48 |
43 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | 49 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ |
OLD | NEW |