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

Unified Diff: cc/base/swap_promise_monitor.h

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/swap_promise.h ('k') | cc/base/swap_promise_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/swap_promise_monitor.h
diff --git a/cc/base/swap_promise_monitor.h b/cc/base/swap_promise_monitor.h
deleted file mode 100644
index cf06bee24492f6a4f97b6e3802b6725216808a6c..0000000000000000000000000000000000000000
--- a/cc/base/swap_promise_monitor.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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_BASE_SWAP_PROMISE_MONITOR_H_
-#define CC_BASE_SWAP_PROMISE_MONITOR_H_
-
-#include "cc/base/cc_export.h"
-
-namespace cc {
-
-class LayerTreeHost;
-class LayerTreeHostImpl;
-
-// A SwapPromiseMonitor is used to monitor compositor state change that
-// should be associated with a SwapPromise, e.g. SetNeedsCommit() is
-// called on main thread or SetNeedsRedraw() is called on impl thread.
-// Creating a SwapPromiseMonitor will insert itself into a LayerTreeHost
-// or LayerTreeHostImpl. You must provide a pointer to the appropriate
-// structure to the monitor (and only one of the two). Notification of
-// compositor state change will be sent through OnSetNeedsCommitOnMain()
-// or OnSetNeedsRedrawOnImpl(). When SwapPromiseMonitor is destroyed, it
-// will unregister itself from LayerTreeHost or LayerTreeHostImpl.
-class CC_EXPORT SwapPromiseMonitor {
- public:
- // If the monitor lives on the main thread, pass in layer_tree_host
- // and set layer_tree_host_impl to nullptr.
- // If the monitor lives on the impl thread, pass in layer_tree_host_impl
- // and set layer_tree_host to nullptr.
- SwapPromiseMonitor(LayerTreeHost* layer_tree_host,
- LayerTreeHostImpl* layer_tree_host_impl);
- virtual ~SwapPromiseMonitor();
-
- virtual void OnSetNeedsCommitOnMain() = 0;
- virtual void OnSetNeedsRedrawOnImpl() = 0;
- virtual void OnForwardScrollUpdateToMainThreadOnImpl() = 0;
-
- protected:
- LayerTreeHost* layer_tree_host_;
- LayerTreeHostImpl* layer_tree_host_impl_;
-};
-
-} // namespace cc
-
-#endif // CC_BASE_SWAP_PROMISE_MONITOR_H_
« no previous file with comments | « cc/base/swap_promise.h ('k') | cc/base/swap_promise_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698