gecko-dev/widget/android
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
..
bindings Bug 1322650 - Add jni::GetAPIVersion() to get Android API version r=jchen 2017-05-15 09:37:55 -05:00
fennec Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
jni Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
ANRReporter.cpp Bug 1360471 (part 4) - Use a bitfield to represent profiler features. r=mstange. 2017-05-01 14:23:34 +10:00
ANRReporter.h
AndroidAlerts.cpp
AndroidAlerts.h
AndroidBridge.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
AndroidBridge.h Bug 1347648 - part1 : only request Android audio focus for audible media. r=snorp 2017-03-27 10:59:04 +08:00
AndroidBridgeUtilities.h
AndroidCompositorWidget.cpp Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidCompositorWidget.h Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidContentController.cpp Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidContentController.h Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidDirectTexture.h
AndroidGraphicBuffer.h
AndroidJNI.cpp
AndroidJNIWrapper.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
AndroidJNIWrapper.h
AndroidJavaWrappers.cpp
AndroidJavaWrappers.h
AndroidUiThread.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
AndroidUiThread.h
EventDispatcher.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
EventDispatcher.h Bug 1362195 - 1. Add EventDispatcher::Dispatch for C++ code; r=snorp 2017-05-11 16:40:17 -04:00
GeckoBatteryManager.h
GeckoEditableSupport.cpp Bug 1339543 part 5 Remove unnecessary stuff from PuppetWidget r=smaug 2017-05-17 20:46:47 +09:00
GeckoEditableSupport.h Bug 1353799 - 2. Update current composition when setting/removing spans; r=esawin 2017-04-27 20:59:42 -04:00
GeckoNetworkManager.h
GeckoProcessManager.h Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin 2017-03-07 22:34:39 -05:00
GeckoScreenOrientation.h
GeneratedJNINatives.h Bug 1368907 - Part5 - Regenerate the JNI glue codes after renaming the java files. r=jolin 2017-06-12 16:30:57 +08:00
GeneratedJNIWrappers.cpp Bug 1368954 - [Part1] Use reflection to avoid build bustage when source code is only included in Nightly. r=jolin,nalexander 2017-06-15 11:16:21 +08:00
GeneratedJNIWrappers.h Bug 1368954 - [Part1] Use reflection to avoid build bustage when source code is only included in Nightly. r=jolin,nalexander 2017-06-15 11:16:21 +08:00
GfxInfo.cpp
GfxInfo.h
PrefsHelper.h
moz.build Bug 1368597 label CompositorWidget and WindowSurface as Graphics BUG_COMPONENT r=rhunt 2017-05-30 14:29:22 +12:00
nsAndroidProtocolHandler.cpp
nsAndroidProtocolHandler.h
nsAppShell.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsAppShell.h Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin 2017-03-07 22:34:39 -05:00
nsClipboard.cpp
nsClipboard.h
nsDeviceContextAndroid.cpp Bug 1331820 - Fix misuse of NS_NewNativeLocalFile in widget/android/. r=blassey 2017-01-21 15:43:41 +09:00
nsDeviceContextAndroid.h
nsIAndroidBridge.idl Bug 1337325 - Remove unused zoom and scroll code from browser.js r=kats 2017-02-12 13:33:42 +01:00
nsIdleServiceAndroid.cpp
nsIdleServiceAndroid.h
nsLookAndFeel.cpp
nsLookAndFeel.h
nsPrintOptionsAndroid.cpp
nsPrintOptionsAndroid.h
nsScreenManagerAndroid.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
nsScreenManagerAndroid.h Bug 1194751 - Part 6.1 change nsScreenManagerAndroid::ScreenForId to a concrete method. r=snorp 2017-03-09 19:30:53 +08:00
nsWidgetFactory.cpp
nsWindow.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsWindow.h Bug 1370605 - Don't wait for a resize before entering fullscreen on Android r=esawin 2017-06-16 11:02:03 -05:00