1. 16 May, 2012 1 commit
  2. 14 May, 2012 2 commits
    • Romain Guy's avatar
      Add new utfToGlyphs API for GL renderer · 7249c95f
      Romain Guy authored
      Bug #6408362
      
      Change-Id: I69c21d9aeeb663aa6244132ce8d598be888886e2
      7249c95f
    • Derek Sollenberger's avatar
      Cleanup pixel ref mutexes in Skia · f1a1e8d5
      Derek Sollenberger authored
      Mutexes in pixelrefs were done very sloppily initially. The code (a) assumes all
      pixelref subclasses want a mutex to guard their lock/unlock virtuals, and (b)
      most subclasses use the same mutex for *all* of their instances, even when there
      is no explicit need to guard modifying one instances with another.
      
      When we try drawing bitmaps from multiple threads, we are seeing a lot of slow-
      down from these mutexes. This CL has two changes to try to speed things up.
      
      1. Add setPreLocked(), for pixelrefs who never need the onLockPixels
      virtual to be called. This speeds up those subclasses in multithreaded environs
      as it avoids the mutex lock all together (e.g. SkMallocPixelRef).
      
      2. Add setMutex() to allow a subclass to change the mutex choice. ashmem wants
      this, since its unflattening constructor cannot pass down the null, it needs
      to cleanup afterwards.
      
      see https://codereview.appspot.com/6199075/
      
      bug: 6469917
      Change-Id: I81a7cfa0b2ead5a42059697eafa58de1e7a87da2
      f1a1e8d5
  3. 11 May, 2012 1 commit
  4. 10 May, 2012 1 commit
  5. 09 May, 2012 3 commits
    • Fabrice Di Meglio's avatar
      Fix bugs with duplicate fallback fonts. · 127ddb8a
      Fabrice Di Meglio authored
      Cleaned up the system font and fallback font list
      memory management using smart arrays.
      
      Cleaned up the addition and removal of font records from
      the font family lists.  Previously, list insertion was occurring
      when the typeface was constructed, which obscured much of the logic.
      
      Bug #6406249 SystemUI crashed when changing Locale
      
      Change-Id: I3e33f7868f1b0a6835b91652652a457799d991d5
      127ddb8a
    • Jeff Brown's avatar
      Fix lock issue in Skia fonthost for Android. · 42ca8dae
      Jeff Brown authored
      load_system_fonts() could potentially be called without
      a lock held.  To make this problem less likely to happen
      again in the future, adopted a naming convention for all
      locked methods.
      
      Change-Id: I04ff5e8ad005e5c1180aae9be8c134d0d384ac2c
      42ca8dae
    • Derek Sollenberger's avatar
      Apply ARM patches from NVidia for improved drawing performance. · c7cd3e0c
      Derek Sollenberger authored
      Add S32A_Opaque_BlitRow32 with TEST_SRC_ALPHA
      Add optimization for 32bit blits on neon
      Optimize S32A_D565 pixel loop, non-NEON CPUs
      
      bug: 6467331
      Change-Id: I3e0b0a8f711bf2ed97b480b81232a52f6f94dbe3
      c7cd3e0c
  6. 01 May, 2012 2 commits
  7. 30 Apr, 2012 1 commit
    • Chet Haase's avatar
      Handle Bitmap reuse failure more gracefully · c0b4fa78
      Chet Haase authored
      A feature in Android 3.0 allows Bitmaps to be reused when
      loading a bitmap of the same dimensions. A documented limitation
      is that the only formats supported are jpeg and png, the most common
      formats for Android. But if you actually try to do it anyway, you'll end
      up causing memory trashing and an eventual strange native crash. It's not
      pretty.
      
      This fix puts code in other possible image format decoders (gif, ico, and
      bmp) to return false from the onDecode() operation, which will result in
      an exception being thrown back to the user code.
      
      Issue #6146246 Sparodic crash in GraphicsJNI::allocateJavaPixelRef (memory corruption?)
      
      Change-Id: Ifd3e0f87c9ea6d41a37f58616e1ced0b19132056
      c0b4fa78
  8. 19 Apr, 2012 1 commit
  9. 13 Apr, 2012 1 commit
  10. 12 Apr, 2012 1 commit
  11. 11 Apr, 2012 1 commit
    • Fabrice Di Meglio's avatar
      Add SkPaint.setTextLocale() · 5c7fc8f9
      Fabrice Di Meglio authored
      - will be used for better CJK shaping
      - forced to use a "placement new" operator because of use of sk_bzero / memcpy
      in the Skia contructor and copy operator
      
      Change-Id: If6f62634c9088d2401250c35239a1722102fe80c
      5c7fc8f9
  12. 30 Mar, 2012 1 commit
  13. 20 Mar, 2012 1 commit
  14. 19 Mar, 2012 1 commit
  15. 13 Mar, 2012 1 commit
  16. 12 Mar, 2012 3 commits
  17. 06 Mar, 2012 2 commits
  18. 27 Feb, 2012 1 commit
    • Derek Sollenberger's avatar
      Changes to preserve backwards compatibility for serialization · 341c93bd
      Derek Sollenberger authored
      Skia's serialize methods are not intended for backwards compatibility,
      but the browser used it to implement saved pages. As a result the
      revision of Skia used for ICS (r1562) is not compatible with the
      revision of Skia used in JB (r3000+). This CL attempts to make pages
      saved in ICS render in JB while still allowing JB pages to be saved
      and displayed.
      
      bug: 6025365
      Change-Id: I9983517b46d2dedf31c6d90f48f6cf00ec042bc2
      341c93bd
  19. 24 Feb, 2012 2 commits
  20. 23 Feb, 2012 2 commits
  21. 22 Feb, 2012 1 commit
  22. 21 Feb, 2012 1 commit
  23. 15 Feb, 2012 3 commits
  24. 06 Feb, 2012 3 commits
  25. 01 Feb, 2012 3 commits