aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Add the ability to provide function pointers to SkPicture serializationGravatar scroggo@google.com2012-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and deserialization for encoding and decoding bitmaps. Remove kForceFlattenBitmapPixels_Flag, which is no longer used. When an SkOrderedReadBuffer needs to read a bitmap, if it does not have an image decoder, use a dummy bitmap. In GM, add a tolerance option for color differences, used when testing picture serialization, so it can assume two images are the same even though PNG encoding/decoding may have resulted in small differences. Create dummy implementations for SkImageDecoder and SkImageEncoder functions in SkImageDecoder_empty so that a project that does not want to include the images project it can still build. Allow ports to build without images project. In Mac's image encoder, copy 4444 to 8888 before encoding. Add SkWriter32::reservePad, to provide a pointer to write non 4 byte aligned data, padded with zeroes. In bench_ and render_ pictures, pass decode function to SkPicture creation from a stream. BUG=https://code.google.com/p/skia/issues/detail?id=842 Review URL: https://codereview.appspot.com/6551071 git-svn-id: http://skia.googlecode.com/svn/trunk@5818 2bbb7eff-a529-9590-31e7-b0007b416f81
* Lock gFTMutex when modifying FT globals.Gravatar scroggo@google.com2012-10-04
| | | | | | | | | This prevents a crash when running bench_pictures with multiple threads. Also remove an unused function and fix a typo in SkFontHost. Review URL: https://codereview.appspot.com/6625043 git-svn-id: http://skia.googlecode.com/svn/trunk@5816 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add convenience function on GrDrawState to set state bit based on a bool.Gravatar bsalomon@google.com2012-10-04
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6615044 git-svn-id: http://skia.googlecode.com/svn/trunk@5815 2bbb7eff-a529-9590-31e7-b0007b416f81
* Build fix: work around what appears to be an Intel GLSL driver bug. ↵Gravatar senorblanco@chromium.org2012-10-04
| | | | | | Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@5812 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed bug(s) in batching of rectsGravatar robertphillips@google.com2012-10-04
| | | | | | | | https://codereview.appspot.com/6608043/ git-svn-id: http://skia.googlecode.com/svn/trunk@5811 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable SK_DEBUG_PATH_REF in debug builds.Gravatar bsalomon@google.com2012-10-04
| | | | | | | R=reed@google.com Review URL: https://codereview.appspot.com/6602056 git-svn-id: http://skia.googlecode.com/svn/trunk@5810 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement GPU path for matrix convolution. Note that when not convolving alpha,Gravatar senorblanco@chromium.org2012-10-04
| | | | | | | | | | | | | | | | | | | | the premultiplying is done less efficiently than in the raster path: it's done on each texture access, rather than as a pre-processing pass. This was so I could do the filter as a single custom stage; will try the optimization separately. This implementation gives a ~30X speedup on the GPU results for the matrixconvolution bench (~10X due to the GPU, and ~3X due to texture uploads/readback removal). Note: this changes the matrixconvolution for the software path as well, so it will likely break the bots until that test is rebaselined. Review URL: https://codereview.appspot.com/6585069/ git-svn-id: http://skia.googlecode.com/svn/trunk@5809 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change default skia_osx_sdkroot to "macosx" (suitable for Xcode 3.2.6+)Gravatar epoger@google.com2012-10-04
| | | | | | | | See https://codereview.appspot.com/6553044 BUG=https://code.google.com/p/skia/issues/detail?id=796 Review URL: https://codereview.appspot.com/6598055 git-svn-id: http://skia.googlecode.com/svn/trunk@5806 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make numTextures() be non-virtual on GrCustomStage.Gravatar bsalomon@google.com2012-10-04
| | | | | | | R=tomhudson@google.com,robertphillips@google.com,senorblanco@chromium.org Review URL: https://codereview.appspot.com/6586081 git-svn-id: http://skia.googlecode.com/svn/trunk@5805 2bbb7eff-a529-9590-31e7-b0007b416f81
* Omit shader swizzle if it is rgba.Gravatar bsalomon@google.com2012-10-04
| | | | | | | R=robertphilips@google.com Review URL: https://codereview.appspot.com/6585082 git-svn-id: http://skia.googlecode.com/svn/trunk@5804 2bbb7eff-a529-9590-31e7-b0007b416f81
* Created filter command line toolGravatar robertphillips@google.com2012-10-04
| | | | | | | | https://codereview.appspot.com/6595066/ git-svn-id: http://skia.googlecode.com/svn/trunk@5803 2bbb7eff-a529-9590-31e7-b0007b416f81
* Allow Xcode to change paths to frameworks based on whether a device or ↵Gravatar bsalomon@google.com2012-10-04
| | | | | | | | | simulator was selected. R=caryclark@google.com Review URL: https://codereview.appspot.com/6590068 git-svn-id: http://skia.googlecode.com/svn/trunk@5802 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5798 2bbb7eff-a529-9590-31e7-b0007b416f81
* Ensure SkPathRef debug code mutex is initialized during creation of ↵Gravatar bsalomon@google.com2012-10-03
| | | | | | | | | statically-initialized SkPaths. R=reed@google.com Review URL: https://codereview.appspot.com/6592069 git-svn-id: http://skia.googlecode.com/svn/trunk@5797 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make it possible to generate the ios xcode proj by specifying only ↵Gravatar bsalomon@google.com2012-10-03
| | | | | | | | | skia_os="ios" in GYP_DEFINES. R=caryclark@google.com,epoger@google.com Review URL: https://codereview.appspot.com/6601051 git-svn-id: http://skia.googlecode.com/svn/trunk@5796 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 5794Gravatar reed@google.com2012-10-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5795 2bbb7eff-a529-9590-31e7-b0007b416f81
* add test for rotated saveLayer, to see that we clip against the specified boundsGravatar reed@google.com2012-10-03
| | | | | | | | (hint: we don't at the moment) git-svn-id: http://skia.googlecode.com/svn/trunk@5794 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds extra debugging to SkPathRef that can optionally be turned on in a ↵Gravatar bsalomon@google.com2012-10-03
| | | | | | | | | release build. This is pretty hacky but hopefully will be quite short-lived. Review URL: https://codereview.appspot.com/6584074 git-svn-id: http://skia.googlecode.com/svn/trunk@5793 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix test_small_segments3 path measure test.Gravatar bsalomon@google.com2012-10-03
| | | | | | Review URL: https://codereview.appspot.com/6601050 git-svn-id: http://skia.googlecode.com/svn/trunk@5792 2bbb7eff-a529-9590-31e7-b0007b416f81
* Allow render_pictures to render using multiple threads.Gravatar scroggo@google.com2012-10-03
| | | | | | | | | | | | Make write() a static function so it can be used by the thread entry functions. Add a helper function to append a number to a string and call write to share code. Review URL: https://codereview.appspot.com/6589062 git-svn-id: http://skia.googlecode.com/svn/trunk@5789 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r5557 (which itself was a revert of r5433). Relands SkPathRef. Will ↵Gravatar bsalomon@google.com2012-10-03
| | | | | | follow with change for extra debug checks to attempt to ferret out http://www.crbug.com/148637. git-svn-id: http://skia.googlecode.com/svn/trunk@5783 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added bench to replicate Google spreadsheet-style table drawingGravatar robertphillips@google.com2012-10-03
| | | | | | | | https://codereview.appspot.com/6593076/ git-svn-id: http://skia.googlecode.com/svn/trunk@5782 2bbb7eff-a529-9590-31e7-b0007b416f81
* Delete SkStream_Win.h as it appears to never have been used.Gravatar bungeman@google.com2012-10-03
| | | | | | | https://code.google.com/p/skia/issues/detail?id=281 git-svn-id: http://skia.googlecode.com/svn/trunk@5781 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5780 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix return value for render_picturesGravatar caryclark@google.com2012-10-02
| | | | | | Review URL: https://codereview.appspot.com/6590049 git-svn-id: http://skia.googlecode.com/svn/trunk@5779 2bbb7eff-a529-9590-31e7-b0007b416f81
* Oops, forgot a fileGravatar caryclark@google.com2012-10-02
| | | | | | Review URL: https://codereview.appspot.com/6593064 git-svn-id: http://skia.googlecode.com/svn/trunk@5777 2bbb7eff-a529-9590-31e7-b0007b416f81
* build iOS with 'make all'Gravatar caryclark@google.com2012-10-02
| | | | | | | | | | | This builds all skia tests by treating iOS tools as executable applications. A few warnings were fixed as well. Removed old trace draw code and remnants. Review URL: https://codereview.appspot.com/6597063 git-svn-id: http://skia.googlecode.com/svn/trunk@5776 2bbb7eff-a529-9590-31e7-b0007b416f81
* add getSeed()Gravatar reed@google.com2012-10-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5775 2bbb7eff-a529-9590-31e7-b0007b416f81
* catch empty stack in restorefixup called by clipRectGravatar reed@google.com2012-10-02
| | | | | | | | write stress-test for save/clip/restore peephole optimization git-svn-id: http://skia.googlecode.com/svn/trunk@5774 2bbb7eff-a529-9590-31e7-b0007b416f81
* reenable peephole optimization for save/clip/restore, with build flagGravatar reed@google.com2012-10-02
| | | | | | | | SK_DISABLE_PICTURE_PEEPHOLE_OPTIMIZATION to disable it (optional) git-svn-id: http://skia.googlecode.com/svn/trunk@5770 2bbb7eff-a529-9590-31e7-b0007b416f81
* xcode_settings OTHER_CPLUSPLUSFLAGS is a list.Gravatar bungeman@google.com2012-10-02
| | | | | | | https://codereview.appspot.com/6588062/ git-svn-id: http://skia.googlecode.com/svn/trunk@5769 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkNativeGLContext implementation for iOS.Gravatar bsalomon@google.com2012-10-02
| | | | | | | R=caryclark@google.com Review URL: https://codereview.appspot.com/6589055 git-svn-id: http://skia.googlecode.com/svn/trunk@5767 2bbb7eff-a529-9590-31e7-b0007b416f81
* When processing a morphology filter on the GPU, pass the processed texture,Gravatar senorblanco@chromium.org2012-10-02
| | | | | | | | | | not the original source texture. Review URL: https://codereview.appspot.com/6587057/ git-svn-id: http://skia.googlecode.com/svn/trunk@5766 2bbb7eff-a529-9590-31e7-b0007b416f81
* Roll gyp to 1509 for ninja compatibility.Gravatar bungeman@google.com2012-10-02
| | | | | | | https://codereview.appspot.com/6588059/ git-svn-id: http://skia.googlecode.com/svn/trunk@5765 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed canvas creation in SampleAppGravatar robertphillips@google.com2012-10-02
| | | | | | | | https://codereview.appspot.com/6588061/ git-svn-id: http://skia.googlecode.com/svn/trunk@5764 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed memory leak in bitmaprect GMGravatar robertphillips@google.com2012-10-02
| | | | | | | | https://codereview.appspot.com/6593058/ git-svn-id: http://skia.googlecode.com/svn/trunk@5763 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5762 2bbb7eff-a529-9590-31e7-b0007b416f81
* retool so we don't need to call SkCanvas::setDeviceGravatar reed@google.com2012-10-01
| | | | | | Review URL: https://codereview.appspot.com/6591054 git-svn-id: http://skia.googlecode.com/svn/trunk@5759 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix some bugs in our picture tools.Gravatar scroggo@google.com2012-10-01
| | | | | | | | | | | | When doing tiled rendering in multiple threads, clone fPicture, rather than the blank fPictureClones. Also fix a precedence problem so we get the correct rectangle. In render_pictures_main, call PictureRenderer::setup(). Review URL: https://codereview.appspot.com/6585055 git-svn-id: http://skia.googlecode.com/svn/trunk@5758 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move android gl files from src/gpu/android to src/gpu/gl/android.Gravatar bsalomon@google.com2012-10-01
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6590051 git-svn-id: http://skia.googlecode.com/svn/trunk@5757 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use setDevice rather than the removed setBitmapDevice.Gravatar bsalomon@google.com2012-10-01
| | | | | | | R=reed@google.com Review URL: https://codereview.appspot.com/6588057 git-svn-id: http://skia.googlecode.com/svn/trunk@5756 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix for typo in r5754 Gravatar robertphillips@google.com2012-10-01
| | | | | | | | unreviewed git-svn-id: http://skia.googlecode.com/svn/trunk@5755 2bbb7eff-a529-9590-31e7-b0007b416f81
* Speculative render target ref/unref fixesGravatar robertphillips@google.com2012-10-01
| | | | | | | | https://codereview.appspot.com/6592051/ git-svn-id: http://skia.googlecode.com/svn/trunk@5754 2bbb7eff-a529-9590-31e7-b0007b416f81
* delete obsolete/unused SkGpuCanvasGravatar reed@google.com2012-10-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5752 2bbb7eff-a529-9590-31e7-b0007b416f81
* 1. remove references to (deprecated) SkGpuCanvasGravatar reed@google.com2012-10-01
| | | | | | | 2. remove references to setDevice (soon to be deprecated) Review URL: https://codereview.appspot.com/6597055 git-svn-id: http://skia.googlecode.com/svn/trunk@5751 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add moc generated files to .gitignore.Gravatar tfarina@chromium.org2012-10-01
| | | | | | | | | | So that git status is clean again. R=tomhudson@google.com Review URL: https://codereview.appspot.com/6591045 git-svn-id: http://skia.googlecode.com/svn/trunk@5750 2bbb7eff-a529-9590-31e7-b0007b416f81
* views: Fix a typo in SkEvent.hGravatar tfarina@chromium.org2012-10-01
| | | | | | | | | | | WndProc is not implemented by unix/linux and does not even compile fixing the typoe, so just remove these function declarations. R=bsalomon@google.com Review URL: https://codereview.appspot.com/6561062 git-svn-id: http://skia.googlecode.com/svn/trunk@5749 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change the ios sample app name.Gravatar bsalomon@google.com2012-10-01
| | | | | | Review URL: https://codereview.appspot.com/6597053 git-svn-id: http://skia.googlecode.com/svn/trunk@5748 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding virtual method to SkDeferredCanvas::NotificationClient for signaling ↵Gravatar junov@google.com2012-10-01
| | | | | | | | | | when commands are skipped due to the skip on clear optimization. TEST=DeferredCanvas unit test BUG=http://code.google.com/p/chromium/issues/detail?id=116840 Review URL: https://codereview.appspot.com/6590050 git-svn-id: http://skia.googlecode.com/svn/trunk@5747 2bbb7eff-a529-9590-31e7-b0007b416f81
* re-land removal of setBitmapDeviceGravatar reed@google.com2012-10-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5746 2bbb7eff-a529-9590-31e7-b0007b416f81