Bug 1279789 - Remove the printing methods from gfxASurface. r=eflores
authorJonathan Watt <jwatt@jwatt.org>
Tue, 14 Jun 2016 19:26:40 +0100
changeset 341835 248457986c11278a57928e75218f4fce5fc8ac60
parent 341834 4d5124b4bc5b05828884b8c01e11c104a51a4ef6
child 341836 5512762e8f132e0b16748ace9303165880c48c97
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseflores
bugs1279789
milestone50.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 1279789 - Remove the printing methods from gfxASurface. r=eflores
gfx/thebes/gfxASurface.cpp
gfx/thebes/gfxASurface.h
--- a/gfx/thebes/gfxASurface.cpp
+++ b/gfx/thebes/gfxASurface.cpp
@@ -348,46 +348,16 @@ gfxASurface::CairoStatus()
 /* 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()
-{
-    return NS_OK;
-}
-
-nsresult
-gfxASurface::AbortPrinting()
-{
-    return NS_OK;
-}
-
-nsresult
-gfxASurface::BeginPage()
-{
-    return NS_OK;
-}
-
-nsresult
-gfxASurface::EndPage()
-{
-    return NS_OK;
-}
-
 gfxContentType
 gfxASurface::ContentFromFormat(gfxImageFormat format)
 {
     switch (format) {
         case SurfaceFormat::A8R8G8B8_UINT32:
             return gfxContentType::COLOR_ALPHA;
         case SurfaceFormat::X8R8G8B8_UINT32:
         case SurfaceFormat::R5G6B5_UINT16:
--- a/gfx/thebes/gfxASurface.h
+++ b/gfx/thebes/gfxASurface.h
@@ -59,23 +59,16 @@ public:
 
     void SetDeviceOffset(const gfxPoint& offset);
     gfxPoint GetDeviceOffset() const;
 
     void Flush() const;
     void MarkDirty();
     void MarkDirty(const gfxRect& r);
 
-    /* Printing backend functions */
-    virtual nsresult BeginPrinting(const nsAString& aTitle, const nsAString& aPrintToFileName);
-    virtual nsresult EndPrinting();
-    virtual nsresult AbortPrinting();
-    virtual nsresult BeginPage();
-    virtual nsresult EndPage();
-
     void SetData(const cairo_user_data_key_t *key,
                  void *user_data,
                  thebes_destroy_func_t destroy);
     void *GetData(const cairo_user_data_key_t *key);
 
     virtual void Finish();
 
     /**