Bug 1359155, part 4 - Remove gfxASurface::FormatStrideForWidth. r=mstange
authorJonathan Watt <jwatt@jwatt.org>
Thu, 30 Mar 2017 15:58:31 +0100
changeset 402946 0498fdd7a14a25a176221155df8bc9e24b2edf09
parent 402945 769a435f35250e2cb9955988e4ca174d84b2c2d7
child 402947 72f0302be66e5fcef5fb406b126bd2d723d917e5
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1359155
milestone55.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 1359155, part 4 - Remove gfxASurface::FormatStrideForWidth. r=mstange MozReview-Commit-ID: KmFvlWgmq8f
gfx/thebes/gfxASurface.cpp
gfx/thebes/gfxASurface.h
--- a/gfx/thebes/gfxASurface.cpp
+++ b/gfx/thebes/gfxASurface.cpp
@@ -335,24 +335,16 @@ int
 gfxASurface::CairoStatus()
 {
     if (!mSurfaceValid)
         return -1;
 
     return cairo_surface_status(mSurface);
 }
 
-/* static */
-int32_t
-gfxASurface::FormatStrideForWidth(gfxImageFormat format, int32_t width)
-{
-    cairo_format_t cformat = GfxFormatToCairoFormat(format);
-    return cairo_format_stride_for_width(cformat, (int)width);
-}
-
 nsresult
 gfxASurface::BeginPrinting(const nsAString& aTitle, const nsAString& aPrintToFileName)
 {
     return NS_OK;
 }
 
 nsresult
 gfxASurface::EndPrinting()
--- a/gfx/thebes/gfxASurface.h
+++ b/gfx/thebes/gfxASurface.h
@@ -92,21 +92,16 @@ public:
     /**
      * Creates a new ARGB32 image surface with the same contents as this surface.
      * Returns null on error.
      */
     already_AddRefed<gfxImageSurface> CopyToARGB32ImageSurface();
 
     int CairoStatus();
 
-    /* Provide a stride value that will respect all alignment requirements of
-     * the accelerated image-rendering code.
-     */
-    static int32_t FormatStrideForWidth(gfxImageFormat format, int32_t width);
-
     static gfxContentType ContentFromFormat(gfxImageFormat format);
 
     /**
      * Record number of bytes for given surface type.  Use positive bytes
      * for allocations and negative bytes for deallocations.
      */
     static void RecordMemoryUsedForSurfaceType(gfxSurfaceType aType,
                                                int32_t aBytes);