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. 4 5 #ifndef CC_LAYERS_PERFORMANCE_PROPERTIES_H_ 6 #define CC_LAYERS_PERFORMANCE_PROPERTIES_H_ 7 8 #include "ui/gfx/transform.h" 9 10 namespace cc { 11 12 // Container for properties used to measure performance 13 template <typename LayerType> 14 struct CC_EXPORT PerformanceProperties { PerformancePropertiesPerformanceProperties15 PerformanceProperties() 16 : num_fixed_point_hits(0), translation_from_last_frame(0.f) {} 17 18 // This value stores the numer of times a layer has hit a fixed point 19 // during commit. It is used to detect jitter in layers. 20 int num_fixed_point_hits; 21 float translation_from_last_frame; 22 gfx::Transform last_commit_screen_space_transform; 23 }; 24 25 } // namespace cc 26 27 #endif // CC_LAYERS_PERFORMANCE_PROPERTIES_H_ 28