| 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 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class GLShareGroup; | 12 class GLShareGroup; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebGraphicsContext3D; | 16 class WebGraphicsContext3D; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class GLHelper; | 20 class GLHelper; |
| 21 | 21 |
| 22 class ImageTransportFactoryAndroid { | 22 class ImageTransportFactoryAndroid { |
| 23 public: | 23 public: |
| 24 virtual ~ImageTransportFactoryAndroid(); | 24 virtual ~ImageTransportFactoryAndroid(); |
| 25 | 25 |
| 26 static ImageTransportFactoryAndroid* GetInstance(); | 26 static ImageTransportFactoryAndroid* GetInstance(); |
| 27 | 27 |
| 28 virtual uint32_t InsertSyncPoint() = 0; | 28 virtual uint32_t InsertSyncPoint() = 0; |
| 29 virtual void WaitSyncPoint(uint32_t sync_point) = 0; |
| 29 virtual uint32_t CreateTexture() = 0; | 30 virtual uint32_t CreateTexture() = 0; |
| 30 virtual void DeleteTexture(uint32_t id) = 0; | 31 virtual void DeleteTexture(uint32_t id) = 0; |
| 31 virtual void AcquireTexture( | 32 virtual void AcquireTexture( |
| 32 uint32 texture_id, const signed char* mailbox_name) = 0; | 33 uint32 texture_id, const signed char* mailbox_name) = 0; |
| 33 virtual void ReleaseTexture( | 34 virtual void ReleaseTexture( |
| 34 uint32 texture_id, const signed char* mailbox_name) = 0; | 35 uint32 texture_id, const signed char* mailbox_name) = 0; |
| 35 | 36 |
| 36 virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0; | 37 virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0; |
| 37 virtual GLHelper* GetGLHelper() = 0; | 38 virtual GLHelper* GetGLHelper() = 0; |
| 38 | 39 |
| 39 protected: | 40 protected: |
| 40 ImageTransportFactoryAndroid(); | 41 ImageTransportFactoryAndroid(); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace content | 44 } // namespace content |
| 44 | 45 |
| 45 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | 46 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ |
| OLD | NEW |