aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
Commit message (Collapse)AuthorAge
* add SK_API to SkMatrix44Gravatar reed@google.com2011-07-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1794 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkEmptyShader, and return it from CreateBitmapShader if the bitmap is emptyGravatar reed@google.com2011-07-05
| | | | | | | | (i.e. has no pixels at all) git-svn-id: http://skia.googlecode.com/svn/trunk@1792 2bbb7eff-a529-9590-31e7-b0007b416f81
* A bit set class. Will be used for font subsetting.Gravatar vandebo@chromium.org2011-07-02
| | | | | | | | | | Committed on behalf of arthurhsu@chromium.org with a few final nits. Original CL: http://codereview.appspot.com/4627077 Review URL: http://codereview.appspot.com/4657070 git-svn-id: http://skia.googlecode.com/svn/trunk@1788 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reverting r1775 at Mike and Brian's requestGravatar epoger@google.com2011-07-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1786 2bbb7eff-a529-9590-31e7-b0007b416f81
* export SkAutoSTMalloc (for multi-dll chrome build)Gravatar bsalomon@google.com2011-07-01
| | | | | | | | Review URL: http://codereview.appspot.com/4643063/ git-svn-id: http://skia.googlecode.com/svn/trunk@1784 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reworks r1770 so that users who have replaced SkUserConfig don't have toGravatar tomhudson@google.com2011-07-01
| | | | | | | | make any changes to continue compiling successfully. git-svn-id: http://skia.googlecode.com/svn/trunk@1779 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing several issues with rendering blurred bitmaps with GaneshGravatar junov@google.com2011-06-30
| | | | | | | | | BUG=http://code.google.com/p/skia/issues/detail?id=305 REVIEW=http://codereview.appspot.com/4630073/ git-svn-id: http://skia.googlecode.com/svn/trunk@1775 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrAuto*Malloc, replace with SkAuto*MallocGravatar bsalomon@google.com2011-06-30
| | | | | | | | Review URL: http://codereview.appspot.com/4629088 git-svn-id: http://skia.googlecode.com/svn/trunk@1774 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix asserts in new premul inline functionGravatar reed@google.com2011-06-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1773 2bbb7eff-a529-9590-31e7-b0007b416f81
* make inline version of premultiply, to speed up gradient creation.Gravatar reed@google.com2011-06-30
| | | | | | | | | | | We could speed-up again if we... - respected kDither and only built 1/2 of the table for non-dither requests - output simple params to the gpu rather than always a texture - detected that we have no alpha, and then can skip premul per-entry git-svn-id: http://skia.googlecode.com/svn/trunk@1772 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable WebKit/Chromium style logging for Skia.Gravatar tomhudson@google.com2011-06-30
| | | | | | | | | | New macros called in Ganesh functions; by default are compiled away, in example code resolve to printout, and are compatible with WebKit/Chromium event logging and GPU profiler. git-svn-id: http://skia.googlecode.com/svn/trunk@1770 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding the notion of a volatile bitmap to SkBitmap. Gravatar junov@google.com2011-06-30
| | | | | | | | | | | | | | | | | Volatility is a hint that indicates that the contents of a bitmap are ephemeral. SkGpuDevice will not preserve volatile bitmaps in its texture cache, and will use textures from a pool of keyless (recyclable) textures to avoid the performance hit of texture allocation and release. A subsequent change is required in webkit in order to take advantage of this optimization. putImageData, and other methods that create temporary bitmaps will have to mark their bitmaps as volatile. before rendering them through skia. git-svn-id: http://skia.googlecode.com/svn/trunk@1769 2bbb7eff-a529-9590-31e7-b0007b416f81
* SkStringPrintf helper fucntion + a new unit test for it.Gravatar tomhudson@google.com2011-06-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1766 2bbb7eff-a529-9590-31e7-b0007b416f81
* add mac utility to turn a pdf into a bitmapGravatar reed@google.com2011-06-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1743 2bbb7eff-a529-9590-31e7-b0007b416f81
* Parse SampleApp command line for a test name. If an argument is passed toGravatar senorblanco@chromium.org2011-06-28
| | | | | | | | | | | SampleApp on the command line, interpret it as a test name. If it's a valid test, open that test at startup. Review URL: http://codereview.appspot.com/4661054/ git-svn-id: http://skia.googlecode.com/svn/trunk@1742 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unused and untested SkPath::subdivide()Gravatar reed@google.com2011-06-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1732 2bbb7eff-a529-9590-31e7-b0007b416f81
* add ptr/len and SkData versions of Deflate()Gravatar reed@google.com2011-06-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1726 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove obsolete text codepathsGravatar reed@google.com2011-06-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1725 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove drawShape from canvas apiGravatar reed@google.com2011-06-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1723 2bbb7eff-a529-9590-31e7-b0007b416f81
* update doxGravatar reed@google.com2011-06-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1720 2bbb7eff-a529-9590-31e7-b0007b416f81
* use general SkWStream for parameterGravatar reed@google.com2011-06-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1719 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace detach/getStream apis on dynamicwstream with SkDataGravatar reed@google.com2011-06-24
| | | | | | | | http://codereview.appspot.com/4657046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1714 2bbb7eff-a529-9590-31e7-b0007b416f81
* New benchmark for SkMatrix::computeType().Gravatar tomhudson@google.com2011-06-24
| | | | | | | | Utility function in SkMatrix to make benchmarking more accurate. git-svn-id: http://skia.googlecode.com/svn/trunk@1710 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added utility functions and iOS ports of SkWindow, SkOSFile, SkFontHost, and ↵Gravatar yangsu@google.com2011-06-24
| | | | | | | | | | SkImageDecoder the iOSSampleApp in experimental currently includes all the following files but only uses SkOSWindow_iOS and SkOSFile_iOS http://codereview.appspot.com/4657047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1706 2bbb7eff-a529-9590-31e7-b0007b416f81
* add (replacing SkDataRef)Gravatar reed@google.com2011-06-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1698 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename public SkDataRef to SkDataGravatar reed@google.com2011-06-24
| | | | | | | | rename animator's internal SkData to SkDataInput git-svn-id: http://skia.googlecode.com/svn/trunk@1697 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added platform specific includesGravatar yangsu@google.com2011-06-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1696 2bbb7eff-a529-9590-31e7-b0007b416f81
* add copyToData() to dyanamicwstreamGravatar reed@google.com2011-06-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1695 2bbb7eff-a529-9590-31e7-b0007b416f81
* Wrap SkStreams in IStreams instead of copying data around.Gravatar bungeman@google.com2011-06-23
| | | | | | | http://codereview.appspot.com/4630062/ git-svn-id: http://skia.googlecode.com/svn/trunk@1694 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unify handleTouch and handleClick in SampleApp.Gravatar Scroggo2011-06-22
| | | | | | | | | | | | | | | Allow each sample to handle clicks in Android SampleApp. Remove SampleWindow::handleTouch. Allow an SkWindow to have multiple clicks. Add an owner pointer to SkView::Click. Reviewed at http://codereview.appspot.com/4643052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1673 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for 8 bits/component glyphs, toGravatar caryclark@google.com2011-06-22
| | | | | | | | | | | | | | | | | | | | better match the fonts produced by CoreText on OS/X. M include/config/SkUserConfig.h M include/core/SkMask.h M include/core/SkScalerContext.h M src/core/SkBlitter_ARGB32.cpp M src/core/SkScalerContext.cpp M src/core/SkPaint.cpp M src/gpu/SkGrFontScaler.cpp M src/ports/SkFontHost_mac_coretext.cpp M src/ports/SkFontHost_mac.cpp M gpu/include/GrTypes.h M gpu/src/GrAtlas.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@1672 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix a batch of coverity defects, uninitialized class fields.Gravatar vandebo@chromium.org2011-06-21
| | | | | | | | | In SkClipStack::B2FIter::Clip, SkWriter32, SkClipStack::Rec, SkDeque::F2BIter, SkPDFShader::State CID 15427,15433,15533,15532,16274,16740 Review URL: http://codereview.appspot.com/4630055 git-svn-id: http://skia.googlecode.com/svn/trunk@1669 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix some problems detected by coverity.Gravatar vandebo@chromium.org2011-06-21
| | | | | | | | | | | | - Uninitialized class member in GSCanonicalEntry and SkPDFDocument. - Incorrect sign extension in SkPDFFont. - Dead code in SkPDFUtils. CID=16262,16272,16273,16275 Review URL: http://codereview.appspot.com/4659041 git-svn-id: http://skia.googlecode.com/svn/trunk@1668 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove createDevice decl from SkProxyCanvas.h. Impl has already been removed ↵Gravatar bsalomon@google.com2011-06-21
| | | | | | | | | | in r1625. Review URL: http://codereview.appspot.com/4654047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1664 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add option in flattening to write factory names inline, as we are recording.Gravatar reed@google.com2011-06-21
| | | | | | | | | | | | | | | | | | | SkGPipe needs this, since it cannot (unlike SkPicture) see all of the factories before it hands its data to the reader. In this mode, the writer embedds the factory name the first time it sees it, and then after that writes an index (referencing the fFactorySet). The reader installs an empty array, and as it encounters names, appends them to that array so that subsequent indices can be used to retrieve the previously named factory. Some of the existing patheffects did not register their factory names, so those changes are also part of this CL. Annoyingly, to register your factory using the current scheme, it has to be in the public section of the class definition. git-svn-id: http://skia.googlecode.com/svn/trunk@1663 2bbb7eff-a529-9590-31e7-b0007b416f81
* change string read/write to store length as full 32-bit value. This simplifiesGravatar reed@google.com2011-06-21
| | | | | | | | | the internal logic, and allows SkFlattenable to rely on this when distinguishing between 0 and indices (which will soon be negative) and string-lengths. git-svn-id: http://skia.googlecode.com/svn/trunk@1660 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add a way to save to PDF in SampleApp on Android and elsewhere.Gravatar Scroggo2011-06-21
| | | | | | | | | In Android, add the PDF file to downloads, so it can be opened. Reviewed at http://codereview.appspot.com/4638052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1659 2bbb7eff-a529-9590-31e7-b0007b416f81
* Changed mac specific files to use ApplicationServices rather than CarbonGravatar yangsu@google.com2011-06-21
| | | | | | | http://codereview.appspot.com/4644053/ git-svn-id: http://skia.googlecode.com/svn/trunk@1658 2bbb7eff-a529-9590-31e7-b0007b416f81
* update doxGravatar reed@google.com2011-06-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1657 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrRenderTexture cons for gpu dev. Remove factory from gpu device.Gravatar bsalomon@google.com2011-06-17
| | | | | | | Review URL: http://codereview.appspot.com/4631046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1634 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add createNewCompatibleDevice. Allow devices to have a NULL factory and ↵Gravatar bsalomon@google.com2011-06-17
| | | | | | | | | | saveLayer will fall back on createNewCompatibleDevice. Review URL: http://codereview.appspot.com/4633044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1625 2bbb7eff-a529-9590-31e7-b0007b416f81
* Modified Pipe Reader to read an atom at a timeGravatar yangsu@google.com2011-06-16
| | | | | | | http://codereview.appspot.com/4636043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1623 2bbb7eff-a529-9590-31e7-b0007b416f81
* make SkDevice constructors explicit between offscreen and on/directGravatar reed@google.com2011-06-16
| | | | | | | | http://codereview.appspot.com/4632044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1620 2bbb7eff-a529-9590-31e7-b0007b416f81
* First pass at improving temporary tex/rt reuseGravatar bsalomon@google.com2011-06-16
| | | | | | | | | Review URL: http://codereview.appspot.com/4625043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1616 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement SkPoint::Normalize() for SK_SCALAR_IS_FIXED and add performance ↵Gravatar epoger@google.com2011-06-15
| | | | | | | | | | warning to its declaration http://codereview.appspot.com/4582043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1602 2bbb7eff-a529-9590-31e7-b0007b416f81
* Increase compatibility with clang, mostly around SK_RESTRICT.Gravatar tomhudson@google.com2011-06-15
| | | | | | | | Attempting to fix up our use of __restrict__ so Chrome can enable it. git-svn-id: http://skia.googlecode.com/svn/trunk@1597 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improvements to the SampleApp (primarily Android).Gravatar Scroggo2011-06-15
| | | | | | | | | | | | | | | | | | Reviewed at http://codereview.appspot.com/4587042/ Android - Added buttons for interaction without a keyboard. - Added the ability to zoom in to a specific point (roughly). - Added event handling (for showing a slideshow, for example). - Allow changing screen orientation - Updated README file, explaining how to build Multiplatform changes - Added SampleApp header file - Remove FPS when turning off measure FPS mode git-svn-id: http://skia.googlecode.com/svn/trunk@1596 2bbb7eff-a529-9590-31e7-b0007b416f81
* style and warningsGravatar reed@google.com2011-06-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1590 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkDataRef (for future use)Gravatar reed@google.com2011-06-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1588 2bbb7eff-a529-9590-31e7-b0007b416f81
* Updates to the Android SampleAppGravatar djsollen@google.com2011-06-13
| | | | | | | http://codereview.appspot.com/4602049/ git-svn-id: http://skia.googlecode.com/svn/trunk@1567 2bbb7eff-a529-9590-31e7-b0007b416f81