Add SkImageGenerator Interface
- Add SkDiscardablePixelRef class that uses SkDiscardableMemory and
a SkImageGenerator.
- Add SkDecodingImageGenerator class as an example of a
SkImageGenerator.
- Add DecodingImageGenerator unit test.
- Add SkBasicDiscardableMemory implmentation for unit tests only.
R=reed@google.com, scroggo@google.com
Review URL: https://codereview.chromium.org/74793011
git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@12341 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/core.gypi b/core.gypi
index e31b8ff..54e23ef 100644
--- a/core.gypi
+++ b/core.gypi
@@ -73,6 +73,7 @@
'<(skia_src_path)/core/SkDevice.cpp',
'<(skia_src_path)/core/SkDeviceLooper.cpp',
'<(skia_src_path)/core/SkDeviceProfile.cpp',
+ '<(skia_src_path)/lazy/SkDiscardablePixelRef.cpp',
'<(skia_src_path)/core/SkDither.cpp',
'<(skia_src_path)/core/SkDraw.cpp',
'<(skia_src_path)/core/SkDrawLooper.cpp',
diff --git a/images.gyp b/images.gyp
index 7ead87e..eed2dba 100644
--- a/images.gyp
+++ b/images.gyp
@@ -18,6 +18,7 @@
'include_dirs': [
'../include/images',
'../include/lazy',
+ '../src/lazy',
# for access to SkErrorInternals.h
'../src/core/',
# for access to SkImagePriv.h
@@ -36,6 +37,7 @@
'../src/images/bmpdecoderhelper.cpp',
'../src/images/bmpdecoderhelper.h',
+ '../src/images/SkDecodingImageGenerator.cpp',
'../src/images/SkForceLinking.cpp',
'../src/images/SkImageDecoder.cpp',
'../src/images/SkImageDecoder_FactoryDefault.cpp',
diff --git a/tests.gyp b/tests.gyp
index 890a146..841baf7 100644
--- a/tests.gyp
+++ b/tests.gyp
@@ -12,6 +12,7 @@
'../src/effects',
'../src/image',
'../src/lazy',
+ '../src/images',
'../src/pathops',
'../src/pdf',
'../src/pipe/utils',