Changeset 122089 in webkit


Ignore:
Timestamp:
Jul 8, 2012 11:12:24 PM (12 years ago)
Author:
Laszlo Gombos
Message:

Introduce a build flag for low quality JPEG images
https://bugs.webkit.org/show_bug.cgi?id=90748

Reviewed by Adam Barth.

Source/WebCore:

Introduce build options for no JPEG dithering (USE(LOW_QUALITY_IMAGE_NO_JPEG_DITHERING))
and no JPEG fancy upsampling (USE(LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING)).

No new tests as there is no change in functionality.

  • platform/image-decoders/jpeg/JPEGImageDecoder.cpp:

(ditherMode):
(doFancyUpsampling):

Source/WTF:

Turn on the newly introduced flags for android.

  • wtf/Platform.h:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r121927 r122089  
     12012-07-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Introduce a build flag for low quality JPEG images
     4        https://bugs.webkit.org/show_bug.cgi?id=90748
     5
     6        Reviewed by Adam Barth.
     7
     8        Turn on the newly introduced flags for android.
     9
     10        * wtf/Platform.h:
     11
    1122012-07-05  Filip Pizlo  <fpizlo@apple.com>
    213
  • trunk/Source/WTF/wtf/Platform.h

    r121885 r122089  
    476476#define WTF_USE_SKIA 1
    477477#define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1
     478#define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1
     479#define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1
    478480#else
    479481#define WTF_USE_SKIA 1
  • trunk/Source/WebCore/ChangeLog

    r122087 r122089  
     12012-07-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Introduce a build flag for low quality JPEG images
     4        https://bugs.webkit.org/show_bug.cgi?id=90748
     5
     6        Reviewed by Adam Barth.
     7
     8        Introduce build options for no JPEG dithering (USE(LOW_QUALITY_IMAGE_NO_JPEG_DITHERING))
     9        and no JPEG fancy upsampling (USE(LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING)).
     10
     11        No new tests as there is no change in functionality.
     12
     13        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
     14        (ditherMode):
     15        (doFancyUpsampling):
     16
    1172012-07-08  Sheriff Bot  <webkit.review.bot@gmail.com>
    218
  • trunk/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

    r120613 r122089  
    8787#endif
    8888
    89 #if OS(ANDROID)
     89#if USE(LOW_QUALITY_IMAGE_NO_JPEG_DITHERING)
    9090inline J_DCT_METHOD dctMethod() { return JDCT_IFAST; }
    9191inline J_DITHER_MODE ditherMode() { return JDITHER_NONE; }
    92 inline bool doFancyUpsampling() { return false; }
    9392#else
    9493inline J_DCT_METHOD dctMethod() { return JDCT_ISLOW; }
    9594inline J_DITHER_MODE ditherMode() { return JDITHER_FS; }
     95#endif
     96
     97#if USE(LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING)
     98inline bool doFancyUpsampling() { return false; }
     99#else
    96100inline bool doFancyUpsampling() { return true; }
    97101#endif
Note: See TracChangeset for help on using the changeset viewer.