aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* add operator->() for SkAutoTDeleteHEADmasterWolfgang Wiedmeyer2015-10-181-0/+1
| | | | Change-Id: Ia9eefa6b7fa8bea028f972407913a3a61b1caafe
* Fimg2d3x: fix icon scaling issue with acceleration enabledghepeu2013-07-011-7/+7
| | | | | | | * replace undefined TRUE/FALSE with true/false in SkFimgApi3x.h * fix warning in SkFimgApi3x.cpp Change-Id: Iabaf66df526892f006573c97450fd36f461d9bb2
* skia: exynos4: add support for fimg2d3xDaniel Hillenbrand2013-06-141-0/+267
| | | | Change-Id: Ie0509e7d537fe2a73b23c30f5128d80ee48c1d7d
* exynos4: fimg2d accelerationDaniel Hillenbrand2013-06-142-0/+62
| | | | | | http://git.insignal.co.kr/insignal/origen_quad-jb_mr1.1/android/platform/external/skia/commit/?h=origen_quad-jb_mr1.1&id=7a2cdab99f7a27e2566afbf8c0a2d3ea64c8a375 Change-Id: If605106881540f2170249e6446770ec95b4667b3
* Skia: Introduce caching of unscaled Bitmaps.Lucas Crowthers2013-03-042-0/+21
| | | | | | | | | | | This allows skia to choose whether to use the prescaled bitmap or the unscaled bitmap depending on which would be optimal in the current situation. This commit also introduces two functions necessary for properly resizing Rects when using the non-pre-scaled bitmaps. CRs-fixed: 451681 Change-Id: I36779d8a680a3ced7c28da492e879de02c7e87a5
* Several skia tunings for JB_2.5Xin Qi2013-01-203-2/+39
| | | | | | | | * Optiming constructor of Paint object * Special copy path for small object * Global Language list instead of constructing a new obj everytime. Change-Id: I8d4687fffe055166a4758059872af09bfdc973d4
* Add Android specific APIRomain Guy2012-10-161-0/+14
| | | | | | | | | Bug #7353771 This API is just a boolean property that tells the hardware renderer whether it should use mipmap levels. Change-Id: I123a334b89b0d64d711bdad43f5e2feb416de8b4
* DO NOT MERGE Han PreferenceBilly Hewlett2012-08-203-17/+90
| | | | | | | | | | | | | | | | Cherry-pick Id8c91ae0be6cad8a7ef77a0cd5803676290986c1 from master. During font initialization, create a seperate fallback list for each locale. At runtime, use the fallbacklist associated with the locale set in the paint object. Fallback files are associated with locales in fallback_fonts.xml. Multiple files can be associated with the same locale, ordering within that langauge and apart from that language in the fallback order is preserved. This changelist also includes some refactoring, notably of the functions that call getNextContext(). Change-Id: I121f0e491a522c4a8558a0066b2d8969fb8a3667
* Revert "Revert "Use Elegant fonts for Webkit, Compact fonts for Textview""Billy Hewlett2012-06-214-37/+41
| | | This reverts commit 81957ccb58db76c172e195dc3e31eba85d3e4ac9
* Revert "Use Elegant fonts for Webkit, Compact fonts for Textview"Billy Hewlett2012-06-214-41/+37
| | | This reverts commit 421654d4bf3ca50e2247a7389851d2e8f4812564
* Use Elegant fonts for Webkit, Compact fonts for TextviewBilly Hewlett2012-06-204-37/+41
| | | | | | | | | | Fonts can be marked with elegant or compact in fallback_fonts.xml. Webkit uses elegant fonts, Textview uses compact fonts (the default), unmarked fonts are used by both. Bug: 6649136 Change-Id: I6ab6173c2efc50eba8fcc488c89dfdd083fb9c06
* Fix hardcoded font path. Allow adding new font path thru Skia changes.Billy Hewlett2012-06-042-0/+70
| | | | | Bug: 6609231 Change-Id: Ie37ada42e7e78ab78318f3ed76eb627bffaddb1a
* Merge "Cleanup pixel ref mutexes in Skia" into jb-devDerek Sollenberger2012-05-162-5/+25
|\
| * Cleanup pixel ref mutexes in SkiaDerek Sollenberger2012-05-142-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mutexes in pixelrefs were done very sloppily initially. The code (a) assumes all pixelref subclasses want a mutex to guard their lock/unlock virtuals, and (b) most subclasses use the same mutex for *all* of their instances, even when there is no explicit need to guard modifying one instances with another. When we try drawing bitmaps from multiple threads, we are seeing a lot of slow- down from these mutexes. This CL has two changes to try to speed things up. 1. Add setPreLocked(), for pixelrefs who never need the onLockPixels virtual to be called. This speeds up those subclasses in multithreaded environs as it avoids the mutex lock all together (e.g. SkMallocPixelRef). 2. Add setMutex() to allow a subclass to change the mutex choice. ashmem wants this, since its unflattening constructor cannot pass down the null, it needs to cleanup afterwards. see https://codereview.appspot.com/6199075/ bug: 6469917 Change-Id: I81a7cfa0b2ead5a42059697eafa58de1e7a87da2
* | Add new utfToGlyphs API for GL rendererRomain Guy2012-05-141-0/+3
|/ | | | | | Bug #6408362 Change-Id: I69c21d9aeeb663aa6244132ce8d598be888886e2
* Fix SkNWayCanvas to prevent crashes by setting up a deviceDerek Sollenberger2012-05-011-1/+1
| | | | | | | | | This is a cherry-pick of two CL's from upstream Skia: https://codereview.appspot.com/6092056/ https://codereview.appspot.com/6131062/ bug: 6400332 Change-Id: Ia833e7c0d4fd6e21a06980653450095176f5bd42
* Reset Skia to the default font cache size that we used in ICS.Derek Sollenberger2012-04-191-1/+1
| | | | | bug: 6226962 Change-Id: I8d078faa836c1daa38810bc24aa24942cb70676f
* Add SkPaint.setTextLocale()Fabrice Di Meglio2012-04-111-0/+16
| | | | | | | | - will be used for better CJK shaping - forced to use a "placement new" operator because of use of sk_bzero / memcpy in the Skia contructor and copy operator Change-Id: If6f62634c9088d2401250c35239a1722102fe80c
* resolved conflicts for merge of 2a049989 to masterDerek Sollenberger2012-03-1248-454/+1150
|\ | | | | | | Change-Id: Ia1cbb6b274e1b3739704de9dd997e6d5dc5185af
| * Skia Merge (revision 3312)Derek Sollenberger2012-03-0649-454/+1161
| | | | | | | | | | | | | | This CL also includes changes made to Android's copy of Skia in their J release branch. Change-Id: Ib2baecf48004951a3ad4a1574cdc38790c814cbc
* | Add getter for camera location (android-only)Chet Haase2012-03-051-0/+3
| | | | | | | | Change-Id: I19c1919cae24a875671c37777c32b356d3141a1d
* | Changes to preserve backwards compatibility for serializationDerek Sollenberger2012-02-272-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Skia's serialize methods are not intended for backwards compatibility, but the browser used it to implement saved pages. As a result the revision of Skia used for ICS (r1562) is not compatible with the revision of Skia used in JB (r3000+). This CL attempts to make pages saved in ICS render in JB while still allowing JB pages to be saved and displayed. bug: 6025365 Change-Id: I9983517b46d2dedf31c6d90f48f6cf00ec042bc2
* | Add new "sourcePath" API to SkPathRomain Guy2012-02-231-0/+3
|/ | | | | | This is required to optimize texture generation in display lists. Change-Id: I7291e3af85771bfa74190b718d45e61555c7087d
* Skia merge (revision 3022)Derek Sollenberger2012-02-06259-4119/+12199
| | | | | | | | This CL has companion changes to account for API updates in... (1) frameworks/base (2) external/webkit Change-Id: Ibb989e76e8bd24313849f9631dbef42cdef9eb7d
* Fix rendering bug in pages with shadowed text.Derek Sollenberger2011-11-303-9/+39
| | | | | | | | | | | | | | | | | | Shadowed text currently does not get subjected to culling until immediately prior to rendering each glyph. This is problematic for any page with an axis greater than 32k as we can't covert the glyph coordinates to fixed point. Additionally, this is a large perf hit as we look at every shadowed glyph on the page for every draw call regardless of the canvas' clip. This fix enables shadowed text to be quickly rejected based on the canvas' clip when the draw text command is executed. Finally, a mirror image of this CL is currently under review for inclusion in the open-source Skia project. bug: 5571685 Change-Id: I5df94eccecbd7d77a08004b5cbcca02120e390f7
* Merge "Skia Merge (revision 1562)"Derek Sollenberger2011-06-247-14/+24
|\
| * Skia Merge (revision 1562)Derek Sollenberger2011-06-237-14/+24
| | | | | | | | Change-Id: Ief005abc9eb741ccf5efec3d1f29fe2dfc23103d
* | Add WebP Encoder support to SkImageEncoder.Vikas Arora2011-06-221-1/+2
|/ | | | | | | | 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
* Fix build - restore older behaviorsJean-Baptiste Queru2011-06-131-2/+2
| | | | Change-Id: Ie9f88806b1083f0b4ef99731bd4f1e42fff467fe
* Make this virtual function non-pure, temporarily.Jean-Baptiste Queru2011-06-131-1/+1
| | | | | | | This makes it easier for now to deal with situations where derived classes don't have an implementation. Change-Id: Iaf4b3495441cb5881ad98633e55da1c5acdd9768
* Skia Merge (revision 1510)Derek Sollenberger2011-06-0758-107/+4550
| | | | | | | | | | | | | | | | | | 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
* Add method to SkPaint to get a glyph from a glyph id.Romain Guy2011-06-011-0/+1
| | | | Change-Id: I34121c66fc53aaa47aed798f7cd8e33d5977e0d8
* Skia Merge (revision 1327)Derek Sollenberger2011-05-1746-320/+820
| | | | Change-Id: I46f41274d07a3d7bac4728f8841c7f5e89dc9181
* Skia Merge (revision 1116)Derek Sollenberger2011-04-1440-423/+1022
| | | | | | There is a companion change in external/webkit Change-Id: I1c4110e7520bbef3f4e5f9551adb7ec79ac1e3ed
* Fix Path generation id tracking.Romain Guy2011-03-181-3/+12
| | | | Change-Id: I5acaa683a402162c31a566c524b53b0b16445a3f
* Skia Merge (revision 950)Derek Sollenberger2011-03-1738-112/+291
| | | | | | | This merge will allow us to now import the sample app infrastructure in skia to do on device measurements. Change-Id: Idcab6b1524f371521717cde61a6e98a12d897e6b
* Skia Merge (revision 922)Derek Sollenberger2011-03-1459-3326/+1103
| | | | Change-Id: I7ed57d10905d8bad6486a4d7410165eec1cc2b4f
* Fix 3510563: memory leak in BitmapRegionDecoder.Chih-Chung Chang2011-03-081-1/+6
| | | | Change-Id: I30b3a3806f4484d95602539def1a77a366560fdf
* Skia Merge (revision 842)Derek Sollenberger2011-02-248-25/+126
| | | | | | | This merge picks up the fixed width font updates and improved blur code from the Skia repository. Change-Id: Iad2301a353c31da27ca214527cf4ed8f24641749
* Merge "Skia Merge (revision 808)"Derek Sollenberger2011-02-2467-436/+1866
|\
| * Skia Merge (revision 808)Derek Sollenberger2011-02-2367-436/+1866
| | | | | | | | | | | | | | | | | | | | This merge has companion changes in the following projects in order to be compatible with changes to skia interfaces and practices: 1. /frameworks/base 2. /external/webkit Change-Id: I54092971305579e81a8fdb27bbe04ec340792e3b
* | Merge "Add the ability to control the camera's location."Romain Guy2011-02-231-0/+2
|\ \
| * | Add the ability to control the camera's location.Romain Guy2011-02-231-0/+2
| |/ | | | | | | Change-Id: I712b80173c8a102a46157543979d0dde3c5008f8
* | Check for pixels allocation failureEric Hassold2011-02-231-0/+13
|/ | | | | | | | | | Standard memory allocator in Skia abort when an allocation request fails. However, when allocating in managed heap, need to check for allocation failure in allocPixels(). This add checks for all allocPixels calls in Skia Bitmap code. Bug: 3418381 Change-Id: I3c4ac403a3c073d64a689b29d3baccdc7fc90e1a
* am 67a98d67: am 9221e808: Implement SkRegion::toString().Joe Onorato2011-01-191-0/+4
|\ | | | | | | | | * commit '67a98d6726e2bcb1d3d7b8863b89ad753ae15774': Implement SkRegion::toString().
| * Implement SkRegion::toString().Joe Onorato2011-01-191-0/+4
| | | | | | | | Change-Id: I012feed3eb119a9eda98989e13dacc53c0199e19
* | Add support for WebP format in SkiaEric Hassold2011-01-051-2/+3
|/ | | | | | | | | | This enable Skia to decode WebP images. Since BitmapFactory relies on Skia to decode images, this aims at adding support for WebP format in any application relying on BitmapFactory. Decoder relies on libwepb library, imported as external library in external/webp in Android source tree. Change-Id: I13ef4c1404b989af6a856e9150c62e297200331b
* Merge "Add optional data argument to SkPixelRef::globalRef()"Patrick Dubroy2010-12-151-1/+1
|\
| * Add optional data argument to SkPixelRef::globalRef()Patrick Dubroy2010-12-151-1/+1
| |
* | Merge "Fix issue with SkPaint references being out of date."Chet Haase2010-12-151-1/+4
|\ \ | |/ |/|