skia2/include
ericrk 369e9375a3 Add Histogram Macros to Skia
Adds a set of histogram macros to Skia, modeled after Chrome's
UMA_HISTOGRAM_* macros. These allow logging of high frequency events,
and are useful to analyze real world usage of certain features.

By default, these macros are no-ops. Users can provide a custom
header file which defines these macros if they wish to collect
histogram data. Chrome will provide such a header.

I've currently only added two macros:
- SK_HISTOGRAM_BOOLEAN - logs a true/false type relationship (whether
we are tiling a texture or not on each draw).
- SK_HISTOGRAM_ENUMERATION - logs a set of potential values (which of
a number of choices were selected for the texture upload path).

We could add more unused macros at the moment, but it seems easier to
add these as needed, WDYT?

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1652053004

Review URL: https://codereview.chromium.org/1652053004
2016-02-05 15:32:36 -08:00
..
android Move SkBitmapRegionDecoder to include/android and src/android 2015-11-13 06:11:09 -08:00
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c Documentation: C API comments 2015-09-01 10:45:09 -07:00
client/android Add gpu implementation of SkAvoidXfermode 2016-02-03 09:42:49 -08:00
codec Add SkAndroidCodec::getPixels 2016-02-04 06:14:24 -08:00
config Add Histogram Macros to Skia 2016-02-05 15:32:36 -08:00
core Add Histogram Macros to Skia 2016-02-05 15:32:36 -08:00
device/xps CMake, include/: changes to make fiddle 2.0 better 2015-12-01 09:02:49 -08:00
effects Move SkColorMatrixFilter implementation to core. 2016-02-01 12:09:07 -08:00
gpu skia: Add support for CHROMIUM_image backed textures. 2016-02-05 12:10:55 -08:00
images remove SkInstCnt 2015-06-26 11:45:03 -07:00
pathops Revert of Revert of remove SK_SUPPORT_LEGACY_PATHOP_ENUMS (patchset #1 id:1 of https://codereview.chromium.org/1203983003/) 2015-06-26 10:23:07 -07:00
ports Add option to specify a font collection when creating a 2016-02-03 07:22:52 -08:00
private Move Google3-specific stack limitation logic to template classes. 2016-02-05 07:02:38 -08:00
svg move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
utils SK_SUPPORT_LEGACY_DRAWFLTER typo 2016-01-25 06:23:54 -08:00
views SampleApp: Remove SkWindow::setColorType 2016-01-18 01:18:35 -08:00
xml Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00