gecko-dev/layout/painting
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
..
ActiveLayerTracker.cpp Bug 1368252 - Call GetLayerActivity() instead of directly looking up frame's LayerActivityProperty(). r=mats 2017-05-28 11:22:39 +01:00
ActiveLayerTracker.h
BorderCache.h
BorderConsts.h Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats 2017-01-04 18:15:30 +08:00
DashedCornerFinder.cpp
DashedCornerFinder.h
DisplayItemClip.cpp Bug 1320014 Part 7 - Convert half corner indices #define to an enum. r=mats 2017-01-05 11:31:38 +08:00
DisplayItemClip.h
DisplayItemClipChain.cpp
DisplayItemClipChain.h
DisplayItemScrollClip.cpp
DisplayItemScrollClip.h
DisplayListClipState.cpp
DisplayListClipState.h
DottedCornerFinder.cpp Bug 1320014 Part 3 - Move Corner from namespace mozilla::css into mozilla. r=mats 2017-01-04 17:18:49 +08:00
DottedCornerFinder.h Bug 1320014 Part 3 - Move Corner from namespace mozilla::css into mozilla. r=mats 2017-01-04 17:18:49 +08:00
FrameLayerBuilder.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
FrameLayerBuilder.h Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
LayerState.h
MaskLayerImageCache.cpp Bug 1326579: Add some needed includes in layout/painting, to preemptively fix unified bustage. r=xidorn 2016-12-31 16:35:41 -08:00
MaskLayerImageCache.h Bug 1333366 Part 1 - Update document related to Corner and HalfCorner. r=mats 2017-01-24 18:37:05 +08:00
PaintTracker.cpp
PaintTracker.h
moz.build Bug 1341101 part 1 - Move nsCSSRendering::PaintGradient into its own file r=jrmuizel 2017-03-14 01:05:41 -05:00
nsCSSRendering.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsCSSRendering.h Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
nsCSSRenderingBorders.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsCSSRenderingBorders.h Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
nsCSSRenderingGradients.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsCSSRenderingGradients.h Bug 1360246 - Propagate the StackingContextHelper to the rest of the displaylist-building code. r=nical 2017-05-03 08:48:08 -04:00
nsDisplayItemTypes.h
nsDisplayItemTypesList.h Bug 929484 - Remove nsTableBorderBackground displayitem and nsTablePainter. r=mstange 2017-05-05 14:30:15 +08:00
nsDisplayList.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsDisplayList.h Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
nsDisplayListInvalidation.cpp
nsDisplayListInvalidation.h
nsImageRenderer.cpp Bug 1365189, part 1 - Prevent SVG elements that are neither displayable nor paint servers from painting. r=dholbert 2017-06-06 17:04:37 +01:00
nsImageRenderer.h Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00