| 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 WebKit { |
| 12 class WebGraphicsContext3D; |
| 13 } |
| 14 |
| 11 class WebGraphicsContext3DCommandBufferImpl; | 15 class WebGraphicsContext3DCommandBufferImpl; |
| 12 | 16 |
| 13 namespace content { | 17 namespace content { |
| 14 | 18 |
| 19 class GLHelper; |
| 20 |
| 15 class ImageTransportFactoryAndroid { | 21 class ImageTransportFactoryAndroid { |
| 16 public: | 22 public: |
| 17 ImageTransportFactoryAndroid(); | 23 ImageTransportFactoryAndroid(); |
| 18 ~ImageTransportFactoryAndroid(); | 24 ~ImageTransportFactoryAndroid(); |
| 19 | 25 |
| 20 static ImageTransportFactoryAndroid* GetInstance(); | 26 static ImageTransportFactoryAndroid* GetInstance(); |
| 21 | 27 |
| 22 gfx::GLSurfaceHandle CreateSharedSurfaceHandle(); | 28 gfx::GLSurfaceHandle CreateSharedSurfaceHandle(); |
| 23 void DestroySharedSurfaceHandle(const gfx::GLSurfaceHandle& handle); | 29 void DestroySharedSurfaceHandle(const gfx::GLSurfaceHandle& handle); |
| 24 | 30 |
| 25 uint32_t InsertSyncPoint(); | 31 uint32_t InsertSyncPoint(); |
| 26 | 32 |
| 27 WebGraphicsContext3DCommandBufferImpl* GetContext3D(); | 33 WebKit::WebGraphicsContext3D* GetContext3D(); |
| 34 GLHelper* GetGLHelper(); |
| 35 |
| 28 private: | 36 private: |
| 29 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_; | 37 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_; |
| 38 scoped_ptr<GLHelper> gl_helper_; |
| 30 }; | 39 }; |
| 31 | 40 |
| 32 } // namespace content | 41 } // namespace content |
| 33 | 42 |
| 34 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | 43 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ |
| OLD | NEW |