summaryrefslogtreecommitdiffstats
path: root/skia
Commit message (Collapse)AuthorAgeFilesLines
* Linux: support css font-family fallback.agl@chromium.org2008-12-032-1/+52
| | | | | | | | | | | | | | | Currently we'll always take the first element of a font-family list and run with it, using fontconfig's fallback. This adds a, slightly hacky, test to see if the fontconfig result is good enough and, if not, reports the failure back into WebKit so that other font-family elements can be tried. This fixes LayoutTests/css2.1/t040103-escapes-01-b.html Review URL: http://codereview.chromium.org/12914 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6320 0039d316-1c4b-4281-b951-d872f2087c98
* Add new cross-platform skia_utils file to the mac build. This isn't needed ↵brettw@google.com2008-12-031-3/+9
| | | | | | | | yet but it should be part of the build. Review URL: http://codereview.chromium.org/13105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6314 0039d316-1c4b-4281-b951-d872f2087c98
* Split the cross-platform part of skia_utils_win into skia_utils. Use this newbrettw@google.com2008-12-036-21/+61
| | | | | | | | | function when possible. Add a little documentation. This does not change the Mac build, I'll do that in a separate pass, and the function moved is never used on the mac). Review URL: http://codereview.chromium.org/12917 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6312 0039d316-1c4b-4281-b951-d872f2087c98
* Fix syntax.brettw@google.com2008-12-031-1/+1
| | | | | | Review URL: http://codereview.chromium.org/13104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6307 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/gfx/skia_util to skia/ext/skia_util_win.brettw@google.com2008-12-036-2/+142
| | | | | | | In a later pass, I will separate off the cross-platform part of this file into skia/ext/skia_util (only one function). Review URL: http://codereview.chromium.org/13101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6306 0039d316-1c4b-4281-b951-d872f2087c98
* Move skia_utils_mac from base/gfx to skia/ext.brettw@google.com2008-12-035-4/+144
| | | | | | Review URL: http://codereview.chromium.org/12911 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6302 0039d316-1c4b-4281-b951-d872f2087c98
* Fox Linux build, missing files in scons file.brettw@google.com2008-12-031-0/+2
| | | | | | Review URL: http://codereview.chromium.org/10422 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6294 0039d316-1c4b-4281-b951-d872f2087c98
* Move convolver and image_operations from base/gfx to skia/ext. This is justbrettw@google.com2008-12-038-0/+1196
| | | | | | | | like my previous change except does no namespace renaming and doesn't touch skia_utils. Review URL: http://codereview.chromium.org/13080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6290 0039d316-1c4b-4281-b951-d872f2087c98
* Revert my skia file moves because of layout test failures.brettw@google.com2008-12-0319-1537/+5
| | | | | | Review URL: http://codereview.chromium.org/12892 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6266 0039d316-1c4b-4281-b951-d872f2087c98
* Fix mac build bustage by syncing to new file locations.brettw@google.com2008-12-021-0/+12
| | | | | | Review URL: http://codereview.chromium.org/13068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6250 0039d316-1c4b-4281-b951-d872f2087c98
* Move convolver, image_operations, and skia_utils from base/gfx to skia/ext.brettw@google.com2008-12-0218-5/+1525
| | | | | | | | | | | This changes the namespace in those files from "gfx" to "skia". I split skia_utils into two parts, the Windows specific part is now in a separate file called skia_utils_win. There were several obsolete includes of these headers which I removed. I also removed img_resize_perftest which isn't used and has bitrotted. Review URL: http://codereview.chromium.org/12842 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6248 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Match the tmMaxCharWidth of Windows exactly.agl@chromium.org2008-11-262-1/+8
| | | | | | | | | | | The metric used is totally wrong, it's much larger than the largest advance of any glyph in the font. However, it's wrong in exactly the same way as Windows is. Review URL: http://codereview.chromium.org/12505 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6073 0039d316-1c4b-4281-b951-d872f2087c98
* Rename 'VDMX' to 'Tables' as I'm about to add HDMX parsing.agl@chromium.org2008-11-262-1/+1
| | | | | | | | | TBR=tony Review URL: http://codereview.chromium.org/11609 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6021 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: match average char width with Windowsagl@chromium.org2008-11-262-3/+11
| | | | | | | Review URL: http://codereview.chromium.org/12656 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6017 0039d316-1c4b-4281-b951-d872f2087c98
* Round font pixel sizes before VDMX lookup.agl@chromium.org2008-11-251-1/+1
| | | | | | | This helps us pass a few more layout tests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5997 0039d316-1c4b-4281-b951-d872f2087c98
* Remove base versions of the graphics headers, which previously just ↵brettw@google.com2008-11-226-10/+10
| | | | | | | | forwarded to the skia ones. Review URL: http://codereview.chromium.org/11588 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5894 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a header rename I missed on the last step.brettw@google.com2008-11-221-1/+1
| | | | | | Review URL: http://codereview.chromium.org/11585 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5876 0039d316-1c4b-4281-b951-d872f2087c98
* Fix header names.brettw@google.com2008-11-221-3/+3
| | | | | | Review URL: http://codereview.chromium.org/11375 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5875 0039d316-1c4b-4281-b951-d872f2087c98
* Move port/.../skia/public to skia/ext for Linux. Windows & Mac already moved ↵brettw@google.com2008-11-229-0/+394
| | | | | | | | there. This leaves forwarding headers in base/gfx, which I'll clean up in a future pass. Review URL: http://codereview.chromium.org/11808 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5873 0039d316-1c4b-4281-b951-d872f2087c98
* Parse VDMX tables for font metrics in Skia.agl@chromium.org2008-11-214-0/+256
| | | | | | | | | | | | Although you cannot see the blood, sweat and tears on this changelist, know that they are there. We still aren't quite perfect, but it's better. Review URL: http://codereview.chromium.org/11344 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5868 0039d316-1c4b-4281-b951-d872f2087c98
* Move skia extensions from the port to skia/ext for Windows only. Fixed thebrettw@google.com2008-11-2115-0/+3464
| | | | | | | | include guards of the moved files, but nothing else. Review URL: http://codereview.chromium.org/11568 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5861 0039d316-1c4b-4281-b951-d872f2087c98
* Move the platform files form port to skia for Mac only. Hopefully this won't ↵brettw@google.com2008-11-218-0/+835
| | | | | | | | affect other platforms. Review URL: http://codereview.chromium.org/11357 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5845 0039d316-1c4b-4281-b951-d872f2087c98
* More font metrics work for Linuxagl@chromium.org2008-11-202-3/+7
| | | | | | | | | | | * Add cursive and fantasy fonts (Comic Sans and Impact) * Pipe the height parameter from FreeType via skia * Another tweak to the metrics algorithms Review URL: http://codereview.chromium.org/11312 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5758 0039d316-1c4b-4281-b951-d872f2087c98
* Match Windows font metrics on Linux.agl@chromium.org2008-11-191-7/+2
| | | | | | | | | | | | | | | | | With this change, many layout tests involving text match render trees exactly. By turning off anti-aliasing we also almost match pixel exact. There are a couple of single-pixel differences between Win32 font rendering and FreeType however (see the bottom left pixel of an 'a' glyph for example), so we aren't quite pixel-for-pixel yet. Mike Reed expects to redo much of the font configuration code in Skia to cope with complex text and subpixel text so, for now, I'm not going to have anti-aliasing be a command line flag etc. Review URL: http://codereview.chromium.org/11284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5704 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the set of fonts used for test_shell.agl@chromium.org2008-11-184-5/+46
| | | | | | | | | | | | | With this change, the Google homepage renders pixel exact to Firefox on my Goobuntu box (which isn't using subpixel rendering). Note that, although the pixels are the same, the colours are very slightly different when it comes to anti-aliasing. I suspect this is because Skia is currently missing a gamma table. Review URL: http://codereview.chromium.org/11211 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5614 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 5595maruel@chromium.org2008-11-184-46/+5
| | | | | | Review URL: http://codereview.chromium.org/11230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5606 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the set of fonts used for test_shell.agl@chromium.org2008-11-184-5/+46
| | | | | | | | | | | | | With this change, the Google homepage renders pixel exact to Firefox on my Goobuntu box (which isn't using subpixel rendering). Note that, although the pixels are the same, the colours are very slightly different when it comes to anti-aliasing. I suspect this is because Skia is currently missing a gamma table. Review URL: http://codereview.chromium.org/11211 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5595 0039d316-1c4b-4281-b951-d872f2087c98
* Use Skia to render fontsagl@chromium.org2008-11-133-8/+333
| | | | | | | | | | | | I've split off the subpixel code from this code at the request of Mike Reed. This code has already been reviewed in 9614. TBR=evan Review URL: http://codereview.chromium.org/10414 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5401 0039d316-1c4b-4281-b951-d872f2087c98
* Switch from using GdkPixbuf to cairo for painting on Drawables.agl@chromium.org2008-11-061-0/+20
| | | | | | | | | | Make everything use ARGB order in registers (B.G.R.A order in memory on little-endian systems) Review URL: http://codereview.chromium.org/8227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4845 0039d316-1c4b-4281-b951-d872f2087c98
* Using $CHROME_SRC_DIR in place of hash/..bradnelson@google.com2008-10-221-1/+1
| | | | | | | | This will facilitate changing where the main sconstruct lives. Review URL: http://codereview.chromium.org/7847 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3725 0039d316-1c4b-4281-b951-d872f2087c98
* SCons renaming updates for base, net and googleurl:sgk@google.com2008-10-212-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename SConscript files to {module}.scons or {moduel}_lib.scons, depending on the primary target involved. * Separate targets into individual *.scons files, with one construction environment (named "env") per *.scons file. * Add using_{module}.scons files (like .vsprops) that will be used by other modules to add CPPDEFINES, CPPPATH, LIBS and LIBPATH values. * Update other modules' *.scons files to use the new using_{module}.scons files (using a temporary one-liner idiom until we have the ApplySConscript() method from the Hammer modules). * Use the idiom of removing to-be-ported files from the master list, so they can be simply deleted from the to-be-ported list as they get ported in the future, instead of having to shuffle entries between lists. * Use $OBJ_ROOT instead of hard-coded '#/$BUILD_TYPE/' for the $*_DIR variables. * Add a addRepository() call mapping build/ to $TARGET_ROOT/googleurl, so its $OBJ_ROOT value can look like the others'. * Formatting changes, primarily modifying indentation to conform to style guidelines. * Fix copyright headers in some third_party/* modules previously overlooked. * Add rudimentary __doc__ strings, setting up for a future ability to generate meaningful documentation. Review URL: http://codereview.chromium.org/7807 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3675 0039d316-1c4b-4281-b951-d872f2087c98
* SkStream.cpp was listed twice.agl@chromium.org2008-10-161-1/+0
| | | | | | | | | TBR=evan Review URL: http://codereview.chromium.org/7452 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3486 0039d316-1c4b-4281-b951-d872f2087c98
* Move -Wno-unused_variable (need for some len asserts in skia)sgk@google.com2008-09-241-1/+1
| | | | | | | so it comes after -Wall on the Mac compilation line. Review URL: http://codereview.chromium.org/4255 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2556 0039d316-1c4b-4281-b951-d872f2087c98
* Unignore most warnings on POSIX in build/SConscript.main.evanm@google.com2008-09-161-3/+2
| | | | | | | | | BUG=2053 Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2272 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable Skia precompiled prefix headermark@chromium.org2008-09-122-35/+6
| | | | | | Review URL: http://codereview.chromium.org/3005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2114 0039d316-1c4b-4281-b951-d872f2087c98
* Capture initial SCons build of {base,net,googleurl}_unittests on Mac:sgk@google.com2008-09-111-1/+1
| | | | | | | | | | | | | * Initial flags and options that mimick how XCode builds (e.g. XCode uses "gcc -x c++" to compile C++, but g++ to link it). * Load minimal set of SConscript files: base, googleurl, net, skia, testing, third_party. (breakpad and webkit to come.) * Correct .cc => .mm file names (multiple places). * Add base/{platform_thread,platform_test,worker_pool}_mac.mm. * Remove -Wall when we build Skia, like we do on Linux. Review URL: http://codereview.chromium.org/2435 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2097 0039d316-1c4b-4281-b951-d872f2087c98
* fix case for case-sensitive file systemspinkerton@google.com2008-09-101-1/+1
| | | | | | Review URL: http://codereview.chromium.org/1907 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2018 0039d316-1c4b-4281-b951-d872f2087c98
* Add suggested parentheses to fix build with GCC 4.3evanm@google.com2008-09-101-4/+4
| | | | | | | | | BUG=1876 Patch from James Vega <vega.james@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1965 0039d316-1c4b-4281-b951-d872f2087c98
* Update Copyright text in SCons config files.sgk@google.com2008-09-011-28/+4
| | | | | | TBR: beng git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1607 0039d316-1c4b-4281-b951-d872f2087c98
* Move subdirectory skipping from being in the DEPS file of the directory to ↵brettw@google.com2008-08-261-2/+0
| | | | | | | | skip and instead have in in the parent. This allows us to pull third-party sources or external repositories and not have to make them add a DEPS file for our deps checker. BUG=1342686 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1358 0039d316-1c4b-4281-b951-d872f2087c98
* Use a more compact license header in source files.license.bot2008-08-241-28/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up warnings in Skia (also sent upstream)mmentovai@google.com2008-08-2212-59/+18
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1209 0039d316-1c4b-4281-b951-d872f2087c98
* Don't enable -Werror in Skia, it can't handle it (-Wunused even after my ↵mmentovai@google.com2008-08-211-2/+11
| | | | | | fixes, which I've upstreamed but not committed here). Turn on SK_DEBUG in the debug build, and turn off the precompiled header, because it's not getting the same macros set as the rest of the build, and SK_DEBUG winds up a mismatch. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1198 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed bug #1251296jhaas@google.com2008-08-212-2/+5
| | | | | | | | | | | | This is a regression that is causing me to wonder why it ever worked in the first place. The underflow bug was getting tripped by a very small scaling matrix being improperly treated as a zero matrix, and also, the scaling code was getting bitten by a bug in Skia's edge comparison function which caused incorrect results to be returned when the difference between two values exceeded the maximum signed integer. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1180 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on -Wall -Werror, fixing a few files while I'm here and *temporarily* ↵evanm@google.com2008-08-201-1/+4
| | | | | | disabling some other warnings that take more effort to fix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1123 0039d316-1c4b-4281-b951-d872f2087c98
* Get base/gfx into shape, and start running/passing some base_gfx testsmmentovai@google.com2008-08-191-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1066 0039d316-1c4b-4281-b951-d872f2087c98
* Use xcconfigs in skia.xcodeprojmmentovai@google.com2008-08-192-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1053 0039d316-1c4b-4281-b951-d872f2087c98
* Use xcconfigs in skia.xcodeprojmmentovai@google.com2008-08-192-87/+99
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1052 0039d316-1c4b-4281-b951-d872f2087c98
* Use LF for newlines in all DEPS filesmmentovai@google.com2008-08-181-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1011 0039d316-1c4b-4281-b951-d872f2087c98
* Return 0 instead of NULL for a non-pointer type. Eliminates a warning in GCC.deanm@google.com2008-08-181-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@981 0039d316-1c4b-4281-b951-d872f2087c98