Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: blimp/engine/renderer/blimp_content_renderer_client.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « blimp/engine/renderer/blimp_content_renderer_client.h ('k') | blimp/engine/renderer/blimp_engine_picture_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698