summaryrefslogtreecommitdiffstats
path: root/skia
Commit message (Collapse)AuthorAgeFilesLines
* Linux: Move GdkSkia to skia/extagl@chromium.org2009-01-073-1/+591
| | | | | | | | | | | GdkSkia doesn't belong in our WebKit port. Thus we move it into Skia. A separate change will remove the files from the port repository but, since the build files are all into the main repo, this is a complete change in itself. Review URL: http://codereview.chromium.org/16561 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7635 0039d316-1c4b-4281-b951-d872f2087c98
* Make Mac bitmaps use BGRA to match the MD5 hash Apple uses in its WebKit ↵pinkerton@google.com2009-01-061-2/+5
| | | | | | | | expectations. Use a png for "missingImage" because it has the color range to match the TIFF used by Apple in its expectations. Review URL: http://codereview.chromium.org/17211 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7619 0039d316-1c4b-4281-b951-d872f2087c98
* Mass convert ChromeStaticLibrary -> ChromeLibrary, including pulling the ↵evanm@google.com2008-12-261-1/+1
| | | | | | | | | | | updated ICU dep that uses it as well. Add a SHARED scons command-line flag to build shared libraries. Review URL: http://codereview.chromium.org/16477 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7479 0039d316-1c4b-4281-b951-d872f2087c98
* Windows doesn't like zero-length arrays.evanm@google.com2008-12-261-6/+12
| | | | | | | Review URL: http://codereview.chromium.org/16267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7476 0039d316-1c4b-4281-b951-d872f2087c98
* Make Skia build as a dynamic library by fixing up the imports.evanm@google.com2008-12-263-2/+10
| | | | | | | | | | The define in the SCons file / vsprops was unused in the Skia source; I imagine usage of it was removed in the recent Skia merge. Review URL: http://codereview.chromium.org/16263 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7471 0039d316-1c4b-4281-b951-d872f2087c98
* Initial subset of .vcproj file generation, covering generation of:sgk@google.com2008-12-241-132/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | base\build\base.vcproj base\build\base_gfx.vcproj base\build\base_unittests.vcproj base\build\debug_message.vcproj skia\skia.vcproj testing\gtest.vcproj third_party\icu38\icu.vcproj third_party\icu38\icudt.vcproj third_party\libpng\libpng.vcproj third_party\zlib\zlib.vcproj Supporting work in *.scons files: * Adds .h files to the input_files lists in the various *.scons files. * Add arguments to ChromeMSVSProject() to actually generate the .vcproj files. * Add MSVS.AddConfig() calls to the *.scons files to preserve the .vsprops inclusion in the generated .vcproj files. (These will go away eventually as we migrate away from .vsprops in favor of using the settings from the SCons configuration.) * Add MSVS.AddConfig() calls to preserve the .vsprops inclusion. * Move the special generation of dmg_fp/*.cc files ahead of the input file list so we can list the generated object files. * Change the 'solutions' Alias to 'msvs' so we don't mislead about what will actually be generated. Updates to the new _Node_MSVS.py module with latest from upstream prototype development: * Support configurability of: * buildtarget (used to generat project name) * RootNamespace * relative_path_prefix (to prepend './') * tools (to avoid repetition in the project configs) * Track the Visual Studio hierarchy in SCons Nodes, not DOM, so we can delay evaluation until after the complete configuration has been specified. * Add a FileList base class for the things that need, with a subclass hierarchy for the different concrete things in our tree, and a FileListWalk() function for traversing hierarchies. * Centralize turning strings into Nodes in the args2nodes() method and have AddFiles() just use it. Updates to chromium_builders.py to support all this * Add knowledge about stripping out noncompilable files (.h files) from input_files lists. * Return a Null() class if we're not generating MSVS files so we don't have to hide the other calls in if:-blocks. * Add custom ChromeFileList subclass of MSVS.FileList as a container for the file list manipulation we need to do. * Move the Chrome*() function definitions out to global space, and just use the generate() function for adding them to the passed-in environment as class methods. * Make a change to SCons (in Node/FS.py) to handle polymorphism in the new MSVS Node hierarchy. Review URL: http://codereview.chromium.org/16447 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7467 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 7318.brettw@google.com2008-12-1910-135/+165
| | | | | | Review URL: http://codereview.chromium.org/14903 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7320 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 7317.brettw@google.com2008-12-1910-164/+135
| | | | | | Review URL: http://codereview.chromium.org/15089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7318 0039d316-1c4b-4281-b951-d872f2087c98
* Remove base dependencies in the Windows-specific skia/ext code.brettw@google.com2008-12-1910-135/+164
| | | | | | Review URL: http://codereview.chromium.org/14900 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7317 0039d316-1c4b-4281-b951-d872f2087c98
* Initial generation of native Visual Studio solution filessgk@google.com2008-12-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (project files still to come). To wit: * Solution file configuration is in *_sln.scons files (base\base_sln.scons, chrome\chrome_sln.scons). * Individual Project file configuration is in the the .scons file for the relevant target (base\base_unittests.scons, third_party\libxml\libxml.scons, etc.)--that is, where their file lists will live. * MSVSProject() calls are currently placeholders that establish the existence of Project Nodes (and Project dependencies) but don't yet have actual Project configuration information (file lists, .vsprops, etc.). * Configuraiton is very manual. In particular, the entries in the .sln file will be written out in exactly the order specified in the configuration(s). The current ordering is taken from our existing .sln files, so we can generate virtually the same configurations on output. * Generated solution files are nearly byte-for-byte identical with our existing .sln files, modulo: * net\dump_cache has a WebsiteProperties sections (making that configurable per project isn't important right now); * sandbox\sandbox.sln was missing a dependency of base.vcproj on on debug_message.vcproj (present in other .sln files) * webkit\webkit.sln was missing dependencies of WebCore.vcproj on libxml_config.vcproj and libxslt_config.vcproj (present in chrome.sln); * add a handful of other miscellaneous missing dependencies on various .vcproj definitions in chrome.sln (present in other .sln files). * remove stats_viewer.csproj from chrome.sln (sorry, mbelshe), which was complicating the solution configuration with unnecessary (for us) "Mixed Platform" types; * All MSVSFolder(), MSVSProject() and MSVSSolution() calls have hard-wired guid= values taken from our existing configuration, so we can: 1) verify generation of working configs; 2) minimize diffs when checking in generated .sln files. We can remove these in the future in favor of extracting them from existing .sln files if we wish. * Add ChromeMSVSFolder(), ChromeMSVSProject() and ChromeMSVSSolution() wrappers to chromium_builders.py, that gate the underlying call to the env.MSVS*() builders based on whether env.Bit('msvs') is set (i.e., we're in --mode=msvs). * Remove platform-specific gating of to-be-ported .scons files that we now need to load on any platform to generate coheren MSVS files. Move the env.Bit('windows') tests for actually building their executables into the individual .scons files. Review URL: http://codereview.chromium.org/14472 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7297 0039d316-1c4b-4281-b951-d872f2087c98
* Convert from using env['PLATFORM'] directly to using the more flexiblesgk@google.com2008-12-181-6/+6
| | | | | | | | | | | | | | | | | | and better-thought-out Hammer env.Bits() idioms: * env['PLATFORM'] == 'win32' => env.Bit('windows') * env['PLATFORM'] == 'posix' => env.Bit('linux') * env['PLATFORM'] == 'darwin' => env.Bit('mac') New idioms: * env.Bit('posix') => really does mean "any POSIX platform" * env.AnyBits('mac', 'linux') => specifically mac or linux, excluding other POSIX platforms Where we were using compound conditionals (e.g., "env['PLATFORM'] in ('posix', 'darwin')") I tried to take my best shot at translating the intent (i.e., "env.Bits('posix')" for something POSIX, "not env.Bits('mac')" for something not yet ported to Mac, etc.) Review URL: http://codereview.chromium.org/15051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7270 0039d316-1c4b-4281-b951-d872f2087c98
* Move the "platform" wrappers in skia/ext to the skia namespace.brettw@google.com2008-12-1728-110/+104
| | | | | | Review URL: http://codereview.chromium.org/14110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7182 0039d316-1c4b-4281-b951-d872f2087c98
* Switch back svn:eol-style=native for .sln, .vcproj and .vsprops files.maruel@chromium.org2008-12-161-1463/+1463
| | | | | | | Patch fails otherwise on non-Windows platforms. Review URL: http://codereview.chromium.org/14478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7093 0039d316-1c4b-4281-b951-d872f2087c98
* Remove few more errors in mac scons build.phajdan.jr@chromium.org2008-12-151-2/+1
| | | | | | | BUG=5525 Review URL: http://codereview.chromium.org/14113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6981 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: GCC 4.3 warning fixesagl@chromium.org2008-12-131-4/+4
| | | | | | | | | The lastest Skia drop included some code which triggers warnings with GCC 4.3 Review URL: http://codereview.chromium.org/14097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6958 0039d316-1c4b-4281-b951-d872f2087c98
* Move skia_utils into the skia namespace.brettw@google.com2008-12-126-8/+14
| | | | | | Review URL: http://codereview.chromium.org/14079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6948 0039d316-1c4b-4281-b951-d872f2087c98
* New drop of Skia. This is up to CL 121320.brettw@google.com2008-12-12549-3745/+8653
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6925 0039d316-1c4b-4281-b951-d872f2087c98
* Move Image operations and convolver to the skia namespace and clean up a few ↵brettw@google.com2008-12-126-85/+89
| | | | | | | | (but not all) base types. Review URL: http://codereview.chromium.org/13726 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6921 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 6709,6708,6706.brettw@google.com2008-12-106-123/+135
| | | | | | Review URL: http://codereview.chromium.org/13345 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6710 0039d316-1c4b-4281-b951-d872f2087c98
* Use crappy apple define instead of OS_ defines since those don't exist for Skia.brettw@google.com2008-12-101-1/+1
| | | | | | Review URL: http://codereview.chromium.org/13709 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6709 0039d316-1c4b-4281-b951-d872f2087c98
* Add an additional include to get skASSERT.brettw@google.com2008-12-101-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6708 0039d316-1c4b-4281-b951-d872f2087c98
* Remove base dependency from image_operations and associated unittests. I ↵brettw@google.com2008-12-106-134/+121
| | | | | | | | | also renamed the namespace from "gfx" to "skia". This also adds back the image_operations_unittest to a project (this had gotten lost in my move). Review URL: http://codereview.chromium.org/13143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6706 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: FreeType doesn't scale OS/2 valuesagl@chromium.org2008-12-061-1/+2
| | | | | | | | | sxHeight values are in font units, not 26.6 fixed point as I assumed. Review URL: http://codereview.chromium.org/13195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6470 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: use case-insensitive matching for font names.agl@chromium.org2008-12-051-1/+1
| | | | | | | | | CSS likes to give fonts all lowercase names (verdana, arial etc). Review URL: http://codereview.chromium.org/13139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6409 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: use xheight from OS2 table if given.agl@chromium.org2008-12-041-7/+11
| | | | | | | | | | | The x-height isn't really any longer the actual height of an 'x'. Some faces provide an explicit x-height value in the OS/2 table which we should use if given. Review URL: http://codereview.chromium.org/12953 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6379 0039d316-1c4b-4281-b951-d872f2087c98
* Changed svn:eol-style of all .sln and .vcproj files to CRLFscherkus@chromium.org2008-12-041-1419/+1419
| | | | | | Review URL: http://codereview.chromium.org/13133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6372 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: calculate fractional xheightagl@chromium.org2008-12-042-0/+14
| | | | | | | | | | | | | | | | | | | We need to push the calculation of the x-height into Skia. For one of the layout tests, it assumes that 2.5ex of Ahem is exactly 32px. Previously we calculated the x-height of Ahem to be 13px, so 2.5*13 was 33px. Now we use the 26.6 fixed point number from freetype's hinter and turn that directly into a floating point value (x-height is the only WebKit metric which is a floating point value). This lets us pass LayoutTests/css2.1/t1507-c526-font-sz-02-b-a.html (although the Windows baseline is wrong) Review URL: http://codereview.chromium.org/13112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6344 0039d316-1c4b-4281-b951-d872f2087c98
* 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