aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
...
* add optoinal bytesRead argument (output) to playback()Gravatar reed@google.com2011-05-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1400 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warningsGravatar reed@google.com2011-05-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1399 2bbb7eff-a529-9590-31e7-b0007b416f81
* add cross-process option to gpipeGravatar reed@google.com2011-05-23
| | | | | | | | add unittests for reader32 and writer32 git-svn-id: http://skia.googlecode.com/svn/trunk@1397 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix unnitialized memory in Sk2DPathEffect. The SkDescriptor checksumGravatar senorblanco@chromium.org2011-05-20
| | | | | | | | | | | | | | calculation for Sk2DPathEffect currently evaluates all the bytes in the embedded SkMatrix. This includes the type mask, which contains some uninitialized padding. Changing it to use SkMatrix::flatten() and SkMatrix::unflatten() (as SkGroupShape was doing) avoids the uninitialized data errors. Review URL: http://codereview.appspot.com/4529074/ git-svn-id: http://skia.googlecode.com/svn/trunk@1395 2bbb7eff-a529-9590-31e7-b0007b416f81
* Clean up some valgrind errors in SkTransparentShader. Valgrind complainsGravatar senorblanco@chromium.org2011-05-20
| | | | | | | | | | | about overlapping memcpy(). In fact, it seems that src and dest are the same, so we should be able to skip the copy in this case. Review URL: http://codereview.appspot.com/4535085/ git-svn-id: http://skia.googlecode.com/svn/trunk@1393 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add dual source blending support for proper blending with coverage.Gravatar bsalomon@google.com2011-05-20
| | | | | | | | Review URL: http://codereview.appspot.com/4535088/ git-svn-id: http://skia.googlecode.com/svn/trunk@1390 2bbb7eff-a529-9590-31e7-b0007b416f81
* The plain Makefile was using -Wall, but the gyp build wasn't. This CL turns onGravatar senorblanco@chromium.org2011-05-19
| | | | | | | | | | | | | | | | | | | -Wall -Wextra and -Wno-unused in common.gypi. This revealed a lot of warnings (and some actual bugs), all of which I fixed here. This is pretty mindless stuff for the most part (order of intialization, missing initializers, && within ||, etc), but will allow us to build cleanly with -Wall and -Wextra (and -Werror, if we so choose). I put defaults into switches that were missing cases. I could put in the actual missing enums instead if that's desired. I could also assert on missing enums instead of break, if that's desired. I wasn't sure how to test the stuff in "animator", so that should be looked at a bit more closely. Review URL: http://codereview.appspot.com/4547055/ git-svn-id: http://skia.googlecode.com/svn/trunk@1386 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add Mesa as a GL backend.Gravatar bungeman@google.com2011-05-19
| | | | | | | http://codereview.appspot.com/4545055/ git-svn-id: http://skia.googlecode.com/svn/trunk@1382 2bbb7eff-a529-9590-31e7-b0007b416f81
* Batch up draws into triangle fans as large as possible when drawing convexGravatar senorblanco@chromium.org2011-05-19
| | | | | | | | | | | | | edge AA polys, so we minimize state changes and GL calls. This requires querying GL for the maximum number of fragment uniforms. It also makes the shader generator produce custom shaders for the number of relevant edges. This gives a ~5X speedup on the "Shapes" SampleApp. Review URL: http://codereview.appspot.com/4536070/ git-svn-id: http://skia.googlecode.com/svn/trunk@1380 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Implement clear xfermode with a mask instead of pushing the clip down.Gravatar vandebo@chromium.org2011-05-18
| | | | | | | | This approach is much less likely to use an SkRegion and ends up working better for Webkit. Review URL: http://codereview.appspot.com/4550057 git-svn-id: http://skia.googlecode.com/svn/trunk@1375 2bbb7eff-a529-9590-31e7-b0007b416f81
* setHinting modifies fFlags in places, so call it last (after initializing ↵Gravatar reed@google.com2011-05-18
| | | | | | fFlags) git-svn-id: http://skia.googlecode.com/svn/trunk@1372 2bbb7eff-a529-9590-31e7-b0007b416f81
* encode current LCD orientation and order into font-cache-keyGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1368 2bbb7eff-a529-9590-31e7-b0007b416f81
* support BW glyphs, instead of always forcing them to AAGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1364 2bbb7eff-a529-9590-31e7-b0007b416f81
* improve gray approximation for LCD LERPGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1359 2bbb7eff-a529-9590-31e7-b0007b416f81
* add optional decolorization value for lcd textGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1358 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use coverage stages for supersample AA resolve, edgeAA, and glyph masks. ↵Gravatar bsalomon@google.com2011-05-17
| | | | | | | | | | Expose a mask stage through GrPaint Review URL: http://codereview.appspot.com/4548048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1356 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Improve path effect and drawPath(prePathMatrix) support.Gravatar vandebo@chromium.org2011-05-17
| | | | | | | | | | | | Add path effect handling for drawPoints (via drawPath). Move path effect handling from drawRect to drawPath. Add prePathMatrix support to drawPath. BUG=crbug.com/82849 Review URL: http://codereview.appspot.com/4531047 git-svn-id: http://skia.googlecode.com/svn/trunk@1354 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix enums in code path that uses uncached GrRenderTargets behind SkGpuDevicesGravatar bsalomon@google.com2011-05-17
| | | | | | | | Review URL: http://codereview.appspot.com/4535081/ git-svn-id: http://skia.googlecode.com/svn/trunk@1352 2bbb7eff-a529-9590-31e7-b0007b416f81
* get tests closer to passing for SKIA_SCALAR=fixedGravatar epoger@google.com2011-05-17
| | | | | | | | http://codereview.appspot.com/4532064/ git-svn-id: http://skia.googlecode.com/svn/trunk@1351 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove reference to fContextGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1348 2bbb7eff-a529-9590-31e7-b0007b416f81
* silence printfGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1346 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GL context creation for X so that gm can run GPU on Linux.Gravatar bungeman@google.com2011-05-17
| | | | | | | http://codereview.appspot.com/4548047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1343 2bbb7eff-a529-9590-31e7-b0007b416f81
* use hires metrics when rotated (or subpixel is requested)Gravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1342 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use SkSetFourByteTag in SkFontHost_win.cpp.Gravatar ctguil@chromium.org2011-05-16
| | | | | | Review URL: http://codereview.appspot.com/4535075 git-svn-id: http://skia.googlecode.com/svn/trunk@1340 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed color bleeding issue when drawing a sub region of a bitmap with ↵Gravatar junov@google.com2011-05-16
| | | | | | | | | | | filtering enabled. Problem was resolved by adding the notion of a custom texture domain in generated shaders, when necessary. git-svn-id: http://skia.googlecode.com/svn/trunk@1337 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkPath for GrPath, removing GrPathIter entirelyGravatar reed@google.com2011-05-16
| | | | | | | | http://codereview.appspot.com/4515071/ git-svn-id: http://skia.googlecode.com/svn/trunk@1335 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change getConvexity() to now compute it if the value is set to kUnkown.Gravatar reed@google.com2011-05-16
| | | | | | | | Change behavior for degenerate paths: now those return kConvex instead of kUnknown git-svn-id: http://skia.googlecode.com/svn/trunk@1330 2bbb7eff-a529-9590-31e7-b0007b416f81
* Optimize colorfilter path when using a constant color.\nReviewed at ↵Gravatar Scroggo2011-05-16
| | | | | | http://codereview.appspot.com/4548041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1328 2bbb7eff-a529-9590-31e7-b0007b416f81
* clean up sign detection code in computeconvexityGravatar reed@google.com2011-05-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1327 2bbb7eff-a529-9590-31e7-b0007b416f81
* detect more than one loop in computeconvexityGravatar reed@google.com2011-05-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1326 2bbb7eff-a529-9590-31e7-b0007b416f81
* add Convexity enum to SkPathGravatar reed@google.com2011-05-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1324 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes.Gravatar vandebo@chromium.org2011-05-13
| | | | | | | | | | This change uses the soft mask (aka soft clip) functionality of PDF to implement the xfermodes. It has to put existing content (dst) into a form xobject as well as putting the new (src) content into a different form xobject. It then draws one of them with the other as the soft mask. To accomplish this, we add a call to finishContentEntry after each call to setUpContentEntry - this is kind of a hack, but I don't see a better way to extract src. Unfortunately, soft mask is specified in the Graphic State PDF object (and not in the form xobject), so when handling one of these modes, we add a one time GS object to set the soft mask and invoke a simple GS to reset the soft mask when done. Review URL: http://codereview.appspot.com/4496041 git-svn-id: http://skia.googlecode.com/svn/trunk@1320 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix windows SkFontHost::OpenStream for TTC fonts.Gravatar vandebo@chromium.org2011-05-13
| | | | | | Review URL: http://codereview.appspot.com/4515074 git-svn-id: http://skia.googlecode.com/svn/trunk@1319 2bbb7eff-a529-9590-31e7-b0007b416f81
* Edge antialiasing for convex shapes in GaneshGravatar senorblanco@chromium.org2011-05-12
| | | | | | | | | | | | | | | | | | | This patch implements edge antialiasing for convex shapes, using the fragment shader to compare against the edge equations for each triangle. Currently, it only works for flat shaded primitives (i.e., it was not integrated into the "active stages" path). The skia.gyp changes cause this code to be compiled into SampleApp, but do not enable the tesselated path by default. Notes: the SkOSWindow_Unix.cpp change is to silence a valgrind warning about memcpy() with overlapping regions. The GrBinHashKey change is to avoid running a two-pass hash (GrProgramDesc is now 52 bytes or so, exceeding the 32 byte default size). Review URL: http://codereview.appspot.com/4519054/ git-svn-id: http://skia.googlecode.com/svn/trunk@1314 2bbb7eff-a529-9590-31e7-b0007b416f81
* cleanup previous array of paintsGravatar reed@google.com2011-05-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1310 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix Chrome crash - don't assume that SkDraw.fClipStack != NULL.Gravatar vandebo@chromium.org2011-05-11
| | | | | | | | Chrome bug is crbug.com/82198. Review URL: http://codereview.appspot.com/4515061 git-svn-id: http://skia.googlecode.com/svn/trunk@1306 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove dead debug code.Gravatar bsalomon@google.com2011-05-11
| | | | | | | | Review URL: http://codereview.appspot.com/4521056/ git-svn-id: http://skia.googlecode.com/svn/trunk@1300 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add color filters to gpu path.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1297 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove some dead code in pipesGravatar reed@google.com2011-05-11
| | | | | | | | | inherit from SampleView for more samples add L key to toggle using SkGPipe git-svn-id: http://skia.googlecode.com/svn/trunk@1296 2bbb7eff-a529-9590-31e7-b0007b416f81
* check-point for pipe: flatten/unflatten objects for single paintGravatar reed@google.com2011-05-11
| | | | | | | | still need replacement policy git-svn-id: http://skia.googlecode.com/svn/trunk@1294 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix ending condition for font advance construction.Gravatar vandebo@chromium.org2011-05-10
| | | | | | | | The old code always ended (the last sequence of glyphs) on a range, even if there was a very long run at the end. This fixes that. Review URL: http://codereview.appspot.com/4539045 git-svn-id: http://skia.googlecode.com/svn/trunk@1293 2bbb7eff-a529-9590-31e7-b0007b416f81
* git-svn-id: http://skia.googlecode.com/svn/trunk@1292 ↵Gravatar twiz@google.com2011-05-10
| | | | 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix bug where we wrote uninitialized data to the flatten stream for shaders.Gravatar reed@google.com2011-05-10
| | | | | | | | | | | | | | | | | | | Both shader and gradient_shader write matrices to the flatten stream. However, they were just calling write(&matrix, sizeof(SkMatrix)) and the matrix can contain lazily-computed function ptrs as part of its internal cache. Thus two matrices that are logically the same may write different bytes. This is a problem because picture relies on flattening objects and then using the flatten stream as a key into its cache. This matrix-write bug effectively kills the effectiveness of the cache for shaders. The fix is to write proper read/write functions for matrix (and region btw). These call through to the existing low-level flatten routines (which just write into a memory ptr). git-svn-id: http://skia.googlecode.com/svn/trunk@1290 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrMatrix an alias of SkMatrix. Add new methods to SkMatrix.Gravatar bsalomon@google.com2011-05-10
| | | | | | | | | | Review URL: http://codereview.appspot.com/4538043/ Checked in on behalf of reed@ with some additional work (remove the do-nother sk->gr matrix converter). git-svn-id: http://skia.googlecode.com/svn/trunk@1289 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unneeded asserts (which may fail from imprecise blits into the ↵Gravatar reed@google.com2011-05-09
| | | | | | | | | | bitmap, but do not affect the blits at head) git-svn-id: http://skia.googlecode.com/svn/trunk@1286 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add a ToUnicode mapping for fonts.Gravatar vandebo@chromium.org2011-05-09
| | | | | | | | | | This makes text in PDFs searchable and copy&paste-able. Code from arthurhsu@chromium.org. Original review: http://codereview.appspot.com/4428082/ Review URL: http://codereview.appspot.com/4525042 git-svn-id: http://skia.googlecode.com/svn/trunk@1280 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] (regression) Update font if size changes.Gravatar vandebo@chromium.org2011-05-09
| | | | | | Review URL: http://codereview.appspot.com/4532044 git-svn-id: http://skia.googlecode.com/svn/trunk@1279 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix bug in graphic state comparison.Gravatar vandebo@chromium.org2011-05-09
| | | | | | | | SkPDFGraphicState::GSCanonicalEntry::operator== was out of sync with SkPDFGraphicState::populateDict leading to graphic state objects with the same value. Review URL: http://codereview.appspot.com/4516043 git-svn-id: http://skia.googlecode.com/svn/trunk@1278 2bbb7eff-a529-9590-31e7-b0007b416f81
* Share code with SkRectGravatar reed@google.com2011-05-09
| | | | | | | | http://codereview.appspot.com/4523046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1277 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add support for Clear, Src, Dst, DstOver xfermodes.Gravatar vandebo@chromium.org2011-05-09
| | | | | | | | This uses the refactoring in http://codereview.appspot.com/4459041/ to add support for additional xfer modes. Calling setupContentEntry may affect previous content entries (removing, reordering, or modifying their clip) and indicates to the caller if it should draw the new item or not. Review URL: http://codereview.appspot.com/4464043 git-svn-id: http://skia.googlecode.com/svn/trunk@1271 2bbb7eff-a529-9590-31e7-b0007b416f81