| 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 | 784 |
| 785 V8SVGElement_OffsetParent_AttributeGetter = 887, | 785 V8SVGElement_OffsetParent_AttributeGetter = 887, |
| 786 V8SVGElement_OffsetTop_AttributeGetter = 888, | 786 V8SVGElement_OffsetTop_AttributeGetter = 888, |
| 787 V8SVGElement_OffsetLeft_AttributeGetter = 889, | 787 V8SVGElement_OffsetLeft_AttributeGetter = 889, |
| 788 V8SVGElement_OffsetWidth_AttributeGetter = 890, | 788 V8SVGElement_OffsetWidth_AttributeGetter = 890, |
| 789 V8SVGElement_OffsetHeight_AttributeGetter = 891, | 789 V8SVGElement_OffsetHeight_AttributeGetter = 891, |
| 790 HTMLMediaElementPreloadNone = 892, | 790 HTMLMediaElementPreloadNone = 892, |
| 791 HTMLMediaElementPreloadMetadata = 893, | 791 HTMLMediaElementPreloadMetadata = 893, |
| 792 HTMLMediaElementPreloadAuto = 894, | 792 HTMLMediaElementPreloadAuto = 894, |
| 793 HTMLMediaElementPreloadDefault = 895, | 793 HTMLMediaElementPreloadDefault = 895, |
| 794 OfflineAudioContextStartRendering = 896, | |
| 795 OfflineAudioContextSuspend = 897, | |
| 796 OfflineAudioContextResume = 898, | |
| 797 | 794 |
| 798 // Add new features immediately above this line. Don't change assigned | 795 // Add new features immediately above this line. Don't change assigned |
| 799 // numbers of any item, and don't reuse removed slots. | 796 // numbers of any item, and don't reuse removed slots. |
| 800 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 797 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 801 // to update the UMA mapping. | 798 // to update the UMA mapping. |
| 802 NumberOfFeatures, // This enum value must be last. | 799 NumberOfFeatures, // This enum value must be last. |
| 803 }; | 800 }; |
| 804 | 801 |
| 805 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 802 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 806 static void count(const Frame*, Feature); | 803 static void count(const Frame*, Feature); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 | 887 |
| 891 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 888 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 892 | 889 |
| 893 CountBits m_countBits; | 890 CountBits m_countBits; |
| 894 BitVector m_CSSFeatureBits; | 891 BitVector m_CSSFeatureBits; |
| 895 }; | 892 }; |
| 896 | 893 |
| 897 } // namespace blink | 894 } // namespace blink |
| 898 | 895 |
| 899 #endif // UseCounter_h | 896 #endif // UseCounter_h |
| OLD | NEW |