Bug 1736670 - IOSurface: Use the Plane constant for BytesPerElement. r=mstange
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 19 Oct 2021 18:40:19 +0000
changeset 596380 3e2fd3145608dcd18e24cd3a0cb6d189255c1158
parent 596379 55a504b8e61760bd89e5d34cbd313f4ff0dbd00a
child 596381 f45c40a6b0ad78b9d1edfc7a91ae82b7988b5607
push id38896
push userabutkovits@mozilla.com
push dateTue, 19 Oct 2021 21:51:00 +0000
treeherdermozilla-central@e9071741b84c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1736670
milestone95.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1736670 - IOSurface: Use the Plane constant for BytesPerElement. r=mstange Differential Revision: https://phabricator.services.mozilla.com/D128918
gfx/2d/MacIOSurface.cpp
--- a/gfx/2d/MacIOSurface.cpp
+++ b/gfx/2d/MacIOSurface.cpp
@@ -109,17 +109,17 @@ size_t CreatePlaneDictionary(CFTypeRefPt
                                   &kCFTypeDictionaryKeyCallBacks,
                                   &kCFTypeDictionaryValueCallBacks));
 
   AddDictionaryInt(aDict, kIOSurfacePlaneWidth, aSize.width);
   AddDictionaryInt(aDict, kIOSurfacePlaneHeight, aSize.height);
   AddDictionaryInt(aDict, kIOSurfacePlaneBytesPerRow, bytesPerRow);
   AddDictionaryInt(aDict, kIOSurfacePlaneOffset, aOffset);
   AddDictionaryInt(aDict, kIOSurfacePlaneSize, totalBytes);
-  AddDictionaryInt(aDict, kIOSurfaceBytesPerElement, aBytesPerPixel);
+  AddDictionaryInt(aDict, kIOSurfacePlaneBytesPerElement, aBytesPerPixel);
 
   return totalBytes;
 }
 
 /* static */
 already_AddRefed<MacIOSurface> MacIOSurface::CreateNV12Surface(
     const IntSize& aYSize, const IntSize& aCbCrSize, YUVColorSpace aColorSpace,
     ColorRange aColorRange) {