gecko-dev/gfx/gl
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
..
AndroidNativeWindow.h Bug 1322650 - Adjust Android Flash support to API changes r=jchen 2017-05-15 09:37:52 -05:00
AndroidSurfaceTexture.cpp Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen 2017-05-15 09:37:43 -05:00
AndroidSurfaceTexture.h Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen 2017-05-15 09:37:43 -05:00
DecomposeIntoNoRepeatTriangles.cpp
DecomposeIntoNoRepeatTriangles.h
EGLUtils.cpp
EGLUtils.h
ForceDiscreteGPUHelperCGL.h
GfxTexturesReporter.cpp Bug 1297315 - Fix Wmaybe-uninitialized warning and get rid of goto statement in GLContextProviderGLX.cpp and GfxTexturesReporter.cpp. r=jgilbert 2016-08-23 14:30:37 +08:00
GfxTexturesReporter.h Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
GLBlitHelper.cpp Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow 2017-05-18 22:59:07 +08:00
GLBlitHelper.h Bug 1317656 - Cleanup more gonk/b2g dependent code r=nical 2016-11-15 22:01:30 -08:00
GLConsts.h Bug 1372489 - Update GLConsts.h and GLDefs.h. r=jgilbert. 2017-06-15 14:43:53 +08:00
GLContext.cpp Bug 1367570 - Explicitly set vertex attribs [1,3] to opaque black - r=jgilbert 2017-05-26 19:48:50 -07:00
GLContext.h Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
GLContextCGL.h Bug 1347679 - Determine ContextProfile from driver and simplify version parsing. - r=daoshengmu 2017-03-17 17:02:01 -07:00
GLContextEAGL.h Bug 1339256 - Detect robust_buffer_access_behavior. - r=daoshengmu 2017-03-09 18:57:41 -08:00
GLContextEGL.h Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert 2017-05-15 09:37:44 -05:00
GLContextFeatures.cpp Bug 1347679 - Determine ContextProfile from driver and simplify version parsing. - r=daoshengmu 2017-03-17 17:02:01 -07:00
GLContextGLX.h Bug 1347679 - Determine ContextProfile from driver and simplify version parsing. - r=daoshengmu 2017-03-17 17:02:01 -07:00
GLContextProvider.h Bug 1288860 - Change GLContextProvider to use CompositorWidget. r=jrmuizel 2016-07-25 14:41:00 -04:00
GLContextProviderCGL.mm Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
GLContextProviderEAGL.mm Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
GLContextProviderEGL.cpp Bug 1371557 - Enable depth buffer on GLContextProviderEGL for webrender r=nical 2017-06-14 19:32:04 +09:00
GLContextProviderGLX.cpp Bug 1371434. Use LOCAL_GLX_CONTEXT_PROFILE_MASK_ARB instead of LOCAL_GLX_CONTEXT_FLAGS_ARB. r=kvark 2017-06-12 16:15:08 -04:00
GLContextProviderImpl.h Bug 1326421 - Update GL context creation code to use compositor-specific WebRender flag instead of a global pref. r=dvander 2017-01-13 15:16:52 -05:00
GLContextProviderNull.cpp Bug 1326421 - Update GL context creation code to use compositor-specific WebRender flag instead of a global pref. r=dvander 2017-01-13 15:16:52 -05:00
GLContextProviderWGL.cpp Bug 1347679 - Determine ContextProfile from driver and simplify version parsing. - r=daoshengmu 2017-03-17 17:02:01 -07:00
GLContextSymbols.h Bug 1363473 - Remove typedefs from GLContextSymbols.h - r=jgilbert 2017-05-11 14:47:19 -07:00
GLContextTypes.cpp
GLContextTypes.h Bug 1339256 - Only request robustness if requested on EGL - r=daoshengmu 2017-03-09 18:57:47 -08:00
GLContextWGL.h Bug 1339256 - Detect robust_buffer_access_behavior. - r=daoshengmu 2017-03-09 18:57:41 -08:00
GLDebugUtils.cpp
GLDebugUtils.h
GLDefs.h Bug 1372489 - Update GLConsts.h and GLDefs.h. r=jgilbert. 2017-06-15 14:43:53 +08:00
GLLibraryEGL.cpp Bug 1366512 - Export some EGL functions for D3D NV12 texture format. v2. r=jgilbert 2017-05-28 21:15:07 -07:00
GLLibraryEGL.h Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
GLLibraryLoader.cpp Bug 1344433 - Reformat. - r=daoshengmu 2017-03-06 15:39:36 -08:00
GLLibraryLoader.h Bug 1344433 - Reformat. - r=daoshengmu 2017-03-06 15:39:36 -08:00
GLParseRegistryXML.py
GLReadTexImageHelper.cpp Bug 1304291 - Move driver workaround code into fReadPixels and remove alpha check. r=jgilbert 2016-10-27 23:23:00 -04:00
GLReadTexImageHelper.h
GLScreenBuffer.cpp Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert 2017-05-15 09:37:44 -05:00
GLScreenBuffer.h Bug 1325483 - Query DRAW_BUFFER0 from GLScreenBuffer. - r=daoshengmu 2016-12-25 13:44:42 -08:00
GLTextureImage.cpp Bug 1311642 - Give GLUploadHelpers some love. r=nical 2016-10-21 13:27:41 +01:00
GLTextureImage.h Bug 1311642 - Remove BeginUpdate and EndUpdate from GLTextureImage. r=nical 2016-10-20 17:11:00 +01:00
GLTypes.h Bug 1366512 - Export some EGL functions for D3D NV12 texture format. v2. r=jgilbert 2017-05-28 21:15:07 -07:00
GLUploadHelpers.cpp Bug 1324312 - Handle alloc failure when uploading texture. r=sotaro 2017-01-23 20:00:05 +00:00
GLUploadHelpers.h Bug 1311642 - Give GLUploadHelpers some love. r=nical 2016-10-21 13:27:41 +01:00
GLXLibrary.h Bug 1344433 - Use WRAP() macros. - r=daoshengmu 2017-03-06 15:39:36 -08:00
HeapCopyOfStackArray.h
moz.build Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert 2017-05-15 09:37:44 -05:00
ScopedGLHelpers.cpp Bug 1355763 - Handle UNPACK_ state for ConvertPlanarYCbCr, and reject blits with _SKIP_* for now. - r=daoshengmu 2017-04-13 09:14:38 -07:00
ScopedGLHelpers.h Bug 1355763 - Handle UNPACK_ state for ConvertPlanarYCbCr, and reject blits with _SKIP_* for now. - r=daoshengmu 2017-04-13 09:14:38 -07:00
SharedSurface.cpp Bug 1370308 - Don't crash when using SkiaGL with SurfaceTexture on Android r=jgilbert 2017-06-15 10:59:01 -05:00
SharedSurface.h Bug 1365099 - Convert NS_GetCurrentThread uses in gfx (r=dvander) 2017-06-12 20:20:08 -07:00
SharedSurfaceANGLE.cpp Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
SharedSurfaceANGLE.h Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
SharedSurfaceD3D11Interop.cpp Bug 1345648 - Use ID3DDeviceContextState to support NV_dx_interop2 on D3D11 on AMD - r=kvark 2017-03-09 12:54:58 -08:00
SharedSurfaceD3D11Interop.h Bug 1325835 - Support dx_interop on Intel. - r=jrmuizel 2017-01-31 16:22:11 -08:00
SharedSurfaceEGL.cpp Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert 2017-05-15 09:37:50 -05:00
SharedSurfaceEGL.h Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert 2017-05-15 09:37:44 -05:00
SharedSurfaceGL.cpp Bug 925645 - Turn SharedSurface::mGL into a WeakPtr<> - r=jgilbert 2016-10-24 16:35:31 +01:00
SharedSurfaceGL.h Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
SharedSurfaceGLX.cpp Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
SharedSurfaceGLX.h Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
SharedSurfaceIO.cpp Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow 2017-05-18 22:59:07 +08:00
SharedSurfaceIO.h Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
SkiaGLGlue.cpp Bug 1340627 - part 5 - fix SkiaGL glue for Skia m59. r=mchang 2017-05-09 22:31:07 -04:00
SkiaGLGlue.h Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang 2016-10-24 22:40:59 -04:00
SurfaceTypes.cpp Bug 1305655 - Decouple Gonk TextureForwarder and CompositableForwarder (followup bug 1281456) r=nical 2016-09-28 07:04:13 +02:00
SurfaceTypes.h Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert 2017-05-15 09:37:44 -05:00
TextureImageEGL.cpp Bug 1311642 - Give GLUploadHelpers some love. r=nical 2016-10-21 13:27:41 +01:00
TextureImageEGL.h Bug 1311642 - Remove BeginUpdate and EndUpdate from GLTextureImage. r=nical 2016-10-20 17:11:00 +01:00
WGLLibrary.h Bug 1344433 - Reformat. - r=daoshengmu 2017-03-06 15:39:36 -08:00