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

Side by Side Diff: Source/web/tests/sim/SimLayerTreeView.h

Issue 1316673009: Revert of Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/sim/SimDisplayItemList.cpp ('k') | Source/web/tests/sim/SimNetwork.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SimLayerTreeView_h 5 #ifndef SimLayerTreeView_h
6 #define SimLayerTreeView_h 6 #define SimLayerTreeView_h
7 7
8 #include "public/platform/WebLayerTreeView.h" 8 #include "public/platform/WebLayerTreeView.h"
9 #include "wtf/OwnPtr.h" 9 #include "wtf/OwnPtr.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class SimLayerTreeView final : public WebLayerTreeView { 13 class SimLayerTreeView : public WebLayerTreeView {
14 public: 14 public:
15 SimLayerTreeView(); 15 SimLayerTreeView();
16 16
17 void setNeedsAnimate() override { m_needsAnimate = true; } 17 void setNeedsAnimate() override { m_needsAnimate = true; }
18 void clearNeedsAnimate() { m_needsAnimate = false; }
18 bool needsAnimate() const { return m_needsAnimate; } 19 bool needsAnimate() const { return m_needsAnimate; }
19 void clearNeedsAnimate() { m_needsAnimate = false; }
20 20
21 void setDeferCommits(bool deferCommits) override { m_deferCommits = deferCom mits; } 21 void setDeferCommits(bool deferCommits) override { m_deferCommits = deferCom mits; }
22 bool deferCommits() const { return m_deferCommits; } 22 bool deferCommits() const { return m_deferCommits; }
23 23
24 private: 24 private:
25 bool m_needsAnimate; 25 bool m_needsAnimate;
26 bool m_deferCommits; 26 bool m_deferCommits;
27 }; 27 };
28 28
29 } // namespace blink 29 } // namespace blink
30 30
31 #endif 31 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/sim/SimDisplayItemList.cpp ('k') | Source/web/tests/sim/SimNetwork.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698