1. 12 Jan, 2011 1 commit
    • Wei-Ta Chen's avatar
      Do not merge. · b4f070ed
      Wei-Ta Chen authored
      Backport changes/fixes related to tile-based decoder from Honeycomb to
      Gingerbread.
      
      Bug: 3309014
      
      ////////////////////////////////////////////////////////////////////
      This is a combination of 3 commits.
      
      Fix 3071104, where decodeRegion returned false for some large image.
      
      decodeRegion() returns false when it cannot find a suitable color config
      for SkScaledBitmapSampler. Currently SkScaledBitmapSampler does not
      support RGB_565. If cinfo->out_color_space is set to RGB_565 and we
      require SkScaledBitmapSampler to do the extra sampling, we will fail in
      finding a suitable color config for SkScaledBitmapSampler.
      
      To fix it, we add support of RGB_565 into SkSclaedBitmapSampler.
      
      Change-Id: I506f4f8c55518ff356345e616e16c4b4cd0712de
      
      Fix 3117581, where BitmapRegionDecoder fails in building tile index for
      PNG files.
      
      The virtual method of building tile index in SkImageDecoder was changed to onBuildTileIndex().
      SkPNGImageDecoder needs to override the method.
      
      Change-Id: I7c78844a4d4f7aadff5fa8fa1aa99173317139b2
      
      Add fPreferQualityOverSpeed to SkImageDecoder.
      
      Currently the field only affects JPEG decode, in that when it is set
      to true, we choose a more accurate, but slightly slower, IDCT method.
      
      Bug: 3238925
      /////////////////////////////////////////////////////////////////////
      b4f070ed
  2. 24 Sep, 2010 1 commit
  3. 23 Sep, 2010 1 commit
  4. 20 Sep, 2010 3 commits
  5. 10 Sep, 2010 1 commit
  6. 09 Sep, 2010 2 commits
  7. 08 Sep, 2010 1 commit
  8. 06 Sep, 2010 1 commit
  9. 23 Aug, 2010 1 commit
    • Joseph Wen's avatar
      Fix bug in SkJPEGImageDecoder. · 4ec6d1c7
      Joseph Wen authored
      The calculation of actualSampleSize should be rounding up not down.
      
      Change-Id: I2964e92265d9e3b1e8e6843c3d1fc0a1528afd4a
      4ec6d1c7
  10. 19 Aug, 2010 1 commit
  11. 17 Aug, 2010 1 commit
  12. 16 Aug, 2010 1 commit
  13. 16 Jul, 2010 1 commit
  14. 19 May, 2010 2 commits
  15. 18 May, 2010 1 commit
  16. 12 May, 2010 2 commits
  17. 11 May, 2010 3 commits
  18. 10 May, 2010 2 commits
  19. 07 May, 2010 3 commits
  20. 06 May, 2010 3 commits
  21. 03 May, 2010 2 commits
  22. 28 Apr, 2010 4 commits
  23. 26 Apr, 2010 2 commits
    • Peter Eliasson's avatar
      Improved error handling when font loading fails. · 19ca923e
      Peter Eliasson authored
      Without this this patch, an application could trigger a platform crash
      by calling:
      
        Typeface typeface = Typeface.createFromFile("");
        boolean isBold = typeface.isBold();
      
      The crash occurs since the find_name_and_style function does not
      return an error code.
      
      Change-Id: Id1d2a43b47d956c5a52f01e7d4b8cbb12631d59a
      19ca923e
    • Andreas Borglin's avatar
      Added drawPosTextOnPath method. · a2dfb002
      Andreas Borglin authored
      The drawPosTextOnPath method allows for text positioned on
      a straight line to be drawn along a path.
      This method can be used by layout engines to implement the
      Canvas::drawTextOnPath method for complex scripts.
      
      Change-Id: I2f9c22b8c97eeacb61cd6de7429ba875a1e7ade9
      a2dfb002