Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / tests / sim / SimLayerTreeView.h
blobf1d31fbf647423fd9a2a5012aefffd3fd2f37652
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
3 // found in the LICENSE file.
5 #ifndef SimLayerTreeView_h
6 #define SimLayerTreeView_h
8 #include "public/platform/WebLayerTreeView.h"
9 #include "wtf/OwnPtr.h"
11 namespace blink {
13 class SimLayerTreeView final : public WebLayerTreeView {
14 public:
15 SimLayerTreeView();
17 void setNeedsAnimate() override { m_needsAnimate = true; }
18 bool needsAnimate() const { return m_needsAnimate; }
19 void clearNeedsAnimate() { m_needsAnimate = false; }
21 void setDeferCommits(bool deferCommits) override { m_deferCommits = deferCommits; }
22 bool deferCommits() const { return m_deferCommits; }
24 private:
25 bool m_needsAnimate;
26 bool m_deferCommits;
29 } // namespace blink
31 #endif