| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "gpu/config/gpu_info.h" | 11 #include "gpu/config/gpu_info.h" |
| 12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class SingleThreadTaskRunner; | 15 class SingleThreadTaskRunner; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 class BeginFrameSource; | 19 class BeginFrameSource; |
| 20 class ContextProvider; | 20 class ContextProvider; |
| 21 class OutputSurface; | 21 class OutputSurface; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace cc_blink { | |
| 25 class ContextProviderWebContext; | |
| 26 } | |
| 27 | |
| 28 namespace gpu_blink { | |
| 29 class WebGraphicsContext3DInProcessCommandBufferImpl; | |
| 30 } | |
| 31 | |
| 32 namespace content { | 24 namespace content { |
| 33 | 25 |
| 34 class InputHandlerManagerClient; | 26 class InputHandlerManagerClient; |
| 35 class SynchronousInputHandlerProxyClient; | 27 class SynchronousInputHandlerProxyClient; |
| 36 class StreamTextureFactory; | |
| 37 class FrameSwapMessageQueue; | 28 class FrameSwapMessageQueue; |
| 38 | 29 |
| 39 // Decouples creation from usage of the parts needed for the synchonous | 30 // Decouples creation from usage of the parts needed for the synchonous |
| 40 // compositor rendering path. In practice this is only used in single | 31 // compositor rendering path. In practice this is only used in single |
| 41 // process mode (namely, for Android WebView) hence the implementation of | 32 // process mode (namely, for Android WebView) hence the implementation of |
| 42 // this will be injected from the logical 'browser' side code. | 33 // this will be injected from the logical 'browser' side code. |
| 43 class SynchronousCompositorFactory { | 34 class SynchronousCompositorFactory { |
| 44 public: | 35 public: |
| 45 // Must only be called once, e.g. on startup. Ownership of |instance| remains | 36 // Must only be called once, e.g. on startup. Ownership of |instance| remains |
| 46 // with the caller. | 37 // with the caller. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 65 int routing_id) = 0; | 56 int routing_id) = 0; |
| 66 | 57 |
| 67 protected: | 58 protected: |
| 68 SynchronousCompositorFactory() {} | 59 SynchronousCompositorFactory() {} |
| 69 virtual ~SynchronousCompositorFactory() {} | 60 virtual ~SynchronousCompositorFactory() {} |
| 70 }; | 61 }; |
| 71 | 62 |
| 72 } // namespace content | 63 } // namespace content |
| 73 | 64 |
| 74 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 65 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
| OLD | NEW |