aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* Fix matrix type in setRectToRectGravatar reed@google.com2012-10-12
| | | | | | Review URL: https://codereview.appspot.com/6655055 git-svn-id: http://skia.googlecode.com/svn/trunk@5913 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r3219. r3219 was a revert of r3036. r3036 made extractSubset copy the ↵Gravatar bsalomon@google.com2012-10-12
| | | | | | | | | | | | opaque bit but was reverted because of a partally-loaded jpeg issue in WK which has since been fixed: https://bugs.webkit.org/show_bug.cgi?id=78239 Related chrome bug: http://code.google.com/p/chromium/issues/detail?id=114107 git-svn-id: http://skia.googlecode.com/svn/trunk@5911 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn on GPU AA clippingGravatar robertphillips@google.com2012-10-12
| | | | | | | | https://codereview.appspot.com/6638048/ git-svn-id: http://skia.googlecode.com/svn/trunk@5909 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5908 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing SkDeferredCanvas to not consider paint as opaque when xfermode source ↵Gravatar junov@chromium.org2012-10-11
| | | | | | | | | | | | | coeff depends on destination pixel value TEST=DeferredCanvas unit test BUG=http://code.google.com/p/chromium/issues/detail?id=154748 git-svn-id: http://skia.googlecode.com/svn/trunk@5907 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minimize use of SkDraw's matrix in SkGpuDevice.Gravatar bsalomon@google.com2012-10-11
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6604068 git-svn-id: http://skia.googlecode.com/svn/trunk@5906 2bbb7eff-a529-9590-31e7-b0007b416f81
* SkTCopyOnFirstWriteGravatar bsalomon@google.com2012-10-11
| | | | | | | R=reed@google.com Review URL: https://codereview.appspot.com/6650047 git-svn-id: http://skia.googlecode.com/svn/trunk@5905 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn off some debugging statements.Gravatar scroggo@google.com2012-10-11
| | | | | | Review URL: https://codereview.appspot.com/6646044 git-svn-id: http://skia.googlecode.com/svn/trunk@5903 2bbb7eff-a529-9590-31e7-b0007b416f81
* CreateTypefaceFromFile for GDI.Gravatar bungeman@google.com2012-10-11
| | | | | | | https://codereview.appspot.com/6658045/ git-svn-id: http://skia.googlecode.com/svn/trunk@5901 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5892 2bbb7eff-a529-9590-31e7-b0007b416f81
* This patch implements generalized DAG connectivity for SkImageFilter. ↵Gravatar senorblanco@chromium.org2012-10-10
| | | | | | | | | | SkImageFilter maintains a list of inputs, which can be constructed either from a SkImageFilter** or zero or more SkImageFilter* arguments (varargs). Existing filters which maintained their own filter connectivity were refactored to use the new constructors and flattening/unflattening code. Modifying the remaining filters which are not yet DAG-friendly is left for future work; they are considered to have zero inputs for now. Review URL: https://codereview.appspot.com/6443119 git-svn-id: http://skia.googlecode.com/svn/trunk@5891 2bbb7eff-a529-9590-31e7-b0007b416f81
* Draw hairline text as path.Gravatar bsalomon@google.com2012-10-10
| | | | | | | R=reed@google.com Review URL: https://codereview.appspot.com/6632060 git-svn-id: http://skia.googlecode.com/svn/trunk@5884 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland r5861 but leave setMatrixClip virtual on SkDevice (IOW this is a ↵Gravatar bsalomon@google.com2012-10-10
| | | | | | | | | partial revert of r5871 which reverted r5861). Unreviewed Review URL: https://codereview.appspot.com/6631062 git-svn-id: http://skia.googlecode.com/svn/trunk@5881 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5872 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reverting r5861 (remove gainfocus and setMatixClip) due to Chrome ↵Gravatar robertphillips@google.com2012-10-09
| | | | | | compilation issues git-svn-id: http://skia.googlecode.com/svn/trunk@5871 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkPictures valid regardless of SK_SUPPORT_HINTING_SCALE_FACTOR.Gravatar scroggo@google.com2012-10-09
| | | | | | | | | | | | | | When the build flag is not set, read/write dummy values so that the creator of an SKP file need not have the same support/lack of support of the feature as the reader. Will separately update the checked in skps to the new version when checking in. BUG=http://code.google.com/p/skia/issues/detail?id=922 Review URL: https://codereview.appspot.com/6642057 git-svn-id: http://skia.googlecode.com/svn/trunk@5869 2bbb7eff-a529-9590-31e7-b0007b416f81
* correctly handle negative values in fixed_clamp()Gravatar reed@google.com2012-10-09
| | | | | | Review URL: https://codereview.appspot.com/6633049 git-svn-id: http://skia.googlecode.com/svn/trunk@5867 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable automatic font fallback of SkFontHost_android when building for WebKitGravatar djsollen@google.com2012-10-09
| | | | | | | | | | | | | | | | The internal font fallback mechanism prevents WebKit from getting the properties of the actually used font. Disable the internal fallback mechanism when building for WebKit and add SkGetFallbackFamilyNameForChar() to let the upper level know the fallback font for individial characters. This commits a change that was submitted for review by... wangxianzhu1 @ https://codereview.appspot.com/6572059/ BUG=913 (http://code.google.com/p/skia/issues/detail?id=913) Review URL: https://codereview.appspot.com/6640048 git-svn-id: http://skia.googlecode.com/svn/trunk@5866 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed xoom bug introduced in r5830Gravatar robertphillips@google.com2012-10-09
| | | | | | | | https://codereview.appspot.com/6604053/ git-svn-id: http://skia.googlecode.com/svn/trunk@5862 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove gainFocus() and setMatrixClip() virtuals from SkDevice.Gravatar bsalomon@google.com2012-10-09
| | | | | | | R=reed@google.com,robertphillips@google.com Review URL: https://codereview.appspot.com/6636050 git-svn-id: http://skia.googlecode.com/svn/trunk@5861 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5858 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove external matrix feature.Gravatar bsalomon@google.com2012-10-08
| | | | | | | | | We haven't been testing this for nearly two years. R=reed@google.com Review URL: https://codereview.appspot.com/6640044 git-svn-id: http://skia.googlecode.com/svn/trunk@5857 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make additional code paths go through GrDrawState helper classes for their ↵Gravatar bsalomon@google.com2012-10-08
| | | | | | | | | matrix manipulations. R=robertphillips@google.com Review URL: https://codereview.appspot.com/6615064 git-svn-id: http://skia.googlecode.com/svn/trunk@5856 2bbb7eff-a529-9590-31e7-b0007b416f81
* Speculative fix for Chrome bugGravatar robertphillips@google.com2012-10-08
| | | | | | | | https://codereview.appspot.com/6632045/ git-svn-id: http://skia.googlecode.com/svn/trunk@5855 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrDrawState::AutoRestoreViewMatrix handle sampler matrices.Gravatar bsalomon@google.com2012-10-08
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6618065 git-svn-id: http://skia.googlecode.com/svn/trunk@5853 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove translate param from GrContext::drawPath (and subsequent calls).Gravatar bsalomon@google.com2012-10-08
| | | | | | Review URL: https://codereview.appspot.com/6615062 git-svn-id: http://skia.googlecode.com/svn/trunk@5852 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix typo in SkFontHost_win_dw.cpp.Gravatar bungeman@google.com2012-10-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5850 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5848 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move some auto restore helpers from GrDrawTarget to GrDrawState.Gravatar bsalomon@google.com2012-10-05
| | | | | | R=robertphillips@google.com git-svn-id: http://skia.googlecode.com/svn/trunk@5846 2bbb7eff-a529-9590-31e7-b0007b416f81
* GrPaint encapsulation.Gravatar bsalomon@google.com2012-10-05
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6624052 git-svn-id: http://skia.googlecode.com/svn/trunk@5838 2bbb7eff-a529-9590-31e7-b0007b416f81
* No hinting on Mac should be lower priority than subpixel rendering.Gravatar bungeman@google.com2012-10-05
| | | | | | | https://codereview.appspot.com/6612056/ git-svn-id: http://skia.googlecode.com/svn/trunk@5836 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix find/replace missed in #ifdef'ed out code in r5827.Gravatar bsalomon@google.com2012-10-05
| | | | | | | | Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@5834 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change SkLightingImageFilter to derive from SkSingleInputImageFilter, so ↵Gravatar senorblanco@chromium.org2012-10-05
| | | | | | | | | | that it can participate in filter DAGs. No tests yet. Review URL: https://codereview.appspot.com/6620055 git-svn-id: http://skia.googlecode.com/svn/trunk@5832 2bbb7eff-a529-9590-31e7-b0007b416f81
* Moved paint color to vertex colors for batched rectsGravatar robertphillips@google.com2012-10-05
| | | | | | | | https://codereview.appspot.com/6620045/ git-svn-id: http://skia.googlecode.com/svn/trunk@5830 2bbb7eff-a529-9590-31e7-b0007b416f81
* cleanup coding style for r5825Gravatar djsollen@google.com2012-10-05
| | | | | | Review URL: https://codereview.appspot.com/6621054 git-svn-id: http://skia.googlecode.com/svn/trunk@5829 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rename GrPaint fields/enums/members texture->color mask->coverage.Gravatar bsalomon@google.com2012-10-05
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6615046 git-svn-id: http://skia.googlecode.com/svn/trunk@5827 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reduce Android Log Spam.Gravatar djsollen@google.com2012-10-05
| | | | | | | | The logging of system fonts is now hidden behind a #define Review URL: https://codereview.appspot.com/6609048 git-svn-id: http://skia.googlecode.com/svn/trunk@5825 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move setPaint from GrContext to GrDrawState.Gravatar bsalomon@google.com2012-10-05
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/6624045 git-svn-id: http://skia.googlecode.com/svn/trunk@5823 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5821 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove state from SkColorSpaceLuminance to avoid memory management.Gravatar bungeman@google.com2012-10-04
| | | | | | | https://codereview.appspot.com/6610047/ git-svn-id: http://skia.googlecode.com/svn/trunk@5820 2bbb7eff-a529-9590-31e7-b0007b416f81
* 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
* 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
* 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
* 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