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

Side by Side Diff: cc/test/push_properties_counting_layer_impl.h

Issue 2456093003: Enable more layer_tree_host_unittest for LayerTreeHostRemote. (Closed)
Patch Set: Minor polish on refactored test class. Created 4 years, 1 month 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
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CC_TEST_PUSH_PROPERTIES_COUNTING_LAYER_IMPL_H_
6 #define CC_TEST_PUSH_PROPERTIES_COUNTING_LAYER_IMPL_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h"
12 #include "cc/layers/layer_impl.h"
13
14 namespace cc {
15
16 class LayerTreeImpl;
17
18 class PushPropertiesCountingLayerImpl : public LayerImpl {
19 public:
20 static std::unique_ptr<PushPropertiesCountingLayerImpl> Create(
21 LayerTreeImpl* tree_impl,
22 int id);
23 ~PushPropertiesCountingLayerImpl() override;
24
25 // LayerImpl implementation.
26 void PushPropertiesTo(LayerImpl* layer) override;
27 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
28
29 size_t push_properties_count() const { return push_properties_count_; }
30 void reset_push_properties_count() { push_properties_count_ = 0; }
31
32 private:
33 PushPropertiesCountingLayerImpl(LayerTreeImpl* tree_impl, int id);
34
35 size_t push_properties_count_;
36
37 DISALLOW_COPY_AND_ASSIGN(PushPropertiesCountingLayerImpl);
38 };
39
40 } // namespace cc
41
42 #endif // CC_TEST_PUSH_PROPERTIES_COUNTING_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/push_properties_counting_layer.cc ('k') | cc/test/push_properties_counting_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698