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_remote_compositor_bridge.h

Issue 2413063002: content/blimp: Set up hooks for enabling LTHRemote in the renderer. (Closed)
Patch Set: gn check Created 4 years, 2 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 2016 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 #ifndef BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_
6 #define BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "blimp/engine/renderer/scheduler.h"
11 #include "blimp/engine/renderer/scheduler_client.h"
12 #include "cc/blimp/remote_compositor_bridge.h"
13 #include "cc/trees/remote_proto_channel.h"
14
15 namespace blimp {
16 namespace engine {
17
18 class BlimpRemoteCompositorBridge
19 : public cc::RemoteCompositorBridge,
20 public cc::RemoteProtoChannel::ProtoReceiver,
21 public SchedulerClient {
22 public:
23 // TODO(khushalsagar): Stop using the RemoteProtoChannel. See
24 // crbug.com/653697.
25 BlimpRemoteCompositorBridge(
26 cc::RemoteProtoChannel* remote_proto_channel,
27 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner);
28 ~BlimpRemoteCompositorBridge() override;
29
30 // cc::RemoteCompositorBridge implementation.
31 void BindToClient(cc::RemoteCompositorBridgeClient* client) override;
32 void ScheduleMainFrame() override;
33 void ProcessCompositorStateUpdate(std::unique_ptr<cc::CompositorProtoState>
34 compositor_proto_state) override;
35
36 private:
37 // cc::RemoteProtoChannel::ProtoReceiver implementation.
38 void OnProtoReceived(
39 std::unique_ptr<cc::proto::CompositorMessage> proto) override;
40
41 // SchedulerClient implementation.
42 void StartMainFrameUpdate() override;
43
44 cc::RemoteProtoChannel* remote_proto_channel_;
45 cc::RemoteCompositorBridgeClient* client_ = nullptr;
46
47 Scheduler scheduler_;
48
49 DISALLOW_COPY_AND_ASSIGN(BlimpRemoteCompositorBridge);
50 };
51
52 } // namespace engine
53 } // namespace blimp
54
55 #endif // BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698