summaryrefslogtreecommitdiffstats
path: root/chromium/cc/layers/performance_properties.h
blob: 5d1f4462d24273d20a28852bce345e042107244b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CC_LAYERS_PERFORMANCE_PROPERTIES_H_
#define CC_LAYERS_PERFORMANCE_PROPERTIES_H_

#include "ui/gfx/transform.h"

namespace cc {

// Container for properties used to measure performance
template <typename LayerType>
struct CC_EXPORT PerformanceProperties {
  PerformanceProperties()
      : num_fixed_point_hits(0), translation_from_last_frame(0.f) {}

  // This value stores the numer of times a layer has hit a fixed point
  // during commit. It is used to detect jitter in layers.
  int num_fixed_point_hits;
  float translation_from_last_frame;
  gfx::Transform last_commit_screen_space_transform;
};

}  // namespace cc

#endif  // CC_LAYERS_PERFORMANCE_PROPERTIES_H_