| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "blimp/engine/renderer/blimp_content_renderer_client.h" | |
| 6 | |
| 7 #include "base/memory/ptr_util.h" | |
| 8 #include "blimp/engine/mojo/blob_channel.mojom.h" | |
| 9 #include "blimp/engine/renderer/blimp_remote_compositor_bridge.h" | |
| 10 #include "blimp/engine/renderer/blob_channel_sender_proxy.h" | |
| 11 #include "blimp/engine/renderer/engine_image_serialization_processor.h" | |
| 12 #include "components/web_cache/renderer/web_cache_impl.h" | |
| 13 | |
| 14 namespace blimp { | |
| 15 namespace engine { | |
| 16 | |
| 17 BlimpContentRendererClient::BlimpContentRendererClient() {} | |
| 18 | |
| 19 BlimpContentRendererClient::~BlimpContentRendererClient() {} | |
| 20 | |
| 21 void BlimpContentRendererClient::RenderThreadStarted() { | |
| 22 web_cache_impl_.reset(new web_cache::WebCacheImpl()); | |
| 23 image_serialization_processor_.reset(new EngineImageSerializationProcessor( | |
| 24 base::WrapUnique(new BlobChannelSenderProxy))); | |
| 25 } | |
| 26 | |
| 27 cc::ImageSerializationProcessor* | |
| 28 BlimpContentRendererClient::GetImageSerializationProcessor() { | |
| 29 return image_serialization_processor_.get(); | |
| 30 } | |
| 31 | |
| 32 std::unique_ptr<cc::RemoteCompositorBridge> | |
| 33 BlimpContentRendererClient::CreateRemoteCompositorBridge( | |
| 34 content::RemoteProtoChannel* remote_proto_channel, | |
| 35 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner) { | |
| 36 return base::MakeUnique<BlimpRemoteCompositorBridge>( | |
| 37 remote_proto_channel, std::move(compositor_main_task_runner)); | |
| 38 } | |
| 39 | |
| 40 } // namespace engine | |
| 41 } // namespace blimp | |
| OLD | NEW |