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

Unified Diff: cc/trees/remote_channel_main.h

Issue 2494623002: cc: Remove client/engine LayerTreeHostInProcess. (Closed)
Patch Set: .. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/remote_channel_impl.cc ('k') | cc/trees/remote_channel_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/remote_channel_main.h
diff --git a/cc/trees/remote_channel_main.h b/cc/trees/remote_channel_main.h
deleted file mode 100644
index b2f6c204f89e478ef311f2cf0ed60a5a74988553..0000000000000000000000000000000000000000
--- a/cc/trees/remote_channel_main.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_TREES_REMOTE_CHANNEL_MAIN_H_
-#define CC_TREES_REMOTE_CHANNEL_MAIN_H_
-
-#include "base/macros.h"
-#include "cc/base/cc_export.h"
-#include "cc/trees/channel_main.h"
-#include "cc/trees/remote_proto_channel.h"
-#include "cc/trees/task_runner_provider.h"
-
-namespace cc {
-class ProxyMain;
-
-namespace proto {
-class CompositorMessage;
-class CompositorMessageToMain;
-}
-
-class CC_EXPORT RemoteChannelMain : public ChannelMain,
- public RemoteProtoChannel::ProtoReceiver {
- public:
- static std::unique_ptr<RemoteChannelMain> Create(
- RemoteProtoChannel* remote_proto_channel,
- ProxyMain* proxy_main,
- TaskRunnerProvider* task_runner_provider);
-
- ~RemoteChannelMain() override;
-
- // ChannelMain implementation
- void UpdateBrowserControlsStateOnImpl(BrowserControlsState constraints,
- BrowserControlsState current,
- bool animate) override;
- void InitializeCompositorFrameSinkOnImpl(CompositorFrameSink*) override;
- void InitializeMutatorOnImpl(
- std::unique_ptr<LayerTreeMutator> mutator) override;
- void MainThreadHasStoppedFlingingOnImpl() override;
- void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override;
- void SetDeferCommitsOnImpl(bool defer_commits) override;
- void SetVisibleOnImpl(bool visible) override;
- void ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion) override;
- void MainFrameWillHappenOnImplForTesting(
- CompletionEvent* completion,
- bool* main_frame_will_happen) override;
- void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override;
- void SetNeedsCommitOnImpl() override;
- void BeginMainFrameAbortedOnImpl(
- CommitEarlyOutReason reason,
- base::TimeTicks main_thread_start_time,
- std::vector<std::unique_ptr<SwapPromise>> swap_promises) override;
- void NotifyReadyToCommitOnImpl(CompletionEvent* completion,
- LayerTreeHostInProcess* layer_tree_host,
- base::TimeTicks main_thread_start_time,
- bool hold_commit_for_activation) override;
- void SynchronouslyInitializeImpl(
- LayerTreeHostInProcess* layer_tree_host) override;
- void SynchronouslyCloseImpl() override;
-
- // RemoteProtoChannel::ProtoReceiver implementation
- void OnProtoReceived(
- std::unique_ptr<proto::CompositorMessage> proto) override;
-
- protected:
- RemoteChannelMain(RemoteProtoChannel* remote_proto_channel,
- ProxyMain* proxy_main,
- TaskRunnerProvider* task_runner_provider);
-
- private:
- void SendMessageProto(const proto::CompositorMessage& proto);
- void HandleProto(const proto::CompositorMessageToMain& proto);
- void DidCommitAndDrawFrame();
- void DidReceiveCompositorFrameAck();
-
- base::SingleThreadTaskRunner* MainThreadTaskRunner() const;
-
- RemoteProtoChannel* remote_proto_channel_;
- ProxyMain* proxy_main_;
- TaskRunnerProvider* task_runner_provider_;
-
- bool initialized_;
-
- base::WeakPtrFactory<RemoteChannelMain> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(RemoteChannelMain);
-};
-
-} // namespace cc
-
-#endif // CC_TREES_REMOTE_CHANNEL_MAIN_H_
« no previous file with comments | « cc/trees/remote_channel_impl.cc ('k') | cc/trees/remote_channel_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698