Go to file
aleksandar.stojiljkovic 9516775857 Enable generating SkImage with the same uniqueID in SkImageGenerator subclass
Enable reusing uniqueID when instantiating SkImageGenerator subclasses enables
using uniqueID in client code to cache generated bitmaps with no need to keep
the reference to SkImageGenerator.

This is a bug fix for out of memory cause in chromium and 100% CPU usage
described in issue 165750#13:
- cache uses SkImage::uniqueID() to cache decoded bitmaps.
- every animation loop creates new SkImage instances.
- after decoding, bitmap copies are added to cache, filling it up with
duplicates of previous loops frames.

BUG=165750

Blink patch that depends on this:
https://codereview.chromium.org/1925533003/
"High CPU and increased memory usage fix for high-res (GIF, WEBP...) animations."

Review-Url: https://codereview.chromium.org/1928403002
2016-05-02 01:43:38 -07:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add ColorCodecSrc for testing/comparison on color corrected decodes 2016-04-29 09:38:40 -07:00
bin bin/fetch-skps: print instruction on error 2016-04-26 12:38:47 -07:00
cmake Use BUILD_TYPE in cmake_build. 2016-04-25 06:29:21 -07:00
debugger Fix old debugger 2016-04-29 14:02:18 -07:00
dm Add ColorCodecSrc for testing/comparison on color corrected decodes 2016-04-29 09:38:40 -07:00
example switch surface to sk_sp 2016-03-23 18:59:25 -07:00
experimental experimental/fiddle -> tools/fiddle 2016-04-18 11:50:07 -07:00
fuzz Update TileImageFilter to sk_sp 2016-04-15 07:57:40 -07:00
gm Clean up test drawContext usage 2016-04-28 14:32:04 -07:00
gyp Delete ChromeOS code 2016-04-29 14:01:34 -07:00
include Enable generating SkImage with the same uniqueID in SkImageGenerator subclass 2016-05-02 01:43:38 -07:00
infra Update Win toolchain 2016-04-28 11:02:36 -07:00
platform_tools Delete ChromeOS code 2016-04-29 14:01:34 -07:00
resources Parse icc profiles and exif orientation from jpeg markers 2016-03-21 08:04:40 -07:00
samplecode Retract SkDevice a bit more 2016-04-22 10:57:16 -07:00
site Update running Chromium trybots on Skia CLs docs. 2016-04-29 07:08:12 -07:00
src Enable generating SkImage with the same uniqueID in SkImageGenerator subclass 2016-05-02 01:43:38 -07:00
tests Remove SkWriter32::contiguousArray(). 2016-04-29 14:45:36 -07:00
third_party Make is_ktx safer 2016-04-12 07:41:22 -07:00
tools Delete ChromeOS code 2016-04-29 14:01:34 -07:00
.gitignore Delete ChromeOS code 2016-04-29 14:01:34 -07:00
AUTHORS Add AVX/AVX2 support for runtime check 2016-04-08 15:31:45 -07:00
codereview.settings Automatically add a docs preview link and NOTRY=true when there are only docs changes. 2015-02-26 10:16:13 -08:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Delete ChromeOS code 2016-04-29 14:01:34 -07:00
Doxyfile Documentation: SkCanvas API 2015-05-19 10:21:29 -07:00
gyp_skia Make Win runtime DLLs writeable before overwriting 2016-03-18 08:33:38 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
LICENSE Include resources directory in google3 sync. 2015-10-20 13:00:48 -07:00
make.bat Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
make.py GYP: remove stale skia_scalar gyp variable 2015-11-10 13:25:12 -05:00
Makefile Add visualbench as valid target to Makefile 2015-12-18 08:05:06 -08:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py 10.9 is no more 2016-02-25 06:52:18 -08:00
public.bzl Patch in internal cl/121138374. 2016-05-01 15:02:25 -07:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
SK_IMAGE_VERSION Update SK_IMAGE_VERSION, run nanobench on its own image set 2016-04-26 13:08:57 -07:00
skia.gyp Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
SKP_VERSION Update SKP version 2016-05-01 00:29:08 -07:00
whitespace.txt Whitespace change to test bots 2016-04-29 06:25:47 -07:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.