aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* override onGetTableTags() and onGetTableData() in SkTypeface, in preparation forGravatar reed@google.com2013-03-21
| | | | | | | | removing the associated APIs in SkFontHost.h git-svn-id: http://skia.googlecode.com/svn/trunk@8303 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use function-ptr instead of SkFontHost api to allow client to handleGravatar reed@google.com2013-03-21
| | | | | | | loading GDI font data for fonts. Review URL: https://codereview.chromium.org/12938004 git-svn-id: http://skia.googlecode.com/svn/trunk@8301 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removed the "any" command from the displacement glsl shader.Gravatar sugoi@google.com2013-03-21
| | | | | | | WebKit's version of Mesa's compiler seems to crash on the "any" command even though it's a GLSL 1.1 command. Review URL: https://codereview.chromium.org/12413030 git-svn-id: http://skia.googlecode.com/svn/trunk@8300 2bbb7eff-a529-9590-31e7-b0007b416f81
* add virtual SkTypeface::onOpenStream and override that for fontconfigGravatar reed@google.com2013-03-21
| | | | | | | | | | | (other ports to follow) When this is complete, we will be able to remove from SkFontHost - OpenStream - GetFileName Review URL: https://codereview.chromium.org/12988002 git-svn-id: http://skia.googlecode.com/svn/trunk@8299 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix minor valgrind-found memory leaksGravatar robertphillips@google.com2013-03-21
| | | | | | | | https://codereview.chromium.org/12440066/ git-svn-id: http://skia.googlecode.com/svn/trunk@8297 2bbb7eff-a529-9590-31e7-b0007b416f81
* call onGetUPEM to subclasses can optimize it, and place default behaviorGravatar reed@google.com2013-03-21
| | | | | | | | | (calling getAdvancedTypefaceMetrics) in base impl. This allows us to remove SkFontHost::GetUnitsPerEm entirely Review URL: https://codereview.chromium.org/12915003 git-svn-id: http://skia.googlecode.com/svn/trunk@8295 2bbb7eff-a529-9590-31e7-b0007b416f81
* When we read from a RemoteFontStream (might happen maybe with other ↵Gravatar edisonn@google.com2013-03-21
| | | | | | | | streams), stream's data might be partially consumed. If so, when we try to read the whole content of the font, we fail, because we read only part of the content. Review URL: https://codereview.chromium.org/12926004 git-svn-id: http://skia.googlecode.com/svn/trunk@8291 2bbb7eff-a529-9590-31e7-b0007b416f81
* oops, update the INHERITED for our typefaceGravatar reed@google.com2013-03-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8289 2bbb7eff-a529-9590-31e7-b0007b416f81
* inherit from SkTypeface_FreeType to share more codeGravatar reed@google.com2013-03-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8288 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update code to use helper function for better readability/searching.Gravatar djsollen@google.com2013-03-21
| | | | | | Review URL: https://codereview.chromium.org/12834012 git-svn-id: http://skia.googlecode.com/svn/trunk@8287 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix divide-by-zero in program cache tracking.Gravatar commit-bot@chromium.org2013-03-21
| | | | | | | | | | | | This also adds tracking to developer builds. Author: jvanverth@google.com Reviewed By: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/12426019 git-svn-id: http://skia.googlecode.com/svn/trunk@8284 2bbb7eff-a529-9590-31e7-b0007b416f81
* This changes fixes issues with the non-separable blend modes. They were not ↵Gravatar commit-bot@chromium.org2013-03-21
| | | | | | | | | | | | | | | | producing the correct results if alpha was involved. I fixed the math so everything happens in premultiplied alpha so there is no loss in precision. I also fixed the math of color-burn and color-dodge. Author: cabanier@gmail.com Reviewed By: reed@google.com Review URL: https://chromiumcodereview.appspot.com/12662006 git-svn-id: http://skia.googlecode.com/svn/trunk@8283 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-03-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8281 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fail to return a codec if the provided stream does not support rewind.Gravatar djsollen@google.com2013-03-20
| | | | | | Review URL: https://codereview.chromium.org/12545052 git-svn-id: http://skia.googlecode.com/svn/trunk@8277 2bbb7eff-a529-9590-31e7-b0007b416f81
* move impl of AdvancedTypefaceMetrics into typeface (3)Gravatar reed@google.com2013-03-20
| | | | | | Review URL: https://codereview.chromium.org/12807004 git-svn-id: http://skia.googlecode.com/svn/trunk@8274 2bbb7eff-a529-9590-31e7-b0007b416f81
* Attempt to reland 8264-5 with warning-as-error fixes.Gravatar bsalomon@google.com2013-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8272 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 8265-8264 (broke build)Gravatar reed@google.com2013-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8268 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstream changes from Android for decoding jpeg images.Gravatar djsollen@google.com2013-03-20
| | | | | | Review URL: https://codereview.chromium.org/12438025 git-svn-id: http://skia.googlecode.com/svn/trunk@8267 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds local coords to GrEffect system.Gravatar bsalomon@google.com2013-03-20
| | | | | | | | | | | | | Effects can ask the builder for local coords which may or may not be distinct from positions. GrEffectStage tracks changes to relationship between pos and local coords. GrGLEffectMatrix and GrSingleTextureEffect can use either pos or textures as intput coords GrSimpleTextureEffect now allows for an explicit texture coords attribute. Review URL: https://codereview.chromium.org/12531015 git-svn-id: http://skia.googlecode.com/svn/trunk@8264 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unreviewed. Adding TODO comment to reference newly filed bug.Gravatar junov@google.com2013-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8263 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove SK_ENABLE_LIBPNG define as it is no longer needed by Android.Gravatar djsollen@google.com2013-03-20
| | | | | | Review URL: https://codereview.chromium.org/12958002 git-svn-id: http://skia.googlecode.com/svn/trunk@8262 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reverting r8233 (Use SkSet in PDF)Gravatar robertphillips@google.com2013-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8255 2bbb7eff-a529-9590-31e7-b0007b416f81
* add new API for gdi fonts (not hooked up yet)Gravatar reed@google.com2013-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8253 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add an entry for Cambria-Caladea to the list of metric compatible fonts.Gravatar commit-bot@chromium.org2013-03-20
| | | | | | | | | | | | | | | | Caladea is going to be included in Chromium/Chrome OS as a substitute for Cambria. (see https://gerrit.chromium.org/gerrit/#/c/45888/ ). BUG=chromium:168879 TEST=See the bug and the ChromeOS CL above. Author: jshin@chromium.org Reviewed By: reed@google.com Review URL: https://chromiumcodereview.appspot.com/12879008 git-svn-id: http://skia.googlecode.com/svn/trunk@8251 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8249 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing deferred canvas bug caused by SkTwoPointConicalGradient declaring ↵Gravatar commit-bot@chromium.org2013-03-20
| | | | | | | | | | | | | | | itself as opaque. BUG=https://code.google.com/p/chromium/issues/detail?id=222140 TEST=DeferredCanvas unit test + DRT with --enable-deferred-2d-canvas Author: junov@chromium.org Reviewed By: bsalomon@chromium.org Review URL: https://chromiumcodereview.appspot.com/12879005 git-svn-id: http://skia.googlecode.com/svn/trunk@8247 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for IMG's MSAA extension.Gravatar bsalomon@google.com2013-03-19
| | | | | | Review URL: https://codereview.chromium.org/12875005 git-svn-id: http://skia.googlecode.com/svn/trunk@8241 2bbb7eff-a529-9590-31e7-b0007b416f81
* Work around MSAA/lines issue on Linux bot.Gravatar bsalomon@google.com2013-03-19
| | | | | | Review URL: https://codereview.chromium.org/12938005 git-svn-id: http://skia.googlecode.com/svn/trunk@8239 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add stroked ovals and CircleEdgeEffect.Gravatar jvanverth@google.com2013-03-19
| | | | | | | | | Adds some optimizations to the circle and ellipse shaders, static effect instances for their GrEffects, and some minor changes to GrDrawState::setEffect to make GrEffect setup faster. git-svn-id: http://skia.googlecode.com/svn/trunk@8238 2bbb7eff-a529-9590-31e7-b0007b416f81
* resubmit https://code.google.com/p/skia/source/detail?r=7883 (in the ↵Gravatar edisonn@google.com2013-03-19
| | | | | | | | meantime we added capability to collect minidump and callstack if buildbot fails with heap coruption in windows. a few minor conflicts have been resolved) Review URL: https://codereview.chromium.org/12840004 git-svn-id: http://skia.googlecode.com/svn/trunk@8233 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove SkFontHost::CreateScalerContextGravatar reed@google.com2013-03-19
| | | | | | Review URL: https://codereview.chromium.org/12593013 git-svn-id: http://skia.googlecode.com/svn/trunk@8228 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix for displacement mappingGravatar sugoi@google.com2013-03-19
| | | | | | | Fixed the skia displacement map effect to match the WebKit displacement map fix. Review URL: https://codereview.chromium.org/12787007 git-svn-id: http://skia.googlecode.com/svn/trunk@8225 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkTypeface* parameter to SkScalerContext (and its callers)Gravatar reed@google.com2013-03-19
| | | | | | | Use SkTypeface to create scalercontext instead of SkFontHost Review URL: https://codereview.chromium.org/12706010 git-svn-id: http://skia.googlecode.com/svn/trunk@8223 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add MSAA configs to bench.Gravatar bsalomon@google.com2013-03-19
| | | | | | Review URL: https://codereview.chromium.org/12607013 git-svn-id: http://skia.googlecode.com/svn/trunk@8217 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkStream::NewFromFile()Gravatar reed@google.com2013-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8216 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8211 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkStream::NewFromFile()Gravatar mike@reedtribe.org2013-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8210 2bbb7eff-a529-9590-31e7-b0007b416f81
* update coding styleGravatar mike@reedtribe.org2013-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8209 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improvements/additions to SkImageCache/SkLazyPixelRef.Gravatar scroggo@google.com2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SkPurgeableImageCache: New image cache that uses virtual memory to store the pixels. Combines features of SkAshmemImageCache (which has been removed) with SkPurgeableMemoryBlock, which has android and Mac versions. SkImageCache: Modified the API. pinCache now returns a status out parameter which states whether the pinned memory retained the old data. This allows allocAndPinCache to only be used for allocations. Add a new debug only interface to purge unpinned data. Updates to documentation, clarifying behavior. Changed CachedStatus to MemoryStatus SkLruImageCache: Implement the new function purgeAllUnpinnedCaches and change implementation of pinCache for the new behavior. SkLazyPixelRef: Rewrite onLockPixels to account for the new behavior of pinCache. BitmapFactoryTest: Test the new SkPurgeableImageCache. Write tests which directly test the SkImageCaches. Create a larger bitmap, since some of the SkImageCaches are designed to handle large bitmaps. bench_ and render_pictures: Consolidate lazy_decode_bitmap into one function. Allow using a flag to specify using the purgeable image cache. Clean up some #includes. Review URL: https://codereview.chromium.org/12433020 git-svn-id: http://skia.googlecode.com/svn/trunk@8207 2bbb7eff-a529-9590-31e7-b0007b416f81
* reland 8200 w/ fix for android (use fullpath instead of path)Gravatar reed@google.com2013-03-18
| | | | | | Review URL: https://codereview.chromium.org/12921003 git-svn-id: http://skia.googlecode.com/svn/trunk@8206 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 8204 -- what is happening???Gravatar reed@google.com2013-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8205 2bbb7eff-a529-9590-31e7-b0007b416f81
* reland 8200 w/ fix for android (need fullpath instead of path)Gravatar reed@google.com2013-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8204 2bbb7eff-a529-9590-31e7-b0007b416f81
* Do not use SkTDS32Array when building for 64 bit.Gravatar scroggo@google.com2013-03-18
| | | | | | | | | | | This class is used for pointers, which won't work on 64 bit. Fixes SampleApp on Mac debug 64 bit. BUG=https://code.google.com/p/skia/issues/detail?id=1169 Review URL: https://codereview.chromium.org/12919014 git-svn-id: http://skia.googlecode.com/svn/trunk@8203 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 8200 to figure out android breakGravatar reed@google.com2013-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8201 2bbb7eff-a529-9590-31e7-b0007b416f81
* move SK_MMAP_SUPPORT into SkPreConfig, so we can know about its availabilityGravatar reed@google.com2013-03-18
| | | | | | | | | | | throughout the code. Add SkData::NewFromMMap() help factory. Refactor (now gone) SkMMapStream into SkStream::NewFromFile() factory Review URL: https://codereview.chromium.org/12919013 git-svn-id: http://skia.googlecode.com/svn/trunk@8200 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added toString to SkMaskFilter-derived classesGravatar robertphillips@google.com2013-03-18
| | | | | | | | https://codereview.appspot.com/7889043/ git-svn-id: http://skia.googlecode.com/svn/trunk@8194 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-03-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8177 2bbb7eff-a529-9590-31e7-b0007b416f81
* Create a platform-dependent object for accessing purgeable memory.Gravatar scroggo@google.com2013-03-15
| | | | | | | | | | | Siphoned off from https://codereview.chromium.org/12433020/ Create a Skia class which can provide purgeable memory in a platform- dependent way. Include an implementation for Ashmem and Mac/iOS. Review URL: https://codereview.chromium.org/12645006 git-svn-id: http://skia.googlecode.com/svn/trunk@8176 2bbb7eff-a529-9590-31e7-b0007b416f81
* Patch to fix NULL ptr dereference in 8171 on LinuxGravatar robertphillips@google.com2013-03-15
| | | | | | | | TBR=junov@google.com git-svn-id: http://skia.googlecode.com/svn/trunk@8175 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing SkPicture command pattern optimizations to make them work correctly ↵Gravatar commit-bot@chromium.org2013-03-15
| | | | | | | | | | | | | | | with bounding box hierarchies BUG=https://code.google.com/p/chromium/issues/detail?id=180645 TEST=render_pictures -r <skp_dir> --validate --bbh <grid|rtree> --mode tile 256 256 Author: junov@chromium.org Reviewed By: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/12817011 git-svn-id: http://skia.googlecode.com/svn/trunk@8171 2bbb7eff-a529-9590-31e7-b0007b416f81