1. 23 10月, 2017 7 次提交
  2. 21 10月, 2017 5 次提交
  3. 20 10月, 2017 2 次提交
  4. 19 10月, 2017 3 次提交
  5. 18 10月, 2017 7 次提交
  6. 17 10月, 2017 1 次提交
  7. 16 10月, 2017 1 次提交
  8. 14 10月, 2017 1 次提交
  9. 13 10月, 2017 4 次提交
  10. 12 10月, 2017 2 次提交
    • S
      Add an animation executor to decode GIF frames on. · c4db04ed
      Sam Judd 提交于
      Our normal source executor is often used to load data from networks. Glide’s default networking library runs all networking operations on Glide’s source executor. OkHttp runs the initial connection on its own
      thread pool, but we still read and write the body of each request to our ache on Glide’s source executor. Even libraries like Volley that buffer
      the entire request into memory will still require a few hundred milliseconds of Glide’s source executor’s time to write the request to 
      cache.
      
      Scrolling through a list of images will enqueue a large number of requests. If each request is relatively time consuming, it’s likely that
      all of Glide’s source executor threads will end up blocked for 
      significant periods of time, even if the longer requests are lower priority. Using a different executor for GIF frames and other animations
      lets us avoid junk during playback. 
      
      Unfortunately there is a CPU and memory hit to using an additional executor. I’ve tried to limit that here by using only one or two threads
      and a cached thread pool so that few threads are created and are only
      created when an animation is actually run.
      
      Fixes #899
      c4db04ed
    • B
      Fix a couple of import code style nits. · 6cd8289d
      brettchabot 提交于
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=171739060
      6cd8289d
  11. 11 10月, 2017 5 次提交
    • S
      Remove IntRange from override() methods. · 9f4b7901
      Sam Judd 提交于
      It warns when we use Target.SIZE_ORIGINAL which is currently a negative
      value.
      9f4b7901
    • S
      Add @RawRes to load(Integer) in RequestBuilder. · cd8e49c1
      Sam Judd 提交于
      It’s perfectly possible to load a valid image or video frame from raw resources as well as drawables resources.
      cd8e49c1
    • S
      Remove unused constant in Downsampler. · f2f9081c
      Sam Judd 提交于
      f2f9081c
    • J
      Support multiple, ordered, nullable thumbnail requests. · bc1b25ef
      judds 提交于
      I've basically just added a helper method that calls thumbnail()
      recursively for you. It seems like it eliminates some of the especially
      confusing nested thumbnail logic.
      
      Unfortunately it requires @SuppressWarnings("unchecked") whever it's
      used because it uses varags with a parameterized type (RequestBuilder).
      I can't currently use @SafeVarargs because that requires a final method.
      I can't make the method final without preventing mocking in tests
      (minor) and breaking the generated API (major). By splitting out a
      separate base class for RequestBuilder I actually probably can fix this
      in the future, but that's a pretty substantial change that I don't want
      to make right now.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=171694145
      bc1b25ef
    • J
      Fix integer overflow bug in Downsampler when asked to upscale images. · c7383b2e
      judds 提交于
      This should also be a slight accuracy improvement since we're now using
      a somewhat more efficient density multiplier in some cases, especially
      when downsampling.
      
      Fixes #2459.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=171601510
      c7383b2e
  12. 10 10月, 2017 2 次提交