Commit Graph

879 Commits

Author SHA1 Message Date
Jonathan Watt
8a37187aab Bug 1022821, part 1 - Stop using a RefPtr for QuartzSupport::AttachIOSurface's aSurface argument. r=BenWa 2014-06-11 23:08:17 +01:00
Bas Schouten
34a17e2c5d Bug 992491: Add DrawTargetTiled for redirecting drawing to multiple tiles. r=mattwoodrow 2014-06-11 19:53:02 +00:00
Jeff Muizelaar
3425c20c5f Bug 1023691. Support Data surfaces in DrawTargetSkia::CopySurface. r=mwoodrow
--HG--
extra : rebase_source : 99278192158953367d79c9b87470b69546d12d09
2014-06-11 11:38:41 -04:00
Jeff Muizelaar
a1b0189796 Bug 1020629. DrawTargetSkia::CopySurface is broken with A8 surfaces. r=gw280
If we clear the surface before doing drawBitmap we end up with
the right results. This also adds some writePixels code
that we could try out later.

--HG--
rename : content/base/test/xcsp/chrome.ini => content/base/test/csp/chrome.ini
rename : content/base/test/xcsp/file_CSP.sjs => content/base/test/csp/file_CSP.sjs
rename : content/base/test/xcsp/file_CSP_evalscript_main.html => content/base/test/csp/file_CSP_evalscript_main.html
rename : content/base/test/xcsp/file_CSP_evalscript_main.html^headers^ => content/base/test/csp/file_CSP_evalscript_main.html^headers^
rename : content/base/test/xcsp/file_CSP_evalscript_main.js => content/base/test/csp/file_CSP_evalscript_main.js
rename : content/base/test/xcsp/file_CSP_evalscript_main_getCRMFRequest.html => content/base/test/csp/file_CSP_evalscript_main_getCRMFRequest.html
rename : content/base/test/xcsp/file_CSP_evalscript_main_getCRMFRequest.html^headers^ => content/base/test/csp/file_CSP_evalscript_main_getCRMFRequest.html^headers^
rename : content/base/test/xcsp/file_CSP_evalscript_main_getCRMFRequest.js => content/base/test/csp/file_CSP_evalscript_main_getCRMFRequest.js
rename : content/base/test/xcsp/file_CSP_evalscript_no_CSP_at_all.html => content/base/test/csp/file_CSP_evalscript_no_CSP_at_all.html
rename : content/base/test/xcsp/file_CSP_evalscript_no_CSP_at_all.html^headers^ => content/base/test/csp/file_CSP_evalscript_no_CSP_at_all.html^headers^
rename : content/base/test/xcsp/file_CSP_evalscript_no_CSP_at_all.js => content/base/test/csp/file_CSP_evalscript_no_CSP_at_all.js
rename : content/base/test/xcsp/file_CSP_frameancestors.sjs => content/base/test/csp/file_CSP_frameancestors.sjs
rename : content/base/test/xcsp/file_CSP_frameancestors_main.html => content/base/test/csp/file_CSP_frameancestors_main.html
rename : content/base/test/xcsp/file_CSP_frameancestors_main.js => content/base/test/csp/file_CSP_frameancestors_main.js
rename : content/base/test/xcsp/file_CSP_inlinescript_main.html => content/base/test/csp/file_CSP_inlinescript_main.html
rename : content/base/test/xcsp/file_CSP_inlinescript_main.html^headers^ => content/base/test/csp/file_CSP_inlinescript_main.html^headers^
rename : content/base/test/xcsp/file_CSP_inlinestyle_main.html => content/base/test/csp/file_CSP_inlinestyle_main.html
rename : content/base/test/xcsp/file_CSP_inlinestyle_main.html^headers^ => content/base/test/csp/file_CSP_inlinestyle_main.html^headers^
rename : content/base/test/xcsp/file_CSP_main.html => content/base/test/csp/file_CSP_main.html
rename : content/base/test/xcsp/file_CSP_main.html^headers^ => content/base/test/csp/file_CSP_main.html^headers^
rename : content/base/test/xcsp/file_CSP_main.js => content/base/test/csp/file_CSP_main.js
rename : content/base/test/xcsp/file_csp_bug768029.html => content/base/test/csp/file_csp_bug768029.html
rename : content/base/test/xcsp/file_csp_bug768029.sjs => content/base/test/csp/file_csp_bug768029.sjs
rename : content/base/test/xcsp/file_csp_bug773891.html => content/base/test/csp/file_csp_bug773891.html
rename : content/base/test/xcsp/file_csp_bug773891.sjs => content/base/test/csp/file_csp_bug773891.sjs
rename : content/base/test/xcsp/file_csp_redirects_main.html => content/base/test/csp/file_csp_redirects_main.html
rename : content/base/test/xcsp/file_csp_redirects_page.sjs => content/base/test/csp/file_csp_redirects_page.sjs
rename : content/base/test/xcsp/file_csp_redirects_resource.sjs => content/base/test/csp/file_csp_redirects_resource.sjs
rename : content/base/test/xcsp/file_csp_report.sjs => content/base/test/csp/file_csp_report.sjs
rename : content/base/test/xcsp/file_multi_policy_injection_bypass.html => content/base/test/csp/file_multi_policy_injection_bypass.html
rename : content/base/test/xcsp/file_multi_policy_injection_bypass.html^headers^ => content/base/test/csp/file_multi_policy_injection_bypass.html^headers^
rename : content/base/test/xcsp/file_multi_policy_injection_bypass_2.html => content/base/test/csp/file_multi_policy_injection_bypass_2.html
rename : content/base/test/xcsp/file_multi_policy_injection_bypass_2.html^headers^ => content/base/test/csp/file_multi_policy_injection_bypass_2.html^headers^
rename : content/base/test/xcsp/file_redirect_content.sjs => content/base/test/csp/file_redirect_content.sjs
rename : content/base/test/xcsp/file_redirect_report.sjs => content/base/test/csp/file_redirect_report.sjs
rename : content/base/test/xcsp/file_subframe_run_js_if_allowed.html => content/base/test/csp/file_subframe_run_js_if_allowed.html
rename : content/base/test/xcsp/file_subframe_run_js_if_allowed.html^headers^ => content/base/test/csp/file_subframe_run_js_if_allowed.html^headers^
rename : content/base/test/xcsp/mochitest.ini => content/base/test/csp/mochitest.ini
rename : content/base/test/xcsp/moz.build => content/base/test/csp/moz.build
rename : content/base/test/xcsp/test_301_redirect.html => content/base/test/csp/test_301_redirect.html
rename : content/base/test/xcsp/test_302_redirect.html => content/base/test/csp/test_302_redirect.html
rename : content/base/test/xcsp/test_303_redirect.html => content/base/test/csp/test_303_redirect.html
rename : content/base/test/xcsp/test_307_redirect.html => content/base/test/csp/test_307_redirect.html
rename : content/base/test/xcsp/test_CSP.html => content/base/test/csp/test_CSP.html
rename : content/base/test/xcsp/test_CSP_evalscript.html => content/base/test/csp/test_CSP_evalscript.html
rename : content/base/test/xcsp/test_CSP_evalscript_getCRMFRequest.html => content/base/test/csp/test_CSP_evalscript_getCRMFRequest.html
rename : content/base/test/xcsp/test_CSP_frameancestors.html => content/base/test/csp/test_CSP_frameancestors.html
rename : content/base/test/xcsp/test_CSP_inlinescript.html => content/base/test/csp/test_CSP_inlinescript.html
rename : content/base/test/xcsp/test_CSP_inlinestyle.html => content/base/test/csp/test_CSP_inlinestyle.html
rename : content/base/test/xcsp/test_csp_bug768029.html => content/base/test/csp/test_csp_bug768029.html
rename : content/base/test/xcsp/test_csp_bug773891.html => content/base/test/csp/test_csp_bug773891.html
rename : content/base/test/xcsp/test_csp_redirects.html => content/base/test/csp/test_csp_redirects.html
rename : content/base/test/xcsp/test_multi_policy_injection_bypass.html => content/base/test/csp/test_multi_policy_injection_bypass.html
rename : content/base/test/xcsp/test_subframe_run_js_if_allowed.html => content/base/test/csp/test_subframe_run_js_if_allowed.html
rename : js/src/parjs-benchmarks/obsolete/README.txt => js/src/parjs-benchmarks/README.txt
extra : rebase_source : 5dcfaa47c4e4305f2c2c4fdec46cf68e07fc9166
2014-06-10 23:42:32 -04:00
Botond Ballo
c16d71e95b Bug 1022381 - Enforce that strongly-typed geometric classes are used with a proper coordinate system tag type. r=kats 2014-06-10 12:43:52 -04:00
Markus Stange
6eb6d71957 Bug 1022624 - Rename numStops to stopCount. 2014-06-10 22:29:03 +02:00
Markus Stange
f3f989876c Bug 1022624 - Share code for constructing repeated linear and radial gradients. r=jrmuizel 2014-06-10 22:27:45 +02:00
Markus Stange
1dd3880ba2 Bug 1022624 - Implement support for radial gradients with ExtendMode::REFLECT in DrawTargetCG. r=jrmuizel 2014-06-10 22:26:58 +02:00
Markus Stange
37a45d0830 Bug 1022624 - Implement support for linear gradients with ExtendMode::REFLECT in DrawTargetCG. r=jrmuizel 2014-06-10 22:26:32 +02:00
Michael Wu
19d86c1d8f Bug 994081 - [3/3] Optimize surfaces on Cairo X11, r=Bas f=karlt 2014-05-22 20:06:16 -04:00
Jonathan Watt
88385d6c96 Bug 1019753, part 1 - Add a ClearDataSourceSurface() helper to DataSurfaceHelpers. r=Bas 2014-06-04 08:08:39 +01:00
Carsten "Tomcat" Book
3a98573a1a Backed out changeset c5953a778276 (bug 1019753) for crashes on a CLOSED TREE 2014-06-04 10:31:49 +02:00
Jonathan Watt
e10aeadf72 Bug 1019753, part 1 - Add a ClearDataSourceSurface() helper to DataSurfaceHelpers. r=Bas 2014-06-04 08:08:39 +01:00
Bas Schouten
4f4c6575e4 Bug 992731: Correctly treat a 'line' as a curve with a single inflection point stretching across the entire line. r=jwatt 2014-05-31 03:13:23 +02:00
Jonathan Watt
2d60d77b79 Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas 2014-05-28 14:30:56 +01:00
Matt Woodrow
f95e72ee78 Bug 1013767 - Add Matrix::PostTranslate. r=Bas 2014-05-28 13:21:32 +12:00
Bas Schouten
54da9bc1bd Bug 999943 - Followup: Add requested comment. r=jwatt 2014-05-27 17:35:35 +02:00
Bas Schouten
9dc87fdef6 Bug 999943: Correctly use the absolute value to determine min and max of the inflection range. r=jwatt 2014-05-27 17:03:34 +02:00
Jonathan Watt
1a6312f251 backout ac5e2c6f4ec0 (Bug 1015780) for bustage 2014-05-26 17:59:43 +01:00
Jonathan Watt
eb3932554a Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas
--HG--
extra : rebase_source : 6e87f0f91cd9cab03facb789f1fee700175ba102
2014-05-26 16:20:39 +01:00
Matt Woodrow
eefb1ceff6 Bug 1011865 - Create optimized source surfaces when skia-gl is enabled since we want to cache the GPU texture. r=gw280 2014-05-23 17:09:34 +12:00
Matt Woodrow
a116f0d15b Bug 1012386 - Release the CGImage we addref'd in DrawTargetCG::CopySurface. r=jrmuizel 2014-05-21 18:43:16 +12:00
Milan Sreckovic
30f2e2be5f Bug 1007856: Update 2D.h to doxygen friendly comment format. r=bas,trivial 2014-05-19 13:54:41 -04:00
Jeff Muizelaar
a281ba4f95 Bug 1011062. Add a fast path to DrawTargetSkia::MaskSurface(). r=gw280
This should speed things up significantly by avoid a bunch
of unneeded work.

--HG--
extra : rebase_source : 1194a825a5a9e5e86a94ba6c6c67f959051f1da3
2014-05-16 21:31:43 -04:00
Jeff Muizelaar
6f22334bbf Bug 1011011. DrawTargetSkia: Round alpha properly when creating Paint. r=mattwoodrow
This fixes some off by one errors in content reftests

--HG--
extra : rebase_source : 38a7aaed5600431f2c75005e1b71b8e572c3685d
2014-05-15 22:12:42 -04:00
Botond Ballo
229a7a632a Bug 961289 - Add support for writing a BaseRect to an output stream. r=Bas
--HG--
extra : source : 2f5a1727bfe5c95c99aced1221c816fefcb95b0c
2014-05-07 16:29:44 -04:00
Markus Stange
5a0c83aa45 Bug 1009020 - Use a fixed epsilon when nudging the transform to integers in ChooseScaleAndSetTransform. r=roc 2014-05-12 21:37:21 +02:00
Markus Stange
8dd0c2ffca Bug 1008154 - Make BaseRect::Intersects return false if at least one of the rects is empty. r=roc 2014-05-11 17:48:32 +02:00
Matt Woodrow
b4ecb7164e Bug 1003707 - Pass surfaces sizes in to CreateSourceSurfaceFromNativeSurface instead of trying to extract it from cairo. r=Bas 2014-05-08 11:23:44 +12:00
Doug Sherk
ae9f140b2b Bug 1002289 - Allow adding/subtracting of BaseSize on BaseRect. r=botond, Bas 2014-05-02 11:22:54 -04:00
Matt Woodrow
9728f8a42e Bug 997551 - Avoid copying data in GetSourceSurfaceForSurface whenever possible. r=Bas 2014-04-25 15:31:53 +12:00
James Willcox
723f8539a3 Bug 987010 - Ignore alpha in Skia BGRX source surfaces - r=gwright 2014-04-17 17:01:23 -04:00
Matt Woodrow
375c837dc3 Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas 2014-04-17 12:45:25 +12:00
Jonathan Watt
a95cb6217d Bug 996673 - Stop using |#pragma once| in Moz2D headers. r=Bas 2014-04-16 17:17:22 +01:00
Dan Glastonbury
9abce9fcec Bug 963492 - Assertion failure: GetTransform() == Matrix(mat.xx, mat.yx, mat.xy, mat.yy, mat.x0, mat.y0). r= matt.woodrow 2014-04-15 14:57:29 +10:00
Jonathan Watt
0a0470e24e Bug 996901 - Remove lots of gfxASurface.h and gfxImageSurface.h includes and forward declarations that are no longer needed. r=mattwoodrow 2014-04-16 01:41:40 +01:00
Markus Stange
6692bd50f7 Bug 982698 - Make FilterNodeD2D1 support DataSourceSurface input surfaces. r=Bas 2014-04-15 23:45:11 +01:00
Jonathan Watt
10e73de9e6 Bug 950372 - Convert imgIContainer::GetFrame to return a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow 2014-04-15 19:02:23 +01:00
Jonathan Watt
56e1b0dd9c Bug 996687 - Make Moz2D's DataSourceSurface's mIsMapped member exist in non-DEBUG builds (since non-DEBUG code uses it\!). r=Bas 2014-04-15 17:38:57 +01:00
Jonathan Watt
ff9b064c61 Bug 995832 - Make DrawTargetSkia::DrawSurface accept any surface type. r=gw280 2014-04-15 13:55:48 +01:00
peter chang
44c7bdd42f Bug 970007 - Fix incorrect colorformat when using CairoSurface. r=gal r=bas 2014-04-14 20:51:00 +02:00
Jonathan Watt
f76a0aa8ee Bug 993319 - Add a GetNativeSurface method to SourceSurface. r=Bas
--HG--
extra : rebase_source : b8119354c53c57ba8fdeb6e7ca6c4c2285772244
2014-04-10 09:12:31 +01:00
Matt Woodrow
805b607329 Bug 993784 - Part 2: Add gfxContext API to mask directly from a moz2d SourceSurface. r=roc 2014-04-09 21:15:19 +12:00
Jeff Muizelaar
3fc24ea7d9 Bug 990854. Update CopySurface() to be as fast as DrawSurface(). r=mwoodrow
Bug 987292 made DrawSurface faster by avoiding creating CGImageRef.
We can do the same for CopySurface.
2014-04-03 11:24:05 +08:00
Jonathan Watt
5099df56a5 Bug 983591 - Add a Moz2d helper to copy pixel data from a B8G8R8X8 surface to a packed B8G8R8 array. r=Bas 2014-04-08 10:14:52 +01:00
Bas Schouten
164351b9c3 Bug 987077: Correctly deal with a constant acceleration. r=jwatt 2014-04-02 21:16:57 +01:00
Matt Woodrow
ed2ded92df Bug 990357 - Don't push layer for OPERATOR_SOURCE when the drawing operation covers the entire clip for DrawTargetSkia. r=gw280 2014-04-01 16:59:20 +08:00
Matt Woodrow
f11261b42c Bug 990357 - Don't push layer for OPERATOR_SOURCE when the drawing operation covers the entire clip for DrawTargetCG. r=jrmuizel 2014-04-01 16:57:35 +08:00
Matt Woodrow
d2127c217f Bug 989858 - Part 6: Rename DeprecatedPaint and stop passing a gfxContext in. r=roc 2014-04-01 12:02:10 +08:00
Matt Woodrow
040e9949a5 Bug 973264 - If we wrap gfxImageSurface data when creating a SourceSurface, hold a reference to the original surface so the data stays alive. r=Bas
--HG--
extra : rebase_source : ef99e74688f992c80bd4da1cd5373dcd95ac80a3
2014-03-05 16:04:05 +13:00