| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 GetCompositorMessageLoop() = 0; | 44 GetCompositorMessageLoop() = 0; |
| 45 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 45 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 46 int routing_id) = 0; | 46 int routing_id) = 0; |
| 47 | 47 |
| 48 // The factory maintains ownership of the returned interface. | 48 // The factory maintains ownership of the returned interface. |
| 49 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; | 49 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; |
| 50 | 50 |
| 51 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> | 51 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> |
| 52 GetSharedOffscreenContextProviderForMainThread() = 0; | 52 GetSharedOffscreenContextProviderForMainThread() = 0; |
| 53 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 53 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
| 54 int view_id) = 0; | 54 int frame_id) = 0; |
| 55 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( | 55 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( |
| 56 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; | 56 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 SynchronousCompositorFactory() {} | 59 SynchronousCompositorFactory() {} |
| 60 virtual ~SynchronousCompositorFactory() {} | 60 virtual ~SynchronousCompositorFactory() {} |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } | 63 } |
| 64 | 64 |
| 65 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 65 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
| OLD | NEW |