1. 15 Oct, 2013 1 commit
  2. 14 Oct, 2013 1 commit
  3. 09 Oct, 2013 1 commit
  4. 08 Oct, 2013 6 commits
  5. 03 Oct, 2013 2 commits
  6. 02 Oct, 2013 1 commit
  7. 30 Sep, 2013 1 commit
  8. 24 Sep, 2013 1 commit
  9. 23 Sep, 2013 1 commit
  10. 22 Sep, 2013 1 commit
  11. 20 Sep, 2013 2 commits
  12. 19 Sep, 2013 9 commits
    • Leon Scroggins III's avatar
    • Leon Scroggins III's avatar
      Add an option on SkImageDecoder to skip writing 0s. · 34835907
      Leon Scroggins III authored
      Only implemented for PNG.
      
      Add a getter and setter, and sets the default to false in the
      constructor. Also copies the setting in copyFieldsToOther.
      
      Fix an indpendent bug where fDitherImage was not being copied in
      copyFieldsToOther.
      
      In SkScaledBitmapSampler::begin, consolidate the settings passed in
      by passing a const reference to the decoder. The decoder can be
      referenced for its settings of dither, unpremultiplied, and now
      skipping writing zeroes. Update callers to use the new API. In png
      decoder, rather than passing around a pointer to an initial
      read of getDitherImage, and potentially changing it, look at the
      field on the decoder itself, and modify it directly. This is a
      change in behavior - now if that same decoder is used to decode
      a different image, the dither setting has changed. I think this is
      okay because A) the typical use case is to use a new decoder for
      each decode, B) we do not make any promises that a decode does not
      change the decoder and C) it makes the code in SkScaledBitmapSampler
      much cleaner.
      
      In SkScaledBitmapScampler, add new row procs for skipping zeroes. Now
      that choosing the row proc has five dimensions (src config, dst config,
      dither, skip writing zeroes, unpremultiplied), use a new method: each
      src/dst combination has a function for choosing the right proc depending
      on the decoder.
      
      SkScaledBitmapScampler::RowProc is now public for convenience.
      
      Remove Sample_Gray_D8888_Unpremul, which is effectively no different
      from Sample_Gray_D8888.
      
      In cases where unpremultiplied was trivial, such as 565 and when
      sampling from gray, decoding may now succeed.
      
      Add a benchmark (currently disabled) for comparing the speed of skipping
      writing zeroes versus not skipping. For this particular image, which is
      mostly transparent pixels, normal decoding took about 3.6 milliseconds,
      while skipping zeroes in the decode took only about 2.5 milliseconds
      (this is on a Nexus 4). Presumably it would be slower on an image
      with a small amount of transparency, but there will be no slowdown
      for an image which reports that it has no transparency.
      
      In SkImageRef_ashmem, always skip writing zeroes, since ashmem
      memory is guaranteed to be initialized to 0.
      
      Add a flag to skip writing zeroes in skimage.
      
      Add a regression test for choosing the rowproc to ensure I did not
      change any behavior accidentally.
      
      BUG:10016979
      Change-Id: I5986ae750b85a9c9d8e3cafeebe904910247de3b
      34835907
    • Derek Sollenberger's avatar
    • Derek Sollenberger's avatar
    • Derek Sollenberger's avatar
    • Derek Sollenberger's avatar
      Update Skia defines to be more in line with those used in chromium m30 · f4ad2a30
      Derek Sollenberger authored
      bug:10221459
      Change-Id: I89a5e7ee3966a3f548471d5b64e3b969b3a3e2d8
      f4ad2a30
    • Derek Sollenberger's avatar
      Merge skia changes from the skia chrome/m30_1599 branch. · 3d128a58
      Derek Sollenberger authored
      This captures revisions r11183 to r11196 (inclusive). However, some
      Canvas changes have already been cherry-picked so they will not show
      up in this CL.
      
      bug: 10285384
      
      Change-Id: I2b22937d68f18b40bb3914bd94142ed21f8ae4c0
      3d128a58
    • The Android Automerger's avatar
    • Derek Sollenberger's avatar
      Update Skia to use sftnly for character subsetting support for PDF · 29c49123
      Derek Sollenberger authored
      bug: 10314402
      Change-Id: I31ed88fd072f0dbb23f20f383d410d55f7bcd202
      29c49123
  13. 18 Sep, 2013 6 commits
  14. 17 Sep, 2013 2 commits
  15. 16 Sep, 2013 4 commits
    • Victoria Lease's avatar
    • Raph Levien's avatar
      Fix for ANR in getTextRunAdvances · f53e4998
      Raph Levien authored
      This is a fix for bug 10769257.
      
      In the case where origFontID is also the first font in the fallback
      list, the nextLogicalTypeface function was picking the first font in the
      fallback list, which was causing looping. Simply allowing it to advance
      to the next typeface fixes the ANR.
      
      Change-Id: Icc1389af46aff7f6b9c96cc0e8c8e9ae74039554
      f53e4998
    • Victoria Lease's avatar
      match original skia metrics for scalables · c7315136
      Victoria Lease authored
      Bug: 10310267
      Change-Id: If4ba6e07fcd3b8819d03f230adc705f15b974404
      c7315136
    • Raph Levien's avatar
      Fix for ANR in getTextRunAdvances · 50dcd4ac
      Raph Levien authored
      This is a fix for bug 10769257.
      
      In the case where origFontID is also the first font in the fallback
      list, the nextLogicalTypeface function was picking the first font in the
      fallback list, which was causing looping. Simply allowing it to advance
      to the next typeface fixes the ANR.
      
      Change-Id: Icc1389af46aff7f6b9c96cc0e8c8e9ae74039554
      50dcd4ac
  16. 12 Sep, 2013 1 commit