OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ |
6 #define BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ | 6 #define BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
12 | 12 |
13 namespace web_cache { | 13 namespace web_cache { |
14 class WebCacheImpl; | 14 class WebCacheImpl; |
15 } | 15 } |
16 | 16 |
17 namespace blimp { | 17 namespace blimp { |
18 namespace engine { | 18 namespace engine { |
19 | 19 |
20 class BlimpContentRendererClient : public content::ContentRendererClient { | 20 class BlimpContentRendererClient : public content::ContentRendererClient { |
21 public: | 21 public: |
22 BlimpContentRendererClient(); | 22 BlimpContentRendererClient(); |
23 ~BlimpContentRendererClient() override; | 23 ~BlimpContentRendererClient() override; |
24 | 24 |
25 // content::ContentRendererClient implementation. | 25 // content::ContentRendererClient implementation. |
26 void RenderThreadStarted() override; | 26 void RenderThreadStarted() override; |
27 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; | 27 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; |
| 28 std::unique_ptr<cc::RemoteCompositorBridge> CreateRemoteCompositorBridge( |
| 29 cc::RemoteProtoChannel* remote_proto_channel, |
| 30 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner) |
| 31 override; |
28 | 32 |
29 private: | 33 private: |
30 // Manages the process-global web cache. | 34 // Manages the process-global web cache. |
31 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; | 35 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; |
32 | 36 |
33 // Provides the functionality to serialize images in SkPicture. | 37 // Provides the functionality to serialize images in SkPicture. |
34 std::unique_ptr<cc::ImageSerializationProcessor> | 38 std::unique_ptr<cc::ImageSerializationProcessor> |
35 image_serialization_processor_; | 39 image_serialization_processor_; |
36 | 40 |
37 DISALLOW_COPY_AND_ASSIGN(BlimpContentRendererClient); | 41 DISALLOW_COPY_AND_ASSIGN(BlimpContentRendererClient); |
38 }; | 42 }; |
39 | 43 |
40 } // namespace engine | 44 } // namespace engine |
41 } // namespace blimp | 45 } // namespace blimp |
42 | 46 |
43 #endif // BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ | 47 #endif // BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |