aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
...
* Add EGL context for Windows.Gravatar bungeman@google.com2011-06-02
| | | | | | | http://codereview.appspot.com/4517133/ git-svn-id: http://skia.googlecode.com/svn/trunk@1481 2bbb7eff-a529-9590-31e7-b0007b416f81
* committing http://codereview.appspot.com/4515175/Gravatar caryclark@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1473 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove dead/abandoned fileGravatar reed@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1471 2bbb7eff-a529-9590-31e7-b0007b416f81
* initialize fCurrYGravatar reed@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1468 2bbb7eff-a529-9590-31e7-b0007b416f81
* speed-up SkMatrix::preScale by 3x, by special-casing it instead of just callingGravatar reed@google.com2011-06-01
| | | | | | | | concat. Inspired by the profile of the fishtank site git-svn-id: http://skia.googlecode.com/svn/trunk@1462 2bbb7eff-a529-9590-31e7-b0007b416f81
* remember previous x-offset when we re-enter the runs array. speeds up pathsGravatar reed@google.com2011-05-31
| | | | | | | | with lots of x-transitions in a single scanline git-svn-id: http://skia.googlecode.com/svn/trunk@1456 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add pages accessor to SkPDFDocument.Gravatar vandebo@chromium.org2011-05-31
| | | | | | | | Also add SK_API to SkPDFPage::getFontResources. Review URL: http://codereview.appspot.com/4561050 git-svn-id: http://skia.googlecode.com/svn/trunk@1453 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove dead codeGravatar reed@google.com2011-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1447 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add plumbing and accessors so that Chrome can record the font types ↵Gravatar vandebo@chromium.org2011-05-29
| | | | | | | | | | | used in a PDF. - Add a font type accessor to SkPDFFont. - Plumb font resource retrivial up to SkPDFPage. Review URL: http://codereview.appspot.com/4547069 git-svn-id: http://skia.googlecode.com/svn/trunk@1444 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removal of obsolete interface, SkMatrixClipObserver.Gravatar twiz@google.com2011-05-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1435 2bbb7eff-a529-9590-31e7-b0007b416f81
* draw rotated rects as paths if we're antialiasing, until we extend our rect-aaGravatar reed@google.com2011-05-26
| | | | | | | | code to handle that case. git-svn-id: http://skia.googlecode.com/svn/trunk@1430 2bbb7eff-a529-9590-31e7-b0007b416f81
* checkpoint for better 8bit->5bit reduction (disable for now)Gravatar reed@google.com2011-05-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1429 2bbb7eff-a529-9590-31e7-b0007b416f81
* balance the call to matrix::flatten from r1414. Formerly both of these wereGravatar reed@google.com2011-05-26
| | | | | | | | just memcpy. This fixes a regression when using matrices in pictures. git-svn-id: http://skia.googlecode.com/svn/trunk@1428 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Improve the SkClipStack skipping prefix code.Gravatar vandebo@chromium.org2011-05-25
| | | | | | | | Because of intersecting done in SkClipStack, we may have to do more work in the last entry of the prefix. Review URL: http://codereview.appspot.com/4530066 git-svn-id: http://skia.googlecode.com/svn/trunk@1418 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Reuse the invert function object for xform object masks.Gravatar vandebo@chromium.org2011-05-25
| | | | | | Review URL: http://codereview.appspot.com/4557046 git-svn-id: http://skia.googlecode.com/svn/trunk@1417 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Rename ContentEntryAccessor to ScopedContentEntry.Gravatar vandebo@chromium.org2011-05-24
| | | | | | Review URL: http://codereview.appspot.com/4515134 git-svn-id: http://skia.googlecode.com/svn/trunk@1416 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix regression - correct for fInitialTrnasform in form xobjects.Gravatar vandebo@chromium.org2011-05-24
| | | | | | | | Chrome bug http://crbug.com/83658 Review URL: http://codereview.appspot.com/4550072 git-svn-id: http://skia.googlecode.com/svn/trunk@1415 2bbb7eff-a529-9590-31e7-b0007b416f81
* Grab-bag of memory fixes. SkFlatMatrix::Flatten had the same issue asGravatar senorblanco@chromium.org2011-05-24
| | | | | | | | | | | Sk2DPathEffect: it was encoding a partially-unintialized matrix type mask. The others are simply uninitialized vars in the sample code. Review URL: http://codereview.appspot.com/4539072/ git-svn-id: http://skia.googlecode.com/svn/trunk@1414 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup: Use member function isContentEmpty().Gravatar ctguil@chromium.org2011-05-24
| | | | | | Review URL: http://codereview.appspot.com/4556058 git-svn-id: http://skia.googlecode.com/svn/trunk@1412 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Don't draw empty layers.Gravatar vandebo@chromium.org2011-05-24
| | | | | | Review URL: http://codereview.appspot.com/4527072 git-svn-id: http://skia.googlecode.com/svn/trunk@1410 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add helper class to manage ContentEntry set up and completion.Gravatar vandebo@chromium.org2011-05-24
| | | | | | | | This stack object helper class calls finishContentEntry when it goes out of scope, maintains the current content entry, and manages the dst form xobject when it is needed. This can be made cleaner by moving the guts of SkPDFDevice into a core object, which can expose setUp/finishContentEntry as public, but that is left as a todo. Review URL: http://codereview.appspot.com/4515126 git-svn-id: http://skia.googlecode.com/svn/trunk@1409 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add clip support and some optimizations for "complex" xfer modes.Gravatar vandebo@chromium.org2011-05-24
| | | | | | | | | | | | | | For Clear, Src, Dst/Src-In/Out, we have to consider the current clip, and potentially draw Dst, clipped to the inverse of the current clip before doing the operation of interest. For clear or src, if we haven't drawn anything, or the clip is empty, there's nothing to be done. For Src/Dst-In/Out, if either is empty, the result is empty. Review URL: http://codereview.appspot.com/4538082 git-svn-id: http://skia.googlecode.com/svn/trunk@1407 2bbb7eff-a529-9590-31e7-b0007b416f81
* return the bytes read, not the total providedGravatar reed@google.com2011-05-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1404 2bbb7eff-a529-9590-31e7-b0007b416f81
* add copyright noticesGravatar reed@google.com2011-05-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1403 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix a new clang warning:Gravatar thakis@chromium.org2011-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | third_party/skia/src/ports/SkFontHost_FreeType.cpp:957:7:error: switch case is in protected scope default: ^ third_party/skia/src/ports/SkFontHost_FreeType.cpp:918:17: note: jump bypasses variable initialization FT_BBox bbox; ^ third_party/skia/src/ports/SkFontHost_FreeType.cpp:946:7:error: switch case is in protected scope case FT_GLYPH_FORMAT_BITMAP: ^ third_party/skia/src/ports/SkFontHost_FreeType.cpp:918:17: note: jump bypasses variable initialization FT_BBox bbox; ^ 2 errors generated. This is arguably a false positive, but since |bbox| can only safely be used in the first case branch, it's a good idea to scope it to there anyway. This is the only instance this warning occurs in all of chrome. Review URL: http://codereview.appspot.com/4532081/ git-svn-id: http://skia.googlecode.com/svn/trunk@1402 2bbb7eff-a529-9590-31e7-b0007b416f81
* call notify after we write the kDone verbGravatar reed@google.com2011-05-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1401 2bbb7eff-a529-9590-31e7-b0007b416f81
* 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