aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* don't modify const SkDraw, since multiple threads may be watching it...Gravatar reed@google.com2011-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1954 2bbb7eff-a529-9590-31e7-b0007b416f81
* don/t modify const paint, since it could be used in different threadsGravatar reed@google.com2011-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1953 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add sizeInBytes to GrResource, make GrRenderTarget aware of its pixel configGravatar bsalomon@google.com2011-07-25
| | | | | | | | Review URL: http://codereview.appspot.com/4802058/ git-svn-id: http://skia.googlecode.com/svn/trunk@1951 2bbb7eff-a529-9590-31e7-b0007b416f81
* Slightly improve visuals of bitmapscroll test in gmGravatar epoger@google.com2011-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1949 2bbb7eff-a529-9590-31e7-b0007b416f81
* Exit SkBitmap::scrollRect() early if width <= 0Gravatar epoger@google.com2011-07-25
| | | | | | | As suggested in email from saintlou@google.com Review URL: http://codereview.appspot.com/4806047 git-svn-id: http://skia.googlecode.com/svn/trunk@1948 2bbb7eff-a529-9590-31e7-b0007b416f81
* Documentation only: add warning to SkCanvas::writePixels() that this operationGravatar epoger@google.com2011-07-25
| | | | | | | will not be recorded by SkPicture. Review URL: http://codereview.appspot.com/4815054 git-svn-id: http://skia.googlecode.com/svn/trunk@1947 2bbb7eff-a529-9590-31e7-b0007b416f81
* add --match to the help textGravatar reed@google.com2011-07-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1946 2bbb7eff-a529-9590-31e7-b0007b416f81
* reenable rotated freetype fix, but behind #ifndef ↵Gravatar reed@google.com2011-07-25
| | | | | | | | | | | | SK_IGNORE_ROTATED_FREETYPE_FIX, so chrome can disable it for now. add --match foo to gm/ so you can run just tests that substring match your pattern (foo) git-svn-id: http://skia.googlecode.com/svn/trunk@1945 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "[PDF] Refactor SkPDFFont to enable font/cmap subsetting."Gravatar vandebo@chromium.org2011-07-23
| | | | | | | | The PDF xref table is corrupt with this change. Revert until we figure it out. Review URL: http://codereview.appspot.com/4803049 git-svn-id: http://skia.googlecode.com/svn/trunk@1944 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Refactor SkPDFFont to enable font/cmap subsetting.Gravatar vandebo@chromium.org2011-07-23
| | | | | | | | Patch from Arthur Hsu, original CL: http://codereview.appspot.com/4633050/ Review URL: http://codereview.appspot.com/4811049 git-svn-id: http://skia.googlecode.com/svn/trunk@1943 2bbb7eff-a529-9590-31e7-b0007b416f81
* Temporary rollback of r1924 to unblock DEPS rollGravatar bsalomon@google.com2011-07-22
| | | | | | | | Review URL: http://codereview.appspot.com/4817046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1942 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve GPU blur performance by clearing only when necessary. This gives aGravatar senorblanco@chromium.org2011-07-22
| | | | | | | | | | | | | | | | | | 1.8X speedup on the Blurs sample, and 2.3X on the BigBlur sample. We don't need to clear while downsampling, since each step reads only the pixels written in the previous step. We can avoid destination clears before convolution by disabling blending. We also don't need to clear when upsampling, since the upsample step also only reads pixels written by the convolution. The only clears we then need to do are on each side of the srcRect used for convolution, and a 1-pixel border for bilinear upsampling. Since our srcRect is always offset to (0, 0), we only need to clear on the right and bottom. Review URL: http://codereview.appspot.com/4803048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1941 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add debug symbols to Windows static librariesGravatar epoger@google.com2011-07-22
| | | | | | | As requested in http://code.google.com/p/skia/issues/detail?id=320 Review URL: http://codereview.appspot.com/4805050 git-svn-id: http://skia.googlecode.com/svn/trunk@1940 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] fix off by one in setPage.Gravatar vandebo@chromium.org2011-07-22
| | | | | | | | TBR=ctguil@chromium.org Review URL: http://codereview.appspot.com/4807045 git-svn-id: http://skia.googlecode.com/svn/trunk@1939 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r1937 while I try to figure out the GM failures.Gravatar senorblanco@chromium.org2011-07-21
| | | | | | | | (Unreviewed; build fix). git-svn-id: http://skia.googlecode.com/svn/trunk@1938 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve GPU blur speed by clearing only when necessary. This gives aGravatar senorblanco@chromium.org2011-07-21
| | | | | | | | | | | | | | | | | | 1.8X speedup on the Blurs sample, and 2.3X on the BigBlur sample. We don't need to clear while downsampling, since each step reads only the pixels written in the previous step. We can avoid destination clears before convolution by disabling blending. We also don't need to clear when upsampling, since the upsample step also only reads pixels written by the convolution. The only clears we then need to do are on each side of the srcRect used for convolution. Since our srcRect is always offset to (0, 0), we only need to clear on the right and bottom. Review URL: http://codereview.appspot.com/4803048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1937 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove forward declaration and reference to extinct SkDeviceFactoryGravatar reed@google.com2011-07-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1931 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add gm/base-win-fixed baseline imagesGravatar epoger@google.com2011-07-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1930 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix gradients_degenerate test case for SKIA_SCALAR_IS_FIXEDGravatar epoger@google.com2011-07-21
| | | | | | | | http://codereview.appspot.com/4811046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1928 2bbb7eff-a529-9590-31e7-b0007b416f81
* rebaseline with unhinted rotated text in freetypeGravatar reed@google.com2011-07-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1927 2bbb7eff-a529-9590-31e7-b0007b416f81
* rebaseline now that freetype is unhinted when rotatedGravatar reed@google.com2011-07-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1926 2bbb7eff-a529-9590-31e7-b0007b416f81
* In experimental/SkSetPoly3To3_A.cpp, rename div() to divide() to resolve ↵Gravatar epoger@google.com2011-07-21
| | | | | | namespace collision in Windows. git-svn-id: http://skia.googlecode.com/svn/trunk@1925 2bbb7eff-a529-9590-31e7-b0007b416f81
* disable hinting when rotated, since it looks badGravatar reed@google.com2011-07-21
| | | | | | | | we do the same thing on windows (mac seems to handle rotation fine) git-svn-id: http://skia.googlecode.com/svn/trunk@1924 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix SkFlate.cpp when SK_ZLIB_INCLUDE is not #defined.Gravatar epoger@google.com2011-07-21
| | | | | | This was failing for Windows builds since r1911. git-svn-id: http://skia.googlecode.com/svn/trunk@1923 2bbb7eff-a529-9590-31e7-b0007b416f81
* whitespace changeGravatar epoger@google.com2011-07-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1919 2bbb7eff-a529-9590-31e7-b0007b416f81
* have == always return bool, never intGravatar reed@google.com2011-07-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1915 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace SkRefPtr for parameters with simple pointersGravatar reed@google.com2011-07-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1913 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Use insert and append helpers for POD data.Gravatar vandebo@chromium.org2011-07-20
| | | | | | | | BUG=251 Review URL: http://codereview.appspot.com/4815044 git-svn-id: http://skia.googlecode.com/svn/trunk@1912 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Make stream compression optional on a per device basis.Gravatar vandebo@chromium.org2011-07-20
| | | | | | | | | | | | | | | There are a lot of small pieces to make this change work: - SkPDFDocument (and SkPDFCatalog) take flags to disable compression (and font embedding - not implemented yet, can disable font subsetting for now). - SkPDFStream now defers compression until the size/emit step. - Classes that *had* a stream (because they didn't know the stream size at construction time) now *are* streams to make the substitution work correctly. - The SkPDFShader implementation got pulled apart into two classes, one that is a SkPDFDict, and one that is a SkPDFStream (making the common ancestor SkPDFObject). - Added helper methods in SkPDFObject for children that have simple resource lists. - Added an iterator to SkPDFDict so that a substitute SkPDFStream can get a copy of the stream dictionary. - Change SkPDFDocument to have a pointer to an SkPDFCatalog to remove a new circular header reference. Review URL: http://codereview.appspot.com/4700045 git-svn-id: http://skia.googlecode.com/svn/trunk@1911 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix Capitalization of static methodsGravatar reed@google.com2011-07-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1910 2bbb7eff-a529-9590-31e7-b0007b416f81
* helpers for append and insert when the value is a POD.Gravatar reed@google.com2011-07-20
| | | | | | | | reduces code-size and perf: fewer refs/unrefs git-svn-id: http://skia.googlecode.com/svn/trunk@1909 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix substitute resources size calculation.Gravatar vandebo@chromium.org2011-07-20
| | | | | | Review URL: http://codereview.appspot.com/4803041 git-svn-id: http://skia.googlecode.com/svn/trunk@1908 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix GPU blur cacheing bug. Sometimes, the texture cache serves us textures ofGravatar senorblanco@chromium.org2011-07-19
| | | | | | | | | | | | | | | different sizes for srcTexture and dstTexture (this is fair; they're supposed to be approximate). Code was assuming otherwise while downsampling; fix is to reapply the scale on each downsample. (Yes, I could cache these reciprocals if and when they prove to be a hot spot). Also, use setIDiv(w,h) everywhere for conciseness. Review URL: http://codereview.appspot.com/4798041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1907 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove these for now, since each WIN machine can have different lcdGravatar reed@google.com2011-07-19
| | | | | | | | | | settings. can be fixed if we programmatically jam in some setting. If these are gone, gm will complain, but will not return failure to the bot. git-svn-id: http://skia.googlecode.com/svn/trunk@1906 2bbb7eff-a529-9590-31e7-b0007b416f81
* rebaseline with new gpu-based blurricatorGravatar reed@google.com2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1905 2bbb7eff-a529-9590-31e7-b0007b416f81
* export function to return a typeface's LOGFONTGravatar reed@google.com2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1903 2bbb7eff-a529-9590-31e7-b0007b416f81
* new baselines now that we're executing the blurs directly on the gpuGravatar reed@google.com2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1902 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable the GPU-based blur by default in Skia, and provide a #define to disableGravatar senorblanco@chromium.org2011-07-19
| | | | | | | | | | | | | it (SK_DISABLE_GPU_BLUR). Note: this change will break some the GM test results. I've attempted to rebaseline MacPro float results; more to come. Review URL: http://codereview.appspot.com/4784043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1901 2bbb7eff-a529-9590-31e7-b0007b416f81
* eliminate unneeded refs/unrefsGravatar reed@google.com2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1900 2bbb7eff-a529-9590-31e7-b0007b416f81
* Instead of turning clipping off during AA, clip to the offscreen tile whenGravatar tomhudson@google.com2011-07-19
| | | | | | | | | we're writing to it, then restore the onscreen clip when copying it back to screen. Speeds up rendering of web pages with paths >> tile size. git-svn-id: http://skia.googlecode.com/svn/trunk@1899 2bbb7eff-a529-9590-31e7-b0007b416f81
* iOSSampleApp can now switch backends during runtimeGravatar yangsu@google.com2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1897 2bbb7eff-a529-9590-31e7-b0007b416f81
* whitespace commit to trigger buildbotGravatar epoger@google.com2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1896 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove dead edgebuilding codeGravatar mike@reedtribe.org2011-07-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1893 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add setPage method to SkPDFDocument.Gravatar vandebo@chromium.org2011-07-18
| | | | | | | | BUG=312 Review URL: http://codereview.appspot.com/4763047 git-svn-id: http://skia.googlecode.com/svn/trunk@1892 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix kernel width calculation in GPU-based Gaussian blur. When converting theGravatar senorblanco@chromium.org2011-07-18
| | | | | | | | | sigma value to a kernel width, it should be rounded up. Otherwise, for small sigmas, the edge pixels of the kernel may be missing. git-svn-id: http://skia.googlecode.com/svn/trunk@1891 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add mac baselines for tinybitmap Gravatar bsalomon@google.com2011-07-18
| | | | | | | | Review URL: http://codereview.appspot.com/4674048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1890 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add linux tinybitmap gm imagesGravatar bsalomon@google.com2011-07-18
| | | | | | | | Review URL: http://codereview.appspot.com/4674048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1889 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add tinybitmap gm and windows baselines.Gravatar bsalomon@google.com2011-07-18
| | | | | | | | Review URL: http://codereview.appspot.com/4674048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1888 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use texture cache for writePixels tempGravatar bsalomon@google.com2011-07-18
| | | | | | | | Review URL: http://codereview.appspot.com/4757050/ git-svn-id: http://skia.googlecode.com/svn/trunk@1887 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Make color shaders work correctly.Gravatar vandebo@chromium.org2011-07-18
| | | | | | | | | Make SkPDFShader correctly bail out for color shaders. Fix the bail out handling code. Review URL: http://codereview.appspot.com/4750045 git-svn-id: http://skia.googlecode.com/svn/trunk@1886 2bbb7eff-a529-9590-31e7-b0007b416f81