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

Side by Side Diff: third_party/WebKit/Source/web/tests/sim/SimCompositor.h

Issue 1889163002: Don't try to render composited selection in throttled frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 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 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 SimCompositor_h 5 #ifndef SimCompositor_h
6 #define SimCompositor_h 6 #define SimCompositor_h
7 7
8 #include "public/platform/WebLayerTreeView.h" 8 #include "public/platform/WebLayerTreeView.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 17 matching lines...) Expand all
28 28
29 void setWebViewImpl(WebViewImpl&); 29 void setWebViewImpl(WebViewImpl&);
30 30
31 // Execute the BeginMainFrame processing steps, an approximation of what 31 // Execute the BeginMainFrame processing steps, an approximation of what
32 // cc::ThreadProxy::BeginMainFrame would do. 32 // cc::ThreadProxy::BeginMainFrame would do.
33 SimDisplayItemList beginFrame(); 33 SimDisplayItemList beginFrame();
34 34
35 bool needsAnimate() const { return m_needsAnimate; } 35 bool needsAnimate() const { return m_needsAnimate; }
36 bool deferCommits() const { return m_deferCommits; } 36 bool deferCommits() const { return m_deferCommits; }
37 37
38 bool hasSelection() const { return m_hasSelection; }
39
38 private: 40 private:
39 void setNeedsAnimate() override; 41 void setNeedsAnimate() override;
40 void setDeferCommits(bool) override; 42 void setDeferCommits(bool) override;
43 void registerSelection(const WebSelection&) override;
44 void clearSelection() override;
41 45
42 bool m_needsAnimate; 46 bool m_needsAnimate;
43 bool m_deferCommits; 47 bool m_deferCommits;
48 bool m_hasSelection;
44 WebViewImpl* m_webViewImpl; 49 WebViewImpl* m_webViewImpl;
45 double m_lastFrameTimeMonotonic; 50 double m_lastFrameTimeMonotonic;
46 }; 51 };
47 52
48 } // namespace blink 53 } // namespace blink
49 54
50 #endif 55 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698