| OLD | NEW | 
|---|
| (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_ | 
| OLD | NEW | 
|---|