Age | Commit message (Collapse) | Author |
|
The uint packing optimization was producing incorrect results in
this case. Since it only saves us approx 1 byte per font there is
no need to try to keep it around.
bug: 5461283
Change-Id: Ic2b0154d433fa620e588b048c32064358aa94bc4
|
|
Custom fonts (e.g. WebFonts) were not properly serialized and
resulted in unexpected behavior when a picture was saved for
offline reading. This CL serializes the custom font so that we
can use it later when playing the picture back.
bug: 5388379
Change-Id: Ic29e9bf10ac70c46a45f3902ea93558b235fd2dd
|
|
The 32-bit images have a full alpha channel so a dedicated alpha
bit is unecessary. This CL mirrors an identical change in Skia...
http://code.google.com/p/skia/source/detail?spec=svn2187&r=2051
bug: 5003756
Change-Id: Id3eab2e12aa49c0193d87df255a78758ba080d60
|
|
|
|
This CL enables the decoder to handle collapsing the stretchy
area along one axis while still stretching the other. This prevents
us from falling into the standard bitmap strech and produces better
looking results.
bug: 5239166
Change-Id: Iadde581d7853430c6fd59446959a34661a19e927
|
|
Fixes previous CL 131603. Using bug# from original CL.
Bug: 4387353
Change-Id: Ie7e78402ab7c0ab448e8cb6ad21a709ecca9daef
|
|
bug: 4387353
Change-Id: I5c8ae97d6c3407dbdb87bd4be1078c29eb925bd6
|
|
This CL pulls in r1835 and r1870 from Skia's trunk.
bug: 5197241
Change-Id: I79b51cf8605bc16641cfe7b3e1b369f801bf0922
|
|
Bug: 5122491
Remove font cache purge log message
Change-Id: Ib5a23433b8cb1402c96b8d510ed875be7400c80c
|
|
bug: 5009656
Change-Id: Ic91bdb84e42b4d07f88bd6df1a2bedc2031404df
|
|
This change has also been submitted upstream to Skia in r1954.
bug: 5060654
Change-Id: Iac9ce0d9150c59e4db6653081d7f46843ea8f2bf
|
|
Implement virtual methods 'onBuildTileIndex' & 'onDecodeRegion' for
supporting image cropping for Skia-WebP image Decoder.
Utilize the native rescaling+Cropping capability of WebP-Decoder to
implement image cropping.
- Incorporated code comments from Pascal.
- Found one bug w.r.t setting SampleSize. Rectifying that in this patch.
Change-Id: Ib7b04129a65ed17f845d0600f3553b9b24846838
|
|
Implement on-the-fly image resizing (down-scaling) for WebP images.
The image decoder is aware of the device memory constriant via
SampleSize set by the application like Webkit/WebCore.
sampleSize=1 implies no down-scaling. Likewise, SampleSize=2 implies
resizing image width & height by a factor of '1/2', resulting in '1/4'th
size for the decoded image.
SampleSize is merely a hint from the application to the decoder. Decoder
may choose to ignore this hint and decode the image at full scale.
Native WebP image decoder (new APIs) supports on-the-fly resizing.
Making the Skia-WebP decoder 'SampleSize' aware and implementing the
on-the-fly resizing in this change.
Change-Id: Ibbd62baf4a6ad2d3904aafb22807f4513641e64c
|
|
|
|
This change adds new files in /system/etc: system_fonts.xml and
fallback_fonts.xml. The change also allows a third file to be added
by vendors in /vendor/etc/fallback_fonts.xml. These files, loaded at
boot time, mimic the logic that used to be in code, but which is
now configurable through editing these files, making the system more
flexible and easy to work with for us and vendors as future fonts
are added to the system.
Change-Id: Iac0af4924ca0454c6dde4d53058b1425200ed4b7
|
|
Remove the custom code for decoding WebP image. Use the native
color-modes RGBA, RGBA_4444 & RGB_565 for Skia-WebP-Decoder class.
- Removed other dead code as well.
Change-Id: I414778b71aaea754d92ed6b07ebd7b6336e1f102
|
|
|
|
bug: 4390209
Change-Id: I74774b43b3f0c903fb96911e156d9911cf55bb68
|
|
The change being reverted somehow alters the reference counting of
SkTypeface instances, resulting in prematurely freed font data, which
is the underlying issue with the disappearing clock on the lockscreen
(http://b/5004404).
This reverts commit 792a256ab723bbc4b55ba00194fe2a9195cae8c0.
Bug: 5004404
Change-Id: I5c3b225f860ce2dcfc0751bded2d842b43a2d3c4
|
|
An invalid face is not expected here, but still should not be allowed
to crash.
Bug: 5002710
Change-Id: Ifd11e918f968d5eef67932e514ea6754819fb7a5
|
|
|
|
This updated line was to have been included in CL 118811, but some
bad gerrit-fu caused it to go amiss.
Bug: 4390209
Change-Id: Ia7b8e2849cfae3cdfbebc09a91fe26f2355f1ebb
|
|
Updated the Android-Skia-WebP decoder with following changes:
- Added support for incremental WebP decoding. So instead of allocating
input buffer corresponding to the whole image (could be few MBs), the
input is read iteratively in a buffer size of 64KB.
- Refactored onDecode method (O(200) lines) to a smaller (O(30) lines)
method with 2-3 helper functions.
- Removed low (byte-level) parsing from this code and calling WebP
public APIs for the same (like WebPGetInfo).
- Incorporated Pascal's feedback.
- Few more feedback from Pascal.
Change-Id: I104822ec3922eca1efc19422908f07770c4c140b
|
|
Regular and Bold styles are now included in the fallback list.
Bug: 4902641
Change-Id: Ia88dedb136ab00dee3ae4e4cc5552e0d3a743f13
|
|
Fallback fonts are now recorded with their styles in the list of
available fonts (which is now a doubly-linked list). NextLogicalFont()
has a new parameter, providing the originally requested fontID, from
which we can determine the requested style, which we then pass to
find_best_face() to pick from the available styles.
SkFontHost::NextLogicalFont() no longer assumes that origFontID is
valid (see http://b/issue?id=4980240).
Bug: 4390209
Change-Id: I2e600f7eb75d207e95bae8cc9ed8379ade396058
|
|
This reverts commit da49dc51598fa6f5ffae857f73bb8be12caf216e.
Bug: 4980240
Change-Id: Ib0470d458db12821a89ce019d395152d06296305
|
|
Fallback fonts are now recorded with their styles in the list of
available fonts (which is now a doubly-linked list). NextLogicalFont()
has a new parameter, providing the originally requested fontID, from
which we can determine the requested style, which we then pass to
find_best_face() to pick from the available styles.
Bug: 4390209
Change-Id: I0c45fd7cefd00df3805bd75df77c519f6d922fe7
|
|
* commit '0896ce1e7b7418350e9f6ca9b4b9ad675ccb9b86':
Restore legacy behaviors for better compatibility
|
|
|
|
Test for alpha==255 is apparently cloned from
S32A_Opaque_BlitRow32_arm, but does not apply to Blend variant.
Change-Id: I5d6154399265cb6f8291595a9bc62b2741301590
|
|
Change-Id: I536026aab833367350b595b41911e9888cff2e3a
|
|
Change-Id: Iba2f457ca4e8ea90078d1028e1ea829b3d889285
|
|
|
|
Change-Id: Ifdf889d2ed36cc88bdc105cbb629fe2f68111ccd
|
|
|
|
|
|
Change-Id: Ief005abc9eb741ccf5efec3d1f29fe2dfc23103d
|
|
Extending Skia-WebP interface to handle the WebP encoding as well.
The WebP encoding is required for sharing WebP images and transcoding
images from other formats like PNG/JPEG to WEBP.
Change-Id: I23d52323abf5e7eec0c6d3e0159a1ca7baee468b
|
|
Change-Id: Ifcdb6d43f6ee23e6d91d01dc4fe25140f2d3d870
|
|
|
|
Change-Id: Iea0c23cf20fb25e7148be1def0623fe40b7c6f23
|
|
|
|
Change-Id: Ie9f88806b1083f0b4ef99731bd4f1e42fff467fe
|
|
|
|
This makes it easier for now to deal with situations
where derived classes don't have an implementation.
Change-Id: Iaf4b3495441cb5881ad98633e55da1c5acdd9768
|
|
|
|
|
|
issue: 3291572
Change-Id: I86258b82a9105e5db459c436d8bcfa1841609ed7
|
|
This CL includes bug fixes and closely mirrors the version of
Skia used in Chrome M13, which is likely to be our baseline for
ICS.
The CL also adds source files for the SampleApp which will allow
us to execute basic skia tests. The SampleApp requires the
utils/views directory in order to run.
Finally, we have included the PDF backend for Skia in order to
experiment with using it to generate PDF files for certain
applications.
Note: The SampleApp and PDF code are not built as part of libskia.
Change-Id: I1895ccfbd8074e25f19148cc7bd1b4af571fb307
|
|
bug: 4502715
Change-Id: I44f994b86d0e0d7b31087880805196a3bda7a1b1
|