f8d7d27313
The new pixel ref behaves similarly to SkImageRef, with some key differences: It does not depend on the images project. It requires an SkImageCache, which handles allocation and caching of the pixel memory. It takes a function signature for decoding which decodes into already allocated pixel memory rather than into an SkBitmap. Add two implementations of SkImageCache: SkLruImageCache and SkAshmemImageCache. Replace SkSerializationHelpers::DecodeBitmap with SkPicture::InstallPixelRefProc, and update sites that referenced it. SkBitmapFactory now sets the pixel ref to a new object of the new class SkLazyPixelRef, provided it has an SkImageCache for caching. Provide an option to do lazy decodes in render_pictures and bench_pictures. SkPicture: Eliminate the default parameters in the constructor. If a proc for decoding bitmaps is installed, use it to decode any encoded data in subpictures. When parsing deserializing subpictures, check for success. When serializing subpictures, pass the picture's bitmap encoder to the subpicture's call to serialize. Update BitmapFactoryTest to test its new behavior. BUG=https://code.google.com/p/skia/issues/detail?id=1008 BUG=https://code.google.com/p/skia/issues/detail?id=1009 Review URL: https://codereview.appspot.com/7060052 git-svn-id: http://skia.googlecode.com/svn/trunk@7835 2bbb7eff-a529-9590-31e7-b0007b416f81
74 lines
2.2 KiB
Python
74 lines
2.2 KiB
Python
#Animated widgets are views which use animator.
|
|
|
|
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'views_animated',
|
|
'type': 'static_library',
|
|
'include_dirs': [
|
|
'../include/animator',
|
|
'../include/config',
|
|
'../include/core',
|
|
'../include/effects',
|
|
'../include/images',
|
|
'../include/lazy',
|
|
'../include/utils',
|
|
'../include/views',
|
|
'../include/views/animated',
|
|
'../include/views/unix',
|
|
'../include/xml',
|
|
],
|
|
'sources': [
|
|
'../include/views/animated/SkBorderView.h',
|
|
'../include/views/animated/SkImageView.h',
|
|
'../include/views/animated/SkProgressBarView.h',
|
|
'../include/views/animated/SkScrollBarView.h',
|
|
'../include/views/animated/SkWidgetViews.h',
|
|
|
|
'../src/views/animated/SkBorderView.cpp',
|
|
'../src/views/animated/SkImageView.cpp',
|
|
'../src/views/animated/SkProgressBarView.cpp',
|
|
'../src/views/animated/SkScrollBarView.cpp',
|
|
'../src/views/animated/SkStaticTextView.cpp',
|
|
'../src/views/animated/SkWidgetViews.cpp',
|
|
],
|
|
'conditions': [
|
|
[ 'skia_os == "mac"', {
|
|
'link_settings': {
|
|
'libraries': [
|
|
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
|
|
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
|
|
],
|
|
},
|
|
}],
|
|
[ 'skia_os == "android"', {
|
|
# Android does not support animator so we need to remove all files
|
|
# that have references to it.
|
|
'include_dirs!': [
|
|
'../include/animator',
|
|
],
|
|
'sources!': [
|
|
'../src/views/animated/SkBorderView.cpp',
|
|
'../src/views/animated/SkImageView.cpp',
|
|
'../src/views/animated/SkProgressBarView.cpp',
|
|
'../src/views/animated/SkScrollBarView.cpp',
|
|
'../src/views/animated/SkStaticTextView.cpp',
|
|
'../src/views/animated/SkWidgetViews.cpp',
|
|
],
|
|
}],
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'../include/views/animated',
|
|
],
|
|
},
|
|
},
|
|
],
|
|
}
|
|
|
|
# Local Variables:
|
|
# tab-width:2
|
|
# indent-tabs-mode:nil
|
|
# End:
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|