Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 2411703004: Add usage counter to OffscreenCanvas API calls (Closed)
Patch Set: fix compile error Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 RTCPeerConnectionCreateDataChannelMaxRetransmitTime = 1648, 1372 RTCPeerConnectionCreateDataChannelMaxRetransmitTime = 1648,
1373 RTCPeerConnectionCreateDataChannelMaxRetransmits = 1649, 1373 RTCPeerConnectionCreateDataChannelMaxRetransmits = 1649,
1374 AudioContextCreateConstantSource = 1650, 1374 AudioContextCreateConstantSource = 1650,
1375 WebAudioConstantSourceNode = 1651, 1375 WebAudioConstantSourceNode = 1651,
1376 LoopbackEmbeddedInSecureContext = 1652, 1376 LoopbackEmbeddedInSecureContext = 1652,
1377 LoopbackEmbeddedInNonSecureContext = 1653, 1377 LoopbackEmbeddedInNonSecureContext = 1653,
1378 BlinkMacSystemFont = 1654, 1378 BlinkMacSystemFont = 1654,
1379 RTCConfigurationIceTransportsNone = 1655, 1379 RTCConfigurationIceTransportsNone = 1655,
1380 RTCIceServerURL = 1656, 1380 RTCIceServerURL = 1656,
1381 RTCIceServerURLs = 1657, 1381 RTCIceServerURLs = 1657,
1382 OffscreenCanvasTransferToImageBitmap2D = 1658,
1383 OffscreenCanvasTransferToImageBitmapWebGL = 1659,
1384 OffscreenCanvasCommit2D = 1660,
1385 OffscreenCanvasCommitWebGL = 1661,
1382 1386
1383 // Add new features immediately above this line. Don't change assigned 1387 // Add new features immediately above this line. Don't change assigned
1384 // numbers of any item, and don't reuse removed slots. 1388 // numbers of any item, and don't reuse removed slots.
1385 // Also, run update_use_counter_feature_enum.py in 1389 // Also, run update_use_counter_feature_enum.py in
1386 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1390 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1387 NumberOfFeatures, // This enum value must be last. 1391 NumberOfFeatures, // This enum value must be last.
1388 }; 1392 };
1389 1393
1390 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1394 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1391 static void count(const Frame*, Feature); 1395 static void count(const Frame*, Feature);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 // Tracks what features/properties need to be reported to the legacy 1464 // Tracks what features/properties need to be reported to the legacy
1461 // histograms. 1465 // histograms.
1462 BitVector m_featureBits; 1466 BitVector m_featureBits;
1463 BitVector m_CSSBits; 1467 BitVector m_CSSBits;
1464 } m_legacyCounter; 1468 } m_legacyCounter;
1465 }; 1469 };
1466 1470
1467 } // namespace blink 1471 } // namespace blink
1468 1472
1469 #endif // UseCounter_h 1473 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698