зеркало из https://github.com/mozilla/gecko-dev.git
8a68e6fb83
Currently the Gecko Profiler defines a moderate amount of stuff when MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including JS ones. This is making it difficult to separate Gecko's media stack for inclusion in Servo. This patch greatly simplifies how things are exposed. The starting point is: - GeckoProfiler.h can be #included unconditionally; - everything else from the profiler must be guarded by MOZ_GECKO_PROFILER. In practice this introduces way too many #ifdefs, so the patch loosens it by adding no-op macros for a number of the most common operations. The net result is that #ifdefs and macros are used a bit more, but almost nothing is exposed in non-MOZ_GECKO_PROFILER builds (including ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed is much simpler than before. Note also that in BHR, ThreadStackHelper is now entirely absent in non-MOZ_GECKO_PROFILER builds. |
||
---|---|---|
.. | ||
test | ||
AutoSQLiteLifetime.cpp | ||
AutoSQLiteLifetime.h | ||
Bootstrap.cpp | ||
Bootstrap.h | ||
CreateAppData.cpp | ||
EventTracer.cpp | ||
EventTracer.h | ||
MacApplicationDelegate.h | ||
MacApplicationDelegate.mm | ||
MacAutoreleasePool.h | ||
MacAutoreleasePool.mm | ||
MacLaunchHelper.h | ||
MacLaunchHelper.mm | ||
Makefile.in | ||
MozMeegoAppService.h | ||
ProfileReset.cpp | ||
ProfileReset.h | ||
UIKitDirProvider.h | ||
UIKitDirProvider.mm | ||
glxtest.cpp | ||
moz.build | ||
nsAndroidStartup.cpp | ||
nsAppRunner.cpp | ||
nsAppRunner.h | ||
nsAppStartupNotifier.cpp | ||
nsAppStartupNotifier.h | ||
nsCommandLineServiceMac.cpp | ||
nsCommandLineServiceMac.h | ||
nsConsoleWriter.cpp | ||
nsEmbedFunctions.cpp | ||
nsEmbeddingModule.cpp | ||
nsGDKErrorHandler.cpp | ||
nsGDKErrorHandler.h | ||
nsIAppStartupNotifier.h | ||
nsINativeAppSupport.idl | ||
nsIWinAppHelper.idl | ||
nsNativeAppSupportBase.cpp | ||
nsNativeAppSupportBase.h | ||
nsNativeAppSupportCocoa.mm | ||
nsNativeAppSupportDefault.cpp | ||
nsNativeAppSupportUnix.cpp | ||
nsNativeAppSupportWin.cpp | ||
nsNativeAppSupportWin.h | ||
nsSigHandlers.cpp | ||
nsSigHandlers.h | ||
nsUpdateDriver.cpp | ||
nsUpdateDriver.h | ||
nsWindowsRestart.cpp | ||
nsWindowsWMain.cpp | ||
nsX11ErrorHandler.cpp | ||
nsX11ErrorHandler.h | ||
nsXREDirProvider.cpp | ||
nsXREDirProvider.h | ||
platform.ini | ||
updaterfileutils_osx.h | ||
updaterfileutils_osx.mm |