1. 30 Nov, 2011 1 commit
    • Derek Sollenberger's avatar
      Fix rendering bug in pages with shadowed text. · 717c0091
      Derek Sollenberger authored
      Shadowed text currently does not get subjected to culling until
      immediately prior to rendering each glyph. This is problematic
      for any page with an axis greater than 32k as we can't covert
      the glyph coordinates to fixed point. Additionally, this is a
      large perf hit as we look at every shadowed glyph on the page
      for every draw call regardless of the canvas' clip.
      
      This fix enables shadowed text to be quickly rejected based on
      the canvas' clip when the draw text command is executed.
      
      Finally, a mirror image of this CL is currently under review for
      inclusion in the open-source Skia project.
      
      bug: 5571685
      Change-Id: I5df94eccecbd7d77a08004b5cbcca02120e390f7
      717c0091
  2. 17 Oct, 2011 1 commit
  3. 14 Oct, 2011 2 commits
  4. 12 Oct, 2011 1 commit
    • Derek Sollenberger's avatar
      Fix font issue for some sites using offline reading mode. · 40646971
      Derek Sollenberger authored
      Custom fonts (e.g. WebFonts) were not properly serialized and
      resulted in unexpected behavior when a picture was saved for
      offline reading. This CL serializes the custom font so that we
      can use it later when playing the picture back.
      
      bug: 5388379
      Change-Id: Ic29e9bf10ac70c46a45f3902ea93558b235fd2dd
      40646971
  5. 06 Sep, 2011 1 commit
  6. 02 Sep, 2011 2 commits
  7. 01 Sep, 2011 1 commit
  8. 30 Aug, 2011 1 commit
  9. 24 Aug, 2011 1 commit
  10. 04 Aug, 2011 1 commit
    • Michael Kolb's avatar
      remove font cache log msg · 00f5211d
      Michael Kolb authored
             Bug: 5122491
             Remove font cache purge log message
      
      Change-Id: Ib5a23433b8cb1402c96b8d510ed875be7400c80c
      00f5211d
  11. 26 Jul, 2011 2 commits
  12. 21 Jul, 2011 1 commit
    • Vikas Arora's avatar
      Add image cropping support in Skia-WebP decoder. · 8c52c218
      Vikas Arora authored
      Implement virtual methods 'onBuildTileIndex' & 'onDecodeRegion' for
      supporting image cropping for Skia-WebP image Decoder.
      Utilize the native rescaling+Cropping capability of WebP-Decoder to
      implement image cropping.
      - Incorporated code comments from Pascal.
      - Found one bug w.r.t setting SampleSize. Rectifying that in this patch.
      
      Change-Id: Ib7b04129a65ed17f845d0600f3553b9b24846838
      8c52c218
  13. 18 Jul, 2011 1 commit
    • Vikas Arora's avatar
      Implement on-the-fly image resizing (down-scaling). · c5013e38
      Vikas Arora authored
      Implement on-the-fly image resizing (down-scaling) for WebP images.
      The image decoder is aware of the device memory constriant via
      SampleSize set by the application like Webkit/WebCore.
      sampleSize=1 implies no down-scaling. Likewise, SampleSize=2 implies
      resizing image width & height by a factor of '1/2', resulting in '1/4'th
      size for the decoded image.
      SampleSize is merely a hint from the application to the decoder. Decoder
      may choose to ignore this hint and decode the image at full scale.
      Native WebP image decoder (new APIs) supports on-the-fly resizing.
      Making the Skia-WebP decoder 'SampleSize' aware and implementing the
      on-the-fly resizing in this change.
      
      Change-Id: Ibbd62baf4a6ad2d3904aafb22807f4513641e64c
      c5013e38
  14. 15 Jul, 2011 2 commits
    • Chet Haase's avatar
      42ab963d
    • Chet Haase's avatar
      Read font info from system config files · 9c0ebce1
      Chet Haase authored
      This change adds new files in /system/etc: system_fonts.xml and
      fallback_fonts.xml. The change also allows a third file to be added
      by vendors in /vendor/etc/fallback_fonts.xml. These files, loaded at
      boot time, mimic the logic that used to be in code, but which is
      now configurable through editing these files, making the system more
      flexible and easy to work with for us and vendors as future fonts
      are added to the system.
      
      Change-Id: Iac0af4924ca0454c6dde4d53058b1425200ed4b7
      9c0ebce1
  15. 14 Jul, 2011 1 commit
    • Vikas Arora's avatar
      Use the WebP native color-modes for Skia-WebP-Decoder. · 13f6c47b
      Vikas Arora authored
      Remove the custom code for decoding WebP image. Use the native
      color-modes RGBA, RGBA_4444 & RGB_565 for Skia-WebP-Decoder class.
      - Removed other dead code as well.
      
      Change-Id: I414778b71aaea754d92ed6b07ebd7b6336e1f102
      13f6c47b
  16. 12 Jul, 2011 2 commits
  17. 11 Jul, 2011 1 commit
  18. 07 Jul, 2011 4 commits
    • Russell Brenner's avatar
      Add null-check in remove_from_family() · 8af39c6f
      Russell Brenner authored
      An invalid face is not expected here, but still should not be allowed
      to crash.
      
      Bug: 5002710
      Change-Id: Ifd11e918f968d5eef67932e514ea6754819fb7a5
      8af39c6f
    • Russell Brenner's avatar
    • Russell Brenner's avatar
      Restored null-check in SkFontHost::NextLogicalFont · 04b5451c
      Russell Brenner authored
      This updated line was to have been included in CL 118811, but some
      bad gerrit-fu caused it to go amiss.
      
      Bug: 4390209
      Change-Id: Ia7b8e2849cfae3cdfbebc09a91fe26f2355f1ebb
      04b5451c
    • Vikas Arora's avatar
      Add support for WebP incremental decoding. · 82ed3807
      Vikas Arora authored
      Updated the Android-Skia-WebP decoder with following changes:
      - Added support for incremental WebP decoding. So instead of allocating
        input buffer corresponding to the whole image (could be few MBs), the
        input is read iteratively in a buffer size of 64KB.
      - Refactored onDecode method (O(200) lines) to a smaller (O(30) lines)
        method with 2-3 helper functions.
      - Removed low (byte-level) parsing from this code and calling WebP
        public APIs for the same (like WebPGetInfo).
      - Incorporated Pascal's feedback.
      - Few more feedback from Pascal.
      Change-Id: I104822ec3922eca1efc19422908f07770c4c140b
      82ed3807
  19. 06 Jul, 2011 2 commits
    • Russell Brenner's avatar
      Add Droid Ethiopic to fallback list · 9b37d411
      Russell Brenner authored
      Regular and Bold styles are now included in the fallback list.
      
      Bug: 4902641
      Change-Id: Ia88dedb136ab00dee3ae4e4cc5552e0d3a743f13
      9b37d411
    • Russell Brenner's avatar
      Allow multiple styles for fallback fonts · 792a256a
      Russell Brenner authored
      Fallback fonts are now recorded with their styles in the list of
      available fonts (which is now a doubly-linked list). NextLogicalFont()
      has a new parameter, providing the originally requested fontID, from
      which we can determine the requested style, which we then pass to
      find_best_face() to pick from the available styles.
      
      SkFontHost::NextLogicalFont() no longer assumes that origFontID is
      valid (see http://b/issue?id=4980240).
      
      Bug: 4390209
      Change-Id: I2e600f7eb75d207e95bae8cc9ed8379ade396058
      792a256a
  20. 30 Jun, 2011 1 commit
  21. 29 Jun, 2011 1 commit
    • Russell Brenner's avatar
      Allow multiple styles for fallback fonts · da49dc51
      Russell Brenner authored
      Fallback fonts are now recorded with their styles in the list of
      available fonts (which is now a doubly-linked list). NextLogicalFont()
      has a new parameter, providing the originally requested fontID, from
      which we can determine the requested style, which we then pass to
      find_best_face() to pick from the available styles.
      
      Bug: 4390209
      Change-Id: I0c45fd7cefd00df3805bd75df77c519f6d922fe7
      da49dc51
  22. 27 Jun, 2011 2 commits
  23. 25 Jun, 2011 1 commit
    • Russell Brenner's avatar
      Removed invalid assert · bbe1a697
      Russell Brenner authored
      Test for alpha==255 is apparently cloned from
      S32A_Opaque_BlitRow32_arm, but does not apply to Blend variant.
      
      Change-Id: I5d6154399265cb6f8291595a9bc62b2741301590
      bbe1a697
  24. 24 Jun, 2011 6 commits
  25. 23 Jun, 2011 1 commit