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

Side by Side Diff: cc/trees/swap_promise_monitor.h

Issue 2185823005: Make RenderViewImpl::OnForceRedraw more robust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_SWAP_PROMISE_MONITOR_H_ 5 #ifndef CC_TREES_SWAP_PROMISE_MONITOR_H_
6 #define CC_TREES_SWAP_PROMISE_MONITOR_H_ 6 #define CC_TREES_SWAP_PROMISE_MONITOR_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 // If the monitor lives on the main thread, pass in layer_tree_host 26 // If the monitor lives on the main thread, pass in layer_tree_host
27 // and set layer_tree_host_impl to nullptr. 27 // and set layer_tree_host_impl to nullptr.
28 // If the monitor lives on the impl thread, pass in layer_tree_host_impl 28 // If the monitor lives on the impl thread, pass in layer_tree_host_impl
29 // and set layer_tree_host to nullptr. 29 // and set layer_tree_host to nullptr.
30 SwapPromiseMonitor(LayerTreeHost* layer_tree_host, 30 SwapPromiseMonitor(LayerTreeHost* layer_tree_host,
31 LayerTreeHostImpl* layer_tree_host_impl); 31 LayerTreeHostImpl* layer_tree_host_impl);
32 virtual ~SwapPromiseMonitor(); 32 virtual ~SwapPromiseMonitor();
33 33
34 virtual void OnSetNeedsCommitOnMain() = 0; 34 virtual void OnSetNeedsCommitOnMain() = 0;
35 virtual void OnSetNeedsForcedRedrawOnMain() = 0;
piman 2016/07/28 20:54:09 Is this and the associated logic in LTH really nee
35 virtual void OnSetNeedsRedrawOnImpl() = 0; 36 virtual void OnSetNeedsRedrawOnImpl() = 0;
36 virtual void OnForwardScrollUpdateToMainThreadOnImpl() = 0; 37 virtual void OnForwardScrollUpdateToMainThreadOnImpl() = 0;
37 38
38 protected: 39 protected:
39 LayerTreeHost* layer_tree_host_; 40 LayerTreeHost* layer_tree_host_;
40 LayerTreeHostImpl* layer_tree_host_impl_; 41 LayerTreeHostImpl* layer_tree_host_impl_;
41 }; 42 };
42 43
43 } // namespace cc 44 } // namespace cc
44 45
45 #endif // CC_TREES_SWAP_PROMISE_MONITOR_H_ 46 #endif // CC_TREES_SWAP_PROMISE_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698