OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 WindowScreenLeft = 697, | 633 WindowScreenLeft = 697, |
634 WindowScreenTop = 698, | 634 WindowScreenTop = 698, |
635 V8AnimationPlayer_Cancel_Method = 699, | 635 V8AnimationPlayer_Cancel_Method = 699, |
636 V8AnimationPlayer_Onfinish_AttributeGetter = 700, | 636 V8AnimationPlayer_Onfinish_AttributeGetter = 700, |
637 V8AnimationPlayer_Onfinish_AttributeSetter = 701, | 637 V8AnimationPlayer_Onfinish_AttributeSetter = 701, |
638 ElementOffsetParent = 702, | 638 ElementOffsetParent = 702, |
639 ElementOffsetTop = 703, | 639 ElementOffsetTop = 703, |
640 ElementOffsetLeft = 704, | 640 ElementOffsetLeft = 704, |
641 ElementOffsetWidth = 705, | 641 ElementOffsetWidth = 705, |
642 ElementOffsetHeight = 706, | 642 ElementOffsetHeight = 706, |
| 643 PrefixedPerformanceClearFrameTimings = 707, |
| 644 PrefixedPerformanceSetFrameTimingBufferSize = 708, |
643 | 645 |
644 // Add new features immediately above this line. Don't change assigned | 646 // Add new features immediately above this line. Don't change assigned |
645 // numbers of any item, and don't reuse removed slots. | 647 // numbers of any item, and don't reuse removed slots. |
646 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 648 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
647 // to update the UMA mapping. | 649 // to update the UMA mapping. |
648 NumberOfFeatures, // This enum value must be last. | 650 NumberOfFeatures, // This enum value must be last. |
649 }; | 651 }; |
650 | 652 |
651 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 653 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
652 static void count(const Frame*, Feature); | 654 static void count(const Frame*, Feature); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 bool recordMeasurement(Feature feature) { return m_countBits.recordMeasureme
nt(feature); } | 726 bool recordMeasurement(Feature feature) { return m_countBits.recordMeasureme
nt(feature); } |
725 void updateMeasurements(); | 727 void updateMeasurements(); |
726 | 728 |
727 CountBits m_countBits; | 729 CountBits m_countBits; |
728 BitVector m_CSSFeatureBits; | 730 BitVector m_CSSFeatureBits; |
729 }; | 731 }; |
730 | 732 |
731 } // namespace blink | 733 } // namespace blink |
732 | 734 |
733 #endif // UseCounter_h | 735 #endif // UseCounter_h |
OLD | NEW |