summaryrefslogtreecommitdiffstats
path: root/skia/ext
Commit message (Collapse)AuthorAgeFilesLines
* Optimize |SkTypeface| creation on Linux.asvitkine@chromium.org2011-12-222-16/+67
| | | | | | | | | | | | | | | | | | Add a map to cache the results of FontConfig lookup to avoid making excessive FontConfig queries. This improves the speed of |gfx::Font| creation under Linux, which is backed by a |SkTypeface|, as well as |RenderTextLinux| drawing code. BUG=107394 TEST=In Linux Aura, launch about:tracing and notice that "RenderTextLinux::DrawVisualText SetFont" times have gone way down. Review URL: http://codereview.chromium.org/9028001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115619 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor some parts of |FontConfigDirect::Match()| into helper functions.asvitkine@chromium.org2011-12-221-107/+114
| | | | | | | | | | | | | | | No functional changes. I'm looking to make some changes to this class to optimize SkTypeface creation on Linux. This refactoring makes the code a little bit less unwieldy to work with. BUG=none TEST=none Review URL: http://codereview.chromium.org/9021035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115454 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new ctor to CanvasSkia that takes a const SkBitmap&.tfarina@chromium.org2011-12-211-3/+3
| | | | | | | | | | BUG=100898 R=pkasting@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/9006001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115384 0039d316-1c4b-4281-b951-d872f2087c98
* Change SkFileDescriptorStream to handle failure to open the file descriptorreed@google.com2011-12-061-11/+8
| | | | | | | | (by initializing its length_ to 0), and to return the number of bytes skipped if buffer==null, rather than returning the offset. Review URL: http://codereview.chromium.org/8800017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113197 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to skia/.avi@chromium.org2011-11-232-11/+20
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8681014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111413 0039d316-1c4b-4281-b951-d872f2087c98
* Implement skia sandbox callbackarthurhsu@chromium.org2011-11-232-0/+41
| | | | | | | | | | BUG=103032 TEST=none Review URL: http://codereview.chromium.org/8566026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111400 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to skia/.avi@chromium.org2011-11-211-3/+4
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8595024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110915 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to skia/.avi@chromium.org2011-11-161-1/+1
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8539046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110318 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109461 - twiz@chromium.org2011-11-142-58/+4
| | | | | | | | | | | | | | | | | | | Re-introduction of release mode checks to determine the cause of CreateDIBSection failures. The crash is happening outside of the expected conditions in which CreateDIBSection would fail (large bitmap size, GDI and virtual memory pressure). To track the cause, this CL attempts to capture the last system error on bitmap allocation failure. See previous checks here: http://codereview.chromium.org/8341090 BUG=101934, 104063 TEST=NONE Review URL: http://codereview.chromium.org/8509030 TBR=twiz@chromium.org Review URL: http://codereview.chromium.org/8565027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109978 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations in printing, sandbox, and skia.thestig@chromium.org2011-11-142-9/+4
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8538001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109961 0039d316-1c4b-4281-b951-d872f2087c98
* Re-introduction of release mode checks to determine the cause of ↵twiz@chromium.org2011-11-102-4/+58
| | | | | | | | | | | | | | | CreateDIBSection failures. The crash is happening outside of the expected conditions in which CreateDIBSection would fail (large bitmap size, GDI and virtual memory pressure). To track the cause, this CL attempts to capture the last system error on bitmap allocation failure. See previous checks here: http://codereview.chromium.org/8341090 BUG=101934 TEST=NONE Review URL: http://codereview.chromium.org/8509030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109461 0039d316-1c4b-4281-b951-d872f2087c98
* roll skia to 2633reed@google.com2011-11-091-8/+0
| | | | | | Review URL: http://codereview.chromium.org/8499024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109227 0039d316-1c4b-4281-b951-d872f2087c98
* OpenBSD patches for skia, split from CR #8275005robert.nagy@gmail.com2011-11-073-2/+6
| | | | | | | | | | | | | | | | | bitmap_platform_device_linux.cc: - according to pkg-config cairo include dir is /usr/local/include/cairo (even on linux), so we have to include cairo.h and not cairo/cairo.h - Define DrawToNativeContext on OpenBSD too BUG= TEST= Review URL: http://codereview.chromium.org/8339020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108930 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 108023 - Debug checks to make it easier to find reason for ↵groby@chromium.org2011-11-032-35/+4
| | | | | | | | | | | | | | | CanvasT<>::initialize crash BUG=101934,102740 TEST=none Review URL: http://codereview.chromium.org/8341090 TBR=groby@chromium.org, vandebo@chromium.org Review URL: http://codereview.chromium.org/8437105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108557 0039d316-1c4b-4281-b951-d872f2087c98
* Add traces in compositor, views and skiapiman@chromium.org2011-11-013-0/+17
| | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8440008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108174 0039d316-1c4b-4281-b951-d872f2087c98
* Debug checks to make it easier to find reason for CanvasT<>::initialize crashgroby@chromium.org2011-10-312-4/+35
| | | | | | | | | | BUG=101934 TEST=none Review URL: http://codereview.chromium.org/8341090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108023 0039d316-1c4b-4281-b951-d872f2087c98
* Check for null contextcaryclark@google.com2011-10-061-2/+4
| | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=69149 describes a situation where running webkit tests sporadically crashes in the Debug build. The context returned by CGContextForData is NULL, so an early return prevents the BitmapPlatformDevice constructor from firing an assert in this case. The callers already anticipate a NULL result, and will propogate the error correctly. BUG=WK69149 TEST=run webkit tests in a Debug build repeatedly Review URL: http://codereview.chromium.org/8118014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104374 0039d316-1c4b-4281-b951-d872f2087c98
* Allow CanvasSkia to bind to an existing SkCanvas.piman@chromium.org2011-10-056-25/+58
| | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8122013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104146 0039d316-1c4b-4281-b951-d872f2087c98
* 1 Add ScopedGetDC and ScopedSelectObjectyosin@chromium.org2011-10-041-5/+6
| | | | | | | | | | | | | | | | | | | | | | * To mark@, sky@ ** base/win/scoped_hdc.h ** base/win/scoped_select_object.h 2 Fix leak in printing * To kmadhusu@ ** Play object creation command in metafile once ** Fix trivial leaks 3 Fix leak in SKIA * To twiz@ ** Fix font leak BUG=98523 TEST=Manual on Win7 Review URL: http://codereview.chromium.org/8084018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103852 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 103021: Printing preview of a PDF on Mac with Skia only previews the ↵kmadhusu@chromium.org2011-09-282-0/+57
| | | | | | | | | | | | | | | | | last page of the PDF BUG=93145 TEST=Please refer to bug report. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103021 Original review URL: codereview.chromium.org/7719014 Please refer to trybot results in the last patch of original review url. Review URL: http://codereview.chromium.org/8059034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103082 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 103021 - PrintPreview: Printing preview of a PDF on Mac with Skia ↵kmadhusu@chromium.org2011-09-272-57/+0
| | | | | | | | | | | | | | only previews the last page of the PDF BUG=93145 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7719014 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/8052020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103026 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Printing preview of a PDF on Mac with Skia only previews the ↵kmadhusu@chromium.org2011-09-272-0/+57
| | | | | | | | | | | last page of the PDF BUG=93145 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7719014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103021 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed build error for skia/ext/canvas_paint_x.hsaintlou@chromium.org2011-09-271-1/+1
| | | | | | | | | | | | There is no conversion from Double in Skia. BUG=97131 TEST=none Review URL: http://codereview.chromium.org/8038033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102850 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed some chrome aura build problemsdavemoore@chromium.org2011-09-233-1/+114
| | | | | | | | | | | | - Removed default_plugin from aura build - Added new canvas_paint_x and renamed canvas_paint_linux to canvas_paint_gtk BUG=97131 TEST=none Review URL: http://codereview.chromium.org/8015012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102555 0039d316-1c4b-4281-b951-d872f2087c98
* Build skia for Android.zhenghao@google.com2011-09-1710-18/+138
| | | | | | | | | | | | Add some files and fix some code to make skia build on Android. BUG=none TEST=none Review URL: http://codereview.chromium.org/7920020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101644 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dead cairo code.abodenha@chromium.org2011-09-082-826/+0
| | | | | | | | | | BUG= TEST=No visible changes. Review URL: http://codereview.chromium.org/7847002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100281 0039d316-1c4b-4281-b951-d872f2087c98
* implement MakeOpaque at the canvas level, respecting matrix and clipreed@google.com2011-08-316-72/+16
| | | | | | Review URL: http://codereview.chromium.org/7799023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99009 0039d316-1c4b-4281-b951-d872f2087c98
* CL removing inheritance of SkDevice from PlatformDevice. twiz@google.com2011-08-2820-519/+233
| | | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98230 Review URL: http://codereview.chromium.org/7633040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98585 0039d316-1c4b-4281-b951-d872f2087c98
* Wayland support for views. views_desktop on Wayland.backer@chromium.org2011-08-262-0/+113
| | | | | | | | | | | | | | | | | | | | This CL depends on: * http://codereview.chromium.org/7457023 * http://codereview.chromium.org/7467007 * http://codereview.chromium.org/7473010 Wayland requires newer libraries than Ubuntu currently provides. I've created a list of required dependencies: https://sites.google.com/a/google.com/chrome_on_wayland/home/wayland-build-dependencies BUG= TEST=Built Chrome to verify that Wayland dependencies and changes don't interfere with the usual build. Review URL: http://codereview.chromium.org/7464027 Patch from Daniel Nicoara <dnicoara@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98453 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98230 - CL removing inheritance of SkDevice from PlatformDevice. twiz@chromium.org2011-08-2520-233/+519
| | | | | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Review URL: http://codereview.chromium.org/7633040 TBR=twiz@chromium.org,jbates@chromium.org, dpolukhin@chromium.org, sanjeevr@chromium.org Review URL: http://codereview.chromium.org/7754001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98233 0039d316-1c4b-4281-b951-d872f2087c98
* CL removing inheritance of SkDevice from PlatformDevice. twiz@chromium.org2011-08-2520-519/+233
| | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Review URL: http://codereview.chromium.org/7633040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98230 0039d316-1c4b-4281-b951-d872f2087c98
* check for allocPixels failures during resizereed@google.com2011-08-241-0/+11
| | | | | | Review URL: http://codereview.chromium.org/7685056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98032 0039d316-1c4b-4281-b951-d872f2087c98
* Adding traces around skia image resizes so we know when they happen.jbates@chromium.org2011-08-231-0/+7
| | | | | | Review URL: http://codereview.chromium.org/7711021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97798 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash when allocation of very large HTML canvas fails.junov@chromium.org2011-08-192-0/+16
| | | | | | | | | | | | | | This change introduces skia::TryCreateBitmapCanvas, which is a non-crashing version of CreateBitmapCanvas. This patch alone does not fix that crash. A patch in WebKit will be necessary to make the ImageBuffer constructor in ImageBufferSkia.cpp call TryCreateBitmapCanvas. BUG=88038 TEST=http://www.atopon.org/maze/ Review URL: http://codereview.chromium.org/7686006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97474 0039d316-1c4b-4281-b951-d872f2087c98
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-172-1/+9
| | | | | | | | | | | | BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97219 Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97233 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for ↵aayushkumar@chromium.org2011-08-172-9/+1
| | | | | | | | | | | | | | | Skia BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7348010 TBR=aayushkumar@chromium.org Review URL: http://codereview.chromium.org/7670045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97226 0039d316-1c4b-4281-b951-d872f2087c98
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-172-1/+9
| | | | | | | | | | BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97219 0039d316-1c4b-4281-b951-d872f2087c98
* base: Fix the TODO in string_util.htfarina@chromium.org2011-08-171-1/+2
| | | | | | | | | | | | | This removes the include of stringprintf.h from string_util.h and fix the clients. BUG=None TEST=None R=evan@chromium.org Review URL: http://codereview.chromium.org/7633055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97067 0039d316-1c4b-4281-b951-d872f2087c98
* Fix 3D-CSS transform printing - proxy device origin.vandebo@chromium.org2011-08-161-0/+2
| | | | | | | | | | | Depends on Skia r2108,2116 BUG=82746 TEST=print http://www.webkit.org/blog-files/3d-transforms/poster-circle.html Review URL: http://codereview.chromium.org/7620016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96920 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to using SkRegions to calculate dirty areas.dmaclach@chromium.org2011-08-121-1/+1
| | | | | | | | | | | BUG=91619 TEST=Set up a remoting sesssion and make sure it works. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96327 Review URL: http://codereview.chromium.org/7491070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96632 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 96327 - Switch over to using SkRegions to calculate dirty areas.dmaclach@chromium.org2011-08-111-1/+1
| | | | | | | | | | | | BUG=91619 TEST=Set up a remoting sesssion and make sure it works. Review URL: http://codereview.chromium.org/7491070 TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/7622002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96328 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to using SkRegions to calculate dirty areas.dmaclach@chromium.org2011-08-111-1/+1
| | | | | | | | | BUG=91619 TEST=Set up a remoting sesssion and make sure it works. Review URL: http://codereview.chromium.org/7491070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96327 0039d316-1c4b-4281-b951-d872f2087c98
* Remove cast to VectorPlatformDeviceEMF.twiz@chromium.org2011-08-042-5/+11
| | | | | | | | | | | | Dependencies on PlatformDevice, and its children should be minimized. Also, added some OVERRIDE tags to touched files. BUG=None TEST=None Review URL: http://codereview.chromium.org/7465104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95427 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 94905 - Remove (now obsolete) IsNativeFontRendering apivandebo@chromium.org2011-08-028-1/+27
| | | | | | | | | | | Review URL: http://codereview.chromium.org/7482045 - The webkit side of this change was reverted. TBR=reed@google.com Review URL: http://codereview.chromium.org/7518042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95108 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Components build for skia, easy partthakis@chromium.org2011-08-022-11/+12
| | | | | | | | | | BUG=90078 TEST=none Review URL: http://codereview.chromium.org/7523046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95051 0039d316-1c4b-4281-b951-d872f2087c98
* Remove (now obsolete) IsNativeFontRendering apireed@google.com2011-08-018-27/+1
| | | | | | Review URL: http://codereview.chromium.org/7482045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94905 0039d316-1c4b-4281-b951-d872f2087c98
* Remove explicit keyword from multi-argument (w/o default values) constructorsdilmah@chromium.org2011-07-261-2/+1
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7477008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94115 0039d316-1c4b-4281-b951-d872f2087c98
* support text drawing instead of assertingreed@google.com2011-07-213-33/+168
| | | | | | | add bool return for LoadPathToDC() since it can fail and the caller needs to know. Review URL: http://codereview.chromium.org/7443006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93395 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using deprecated factory API for SkDevicereed@google.com2011-07-0519-176/+71
| | | | | | | Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91504 Review URL: http://codereview.chromium.org/7273013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91508 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 91504 - Stop using deprecated factory API for SkDevicereed@google.com2011-07-0519-70/+176
| | | | | | | | | Review URL: http://codereview.chromium.org/7273013 TBR=reed@google.com Review URL: http://codereview.chromium.org/7193040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91505 0039d316-1c4b-4281-b951-d872f2087c98