Commit Graph

1194 Commits

Author SHA1 Message Date
Nicolas Silva
b4e767d9b2 Bug 1025138 - Integrate DrawTargetTiled preffed off. r=mattwoodrow 2014-08-06 14:40:03 +02:00
Ehsan Akhgari
cd5081982f Bug 1048243 - Fix more bad implicit constructors in gfx; r=jrmuizel 2014-08-05 17:58:40 -04:00
Bas Schouten
b973f597b8 Bug 1039568: Add a capture DrawTarget to Moz2D. r=jrmuizel 2014-08-01 18:01:47 +02:00
David Zbarsky
fd1270ab64 Bug 952977: More gfx::Matrix cleanup in FrameLayerBuilder r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
7efeb8edf5 Bug 952977: More gfx::Matrix cleanup in LayerTreeInvalidation r=nical 2014-08-01 08:31:47 -04:00
David Zbarsky
e1a0d5f22b Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-08-01 08:31:46 -04:00
Nathan Froyd
d86ff9f990 Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium 2014-07-24 11:55:33 -04:00
Wes Kocher
b68dfa645a Backed out 11 changesets (bug 952977) for reftest-no-accel failures
Backed out changeset ea2367c19da3 (bug 952977)
Backed out changeset c401c8748eb3 (bug 952977)
Backed out changeset a93e9ff1043b (bug 952977)
Backed out changeset 765b7f67163e (bug 952977)
Backed out changeset 3d8cf4f5777f (bug 952977)
Backed out changeset 8993710a3ab3 (bug 952977)
Backed out changeset 1298c39b745a (bug 952977)
Backed out changeset be0b899fbe5e (bug 952977)
Backed out changeset f69bea1f1feb (bug 952977)
Backed out changeset 1a745777f07e (bug 952977)
Backed out changeset 5ad1d18dfe17 (bug 952977)
2014-07-29 18:58:46 -07:00
David Zbarsky
d217f4d630 Bug 952977: bustage fix on a CLOSED TREE to appease the compiler gods r=me 2014-07-29 19:51:38 -04:00
David Zbarsky
1066d19eae Bug 952977: More gfx::Matrix cleanup in FrameLayerBuilder r=nical 2014-07-29 19:18:52 -04:00
David Zbarsky
a3fab3a288 Bug 952977: More gfx::Matrix cleanup in LayerTreeInvalidation r=nical 2014-07-29 19:18:49 -04:00
David Zbarsky
ff7456c5a4 Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-07-29 19:18:49 -04:00
Ehsan Akhgari
37d7a2ccc2 Bug 1045091 - Fix some bad implicit constructors in gfx; r=Bas 2014-07-29 08:07:24 -04:00
Milan Sreckovic
2beaa887c0 Bug 1042259 - Manage color spaces in DrawTargetCG, without re-creating them as often as before. Use std::vector for gradient stops, sorting them in the process. r=mstange 2014-07-23 12:12:59 -04:00
Botond Ballo
fa75a0d598 Bug 1035598 - Add a ChangeBasis() method to Matrix4x4. r=mattwoodrow 2014-07-22 18:10:25 -04:00
Botond Ballo
76d325bbe8 Bug 1035598 - Add a PostTranslate() method to Matrix4x4. r=mattwoodrow 2014-07-22 18:09:53 -04:00
Milan Sreckovic
61f2860281 Bug 1031525 - Support DrawTargetCG::DrawWindow and non-CG types. r=gw280,mattwoodrow 2014-07-14 13:24:01 -04:00
Matt Woodrow
e925eace63 Bug 1035168 - Avoid calling GetData/Stride on a surface that we will later Map. r=Bas 2014-07-11 15:23:56 +12:00
Matt Woodrow
337ce18dc8 Bug 1035168 - Use Map api to check if DataSourceSurfaces have data available in DrawTargetCairo. r=Bas 2014-07-09 13:53:48 +12:00
Matt Woodrow
6c8fbe8e34 Bug 1028802 - Don't dereference null pointer in AlignedArray::Rellaoc. r=jwatt 2014-07-14 14:06:16 +12:00
Jeff Gilbert
71d7bf6e9b Bug 1034398 - Query for max IOSurf sizes. - r=benwa 2014-07-11 23:08:54 -07:00
Jeff Gilbert
1a5db8b68a Backed out changeset 53f0f0e43ea5 2014-07-11 21:59:48 -07:00
Jeff Gilbert
700e932b6f Bug 1034398 - Query for max IOSurf sizes. - r=benwa 2014-07-11 21:58:00 -07:00
Jonathan Watt
b0eb2ac4f4 Bug 1025553, part 5 - Add some missing gfxMatrix API to Moz2D Matrix. r=Bas 2014-07-11 08:06:39 +01:00
Nigel Babu
deaee3717d Backed out changeset bd41dff8f475 (bug 1035168) for Win7 debug crashtest bustage 2014-07-09 08:53:28 +05:30
Matt Woodrow
3192923be7 Bug 1027107 - Use fallible allocations in gfx::AlphaBoxBlur::Blur. r=Bas 2014-07-09 13:53:51 +12:00
Matt Woodrow
9f1a9d81f1 Bug 1035168 - Use Map api to check if DataSourceSurfaces have data available in DrawTargetCairo. r=Bas 2014-07-09 13:53:48 +12:00
George Wright
9aab4be30d Bug 1034257 - Implement CreateSourceSurfaceForNativeSurface for Cairo surface types, to enable Xlib surfaces to be drawn properly when using Skia content rendering r=jrmuizel 2014-07-03 17:06:48 -04:00
Nicolas Silva
20a8bbb6ab Bug 1034584 - Prevent invalid sources to contaminate cairo DrawTargets during painting operations. r=Bas 2014-07-04 16:55:04 +02:00
Ryan VanderMeulen
ab939fdfed Backed out changeset 3f079d36c620 (bug 1034257) for non-unified bustage. 2014-07-03 20:36:14 -04:00
George Wright
e0c922aa9f Bug 1034257 - Implement CreateSourceSurfaceForNativeSurface for Cairo surface types, to enable Xlib surfaces to be drawn properly when using Skia content rendering r=jrmuizel 2014-07-03 17:06:48 -04:00
Walter Litwinczyk
858dc07f61 Bug 1004375 - Removed use of legacy skia compatible device API - r=gw280 2014-06-24 15:35:07 -07:00
Mike Hommey
3e73c4399a Bug 1031267 - Fix system cairo builds after bug 1027763. r=jwatt,a=kwierso 2014-07-02 09:15:51 +09:00
Matt Woodrow
38f454048f Bug 997304 - Copy the image data if it's not a suitable size for cairo. r=Bas 2014-07-01 17:52:51 +12:00
Carsten "Tomcat" Book
8f7a5515e1 Backed out changeset c9c8c4ae8e0f (bug 997304) for bustage on a CLOSED TREE 2014-07-01 08:12:19 +02:00
Matt Woodrow
5b4fd19b83 Bug 997304 - Copy the image data if it's not a suitable size for cairo. r=Bas 2014-07-01 17:52:51 +12:00
Bas Schouten
a184daf607 Bug 997304: Allow reading back A8 source surfaces. r=mattwoodrow 2014-07-01 17:52:49 +12:00
Mats Palmgren
6eab5af9a1 Bug 1028460 - part 1, Implement a mozilla::Sides type that represents a set of sides that can be used for the GetSkipSides() result among other things. r=roc 2014-06-28 10:13:13 +00:00
Phil Ringnalda
e41382e94d Back out 5 changesets (bug 1028460, bug 1031444) for somehow breaking asmjscache/test/test_cachingBasic.html on Android 2.2
Backed out changeset 0b5918ec6521 (bug 1031444)
Backed out changeset 663ff18cd4a1 (bug 1028460)
Backed out changeset ae01b3919c8c (bug 1028460)
Backed out changeset 316c8dfeca9b (bug 1028460)
Backed out changeset e237b2c61ea2 (bug 1028460)
2014-06-28 22:01:28 -07:00
Mats Palmgren
3b120ae783 Bug 1028460 - part 1, Implement a mozilla::Sides type that represents a set of sides that can be used for the GetSkipSides() result among other things. r=roc 2014-06-28 10:13:13 +00:00
Jeff Muizelaar
8ae670ea14 Bug 1026596. Add ellipse to bezier helper and use it from SVG. r=bas
This is faster and more accurate. Specifically, the old code
would produce non-monontic segments which was causing rasterization
differences with skia
2014-06-26 16:42:12 -04:00
Jeff Muizelaar
50ce2cab91 Bug 1025133. Be more consistent about rounding colors with the skia backend. r=mwoodrow
--HG--
rename : toolkit/devtools/discovery/tests/moz.build => toolkit/devtools/moz.build
extra : rebase_source : 2db3c43532a30db90326c3903d8fe5c96d077d97
2014-06-18 10:16:30 -04:00
Jonathan Watt
72120fcce3 Backed out changeset a7ea536288e0 (bug 1031267) for bustage.. 2014-06-27 16:58:36 +01:00
Jan Beich
dc7466e983 Bug 1031267 - Fix --enable-system-cairo builds after they were broken by bug 1027763. r=jwatt 2014-06-27 16:29:17 +01:00
Carsten "Tomcat" Book
0a2a0433d2 Merge mozilla-central to mozilla-inbound 2014-06-27 15:51:09 +02:00
Kartikaya Gupta
e2defcf402 Bug 1022956 - When fling velocity is high, don't let tap gestures trigger clicks to content. r=drs r=Bas 2014-06-26 18:37:44 -04:00
Jonathan Watt
64993e997c Bug 1027763, part 4 - Add a new DrawTarget::GetType() method and three generic type enum values for it to return. r=Bas, r=jrmuizel 2014-06-27 10:17:49 +01:00
Gijs Kruitbosch
64b263e1af Bug 1030115 - fix apz.printtree caching to use gfxPrefs. r=kats, bas 2014-06-25 16:12:32 +01:00
Walter Litwinczyk
43a6798734 Bug 1004374 - Removed Moz2D usage of deprecated skia api: SK_SUPPORT_LEGACY_LAYERRASTERIZER_API. r=gw280 2014-06-20 11:47:27 -07:00
Rik Cabanier
cfa3ff39f9 Bug 1018497 - Implementation of DOMMatrix. r=roc,bz 2014-06-24 20:15:00 +02:00
Mats Palmgren
01d6c4f07f Bug 1025669 - part 0, Add BaseMargin::ApplySkipSides, remove nsIFrame::Apply*SkipSides, and change call sites to use the former. r=roc 2014-06-24 17:52:19 +00:00
Benoit Jacob
c590a87a46 Remove unused static function that causes non-unified build to fail - trivial, no review, no bug 2014-06-23 11:50:43 -04:00
zhoubcfan
7e5658fbee Bug 891709 - Fix build bustage in gfx/2d/Factory.cpp when Skia is disabled. r=gw280 2014-05-03 04:13:00 -04:00
Sasha Fydrich
4028b7143e Bug 1020439 - Call cairo_surface_destroy in GetCairoSurfaceForSourceSurface in case of failure. r=bas 2014-06-22 11:10:07 -07:00
Jonathan Watt
75a2e96e37 Bug 1027763, part 3 - Remove the old DrawTarget::GetType() method. r=Bas 2014-06-19 21:35:34 +01:00
Jonathan Watt
0d1000d663 Bug 1027763, part 1 - Rename DrawTarget::GetType() to DrawTarget::GetBackendType() in Moz2D code. r=Bas 2014-06-19 21:35:33 +01:00
Birunthan Mohanathas
c910458886 Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin 2014-06-18 17:56:02 -07:00
Benjamin Smedberg
2ae2942f4b Bug 768395 - Crash in CDevice::DriverInternalErrorCB because the d3d device is set to crash on error instead of merely returning error codes. Explicitly set the exception mode on device creation, and assert it every time we get it again. r=jrmuizel 2014-06-17 13:00:13 -04:00
Jonathan Watt
410ac1cd84 Bug 1022031 - Rework gfxPlatform::GetSourceSurfaceForSurface so that it doesn't need to use a Thebes backed gfxContext (Moz2D conversion). r=mattwoodrow 2014-06-17 10:08:23 +01:00
Jonathan Watt
9a507b878e Bug 1025491 - Remove the DumpAsPNG() code in FilterNodeSoftware.cpp. r=mstange 2014-06-15 01:34:01 +01:00
Jonathan Watt
e5cec405a1 Bug 1023336, part 2 - Use the new BufferSizeFromStrideAndHeight helper where appropriate in Moz2D code. r=Bas 2014-06-13 22:03:52 +01:00
Jonathan Watt
1ddc596cc2 Bug 1023336, part 1 - Add a Moz2D helper to consistently limit the size of data-wrapping DataSourceSurface buffers. r=Bas 2014-06-13 22:03:52 +01:00
Jonathan Watt
295bc31bc0 Bug 1015785 - Fix Moz2D's AlignedArray::Realloc() to not over allocate. r=Bas 2014-06-13 22:03:52 +01:00
Jonathan Watt
87a7c1550f Bug 1024983 - Stop addrefing and releasing excessively in the Moz2D code in functions that return a TemporaryRef. r=mstange 2014-06-13 17:09:23 +01:00
Bas Schouten
877517037b Bug 1024643: Create and upload D2D bitmaps in separate steps. r=mattwoodrow 2014-06-12 19:05:37 +00:00
Jonathan Watt
76d996544d 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
b33c0b3b70 Bug 992491: Add DrawTargetTiled for redirecting drawing to multiple tiles. r=mattwoodrow 2014-06-11 19:53:02 +00:00
Jeff Muizelaar
9d6f48d1af 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
8443fa7ea1 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
739c98b1cf 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
91a07c522d Bug 1022624 - Rename numStops to stopCount. 2014-06-10 22:29:03 +02:00
Markus Stange
1f65090652 Bug 1022624 - Share code for constructing repeated linear and radial gradients. r=jrmuizel 2014-06-10 22:27:45 +02:00
Markus Stange
acb23fb776 Bug 1022624 - Implement support for radial gradients with ExtendMode::REFLECT in DrawTargetCG. r=jrmuizel 2014-06-10 22:26:58 +02:00
Markus Stange
3f309a1d20 Bug 1022624 - Implement support for linear gradients with ExtendMode::REFLECT in DrawTargetCG. r=jrmuizel 2014-06-10 22:26:32 +02:00
Michael Wu
8a202cecf2 Bug 994081 - [3/3] Optimize surfaces on Cairo X11, r=Bas f=karlt 2014-05-22 20:06:16 -04:00
Jonathan Watt
3e4a5e0afc Bug 1019753, part 1 - Add a ClearDataSourceSurface() helper to DataSurfaceHelpers. r=Bas 2014-06-04 08:08:39 +01:00
Carsten "Tomcat" Book
7d4c6ef58f Backed out changeset c5953a778276 (bug 1019753) for crashes on a CLOSED TREE 2014-06-04 10:31:49 +02:00
Jonathan Watt
6141cd1209 Bug 1019753, part 1 - Add a ClearDataSourceSurface() helper to DataSurfaceHelpers. r=Bas 2014-06-04 08:08:39 +01:00
Bas Schouten
f35479561e 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
1bf339ea5d Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas 2014-05-28 14:30:56 +01:00
Matt Woodrow
a566c9094a Bug 1013767 - Add Matrix::PostTranslate. r=Bas 2014-05-28 13:21:32 +12:00
Bas Schouten
4a7ad82e4a Bug 999943 - Followup: Add requested comment. r=jwatt 2014-05-27 17:35:35 +02:00
Bas Schouten
25a1429883 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
a3bcd480ea backout ac5e2c6f4ec0 (Bug 1015780) for bustage 2014-05-26 17:59:43 +01:00
Jonathan Watt
bac4b9d1ef Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas
--HG--
extra : rebase_source : 6e87f0f91cd9cab03facb789f1fee700175ba102
2014-05-26 16:20:39 +01:00
Matt Woodrow
d02c127327 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
2f0ce58a08 Bug 1012386 - Release the CGImage we addref'd in DrawTargetCG::CopySurface. r=jrmuizel 2014-05-21 18:43:16 +12:00
Milan Sreckovic
2985b20c15 Bug 1007856: Update 2D.h to doxygen friendly comment format. r=bas,trivial 2014-05-19 13:54:41 -04:00
Jeff Muizelaar
7d6bd19de3 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
25d9cee77c 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
2fb8955400 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
d02712635a 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
e2bd6af3e2 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
8b44365ba0 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
cd98992b0d Bug 1002289 - Allow adding/subtracting of BaseSize on BaseRect. r=botond, Bas 2014-05-02 11:22:54 -04:00
Matt Woodrow
f452208283 Bug 997551 - Avoid copying data in GetSourceSurfaceForSurface whenever possible. r=Bas 2014-04-25 15:31:53 +12:00
James Willcox
bdb0deafb2 Bug 987010 - Ignore alpha in Skia BGRX source surfaces - r=gwright 2014-04-17 17:01:23 -04:00
Matt Woodrow
2a86d08969 Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas 2014-04-17 12:45:25 +12:00
Jonathan Watt
679d2f9680 Bug 996673 - Stop using |#pragma once| in Moz2D headers. r=Bas 2014-04-16 17:17:22 +01:00
Dan Glastonbury
3084cbcab2 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
61a8971526 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
b6241f2007 Bug 982698 - Make FilterNodeD2D1 support DataSourceSurface input surfaces. r=Bas 2014-04-15 23:45:11 +01:00
Jonathan Watt
0dcb1838b9 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
2ab567a6db 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
5cfb1fc921 Bug 995832 - Make DrawTargetSkia::DrawSurface accept any surface type. r=gw280 2014-04-15 13:55:48 +01:00
peter chang
882f079c4a Bug 970007 - Fix incorrect colorformat when using CairoSurface. r=gal r=bas 2014-04-14 20:51:00 +02:00
Jonathan Watt
03c7d2bb04 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
6586d24779 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
8fe9179a5d 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
4678063331 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
1cfc05dded Bug 987077: Correctly deal with a constant acceleration. r=jwatt 2014-04-02 21:16:57 +01:00
Matt Woodrow
0d0dc840d2 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
6e3ee59a02 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
b34afdaf89 Bug 989858 - Part 6: Rename DeprecatedPaint and stop passing a gfxContext in. r=roc 2014-04-01 12:02:10 +08:00
Matt Woodrow
2d994368c3 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
Phil Ringnalda
39be46ace0 Back out 5adc1acdb309 (bug 973264) for Windows reftest bustage
CLOSED TREE

--HG--
extra : rebase_source : e7e68eb00234424a7fe4bcd6a165c5cc07f0fa30
2014-03-30 20:32:34 -07:00
Matt Woodrow
bad09e1466 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 : 91833db0c39af3984dc7e7a1965486916a9f47f8
2014-03-05 16:04:05 +13:00
Ryan VanderMeulen
a0a7f1acec Backed out changeset 32ce387c5487 (bug 987010) for crashes.
CLOSED TREE
2014-03-26 15:58:07 -04:00
James Willcox
4fb0804a3e Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 13:22:42 -05:00
James Willcox
108a4757be Bug 981621 - Don't crash if we fail to create SkiaGL backing texture r=gwright 2014-03-26 13:21:50 -05:00
Ed Morley
28b94e6939 Backed out changeset 08c58214f01f (bug 987010) for xpcshell crashes; CLOSED TREE 2014-03-26 15:15:18 +00:00
Ed Morley
b9ee929f4c Backed out changeset a0827d7c8a02 (bug 981621) 2014-03-26 15:14:57 +00:00
James Willcox
146bae5aff Bug 981621 - Don't crash if we fail to create SkiaGL backing texture r=gwright 2014-03-26 09:10:12 -05:00
James Willcox
a6c0201109 Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 09:08:27 -05:00
Rik Cabanier
36410d994f Bug 987292 - drawImage does not resample outside source rect r=jmuizelaar 2014-03-24 14:10:00 +01:00
Jonathan Watt
d1f497be9e Bug 982697 - Make Moz2D's DataSourceSurfaceD2D ctor clear the texture memory before drawing to it so that the old content of recycled textures isn't displayed underneath the drawn content. r=Bas 2014-03-26 02:03:55 +00:00
Ehsan Akhgari
04a9eef480 Bug 987667 - Make GenericAtomicRefCounted thread-safe; r=bjacob 2014-03-25 13:58:48 -04:00
James Willcox
11722c2841 Bug 981621 - Guard against null GrContext r=gwright 2014-03-24 09:13:55 -05:00
Bas Schouten
ec5bb433f2 Bug 984796: Fix some small errors in path flattening code. r=jwatt 2014-03-22 18:40:58 +01:00
Phil Ringnalda
94a50979f7 Back out 87e39d7d851a (bug 984796) for printfing like log size is infinite
CLOSED TREE
2014-03-21 19:49:15 -07:00
Jonathan Watt
bffb9388c5 Bug 985470 - Replace the Moz2D Matrix().Translate() calls with Matrix::Translation() for better perf. r=mattwoodrow
--HG--
extra : rebase_source : 7181564bdaa57a970a256e9676857a7195874631
2014-03-22 07:56:11 +08:00
Bas Schouten
a3d8192024 Bug 984796: Fix some small errors in path flattening code. r=jwatt 2014-03-22 00:55:36 +01:00
George Wright
8bd7a8f28c [PATCH 3/6] Bug 985217 - Minor changes to gfx/2d for API changes in Skia r=snorp 2014-03-20 14:07:36 -04:00
Ehsan Akhgari
5ab76fe98e Bug 979118 - Add global MMX_FLAGS, SSE_FLAGS and SSE2_FLAGS variables; r=glandium 2014-03-19 21:55:00 -04:00
Jonathan Watt
e636293bab Bug 985320 - Add a static Matrix::Scaling method to Moz2D's Matrix. r=Bas 2014-03-19 22:33:38 +08:00
Matt Woodrow
cca6f8378b Bug 982318 - Add TransformBounds to Matrix4x4 so that we can stop assuming 2d matrices in TiledContentHost. r=Bas 2014-03-18 12:06:23 +08:00
Phil Ringnalda
79d8e75d3b Back out f79690ca47fa:48828b35e4ce (bug 982318) for b2g mochitest bustage
CLOSED TREE
2014-03-18 00:02:24 -07:00
Jonathan Watt
cf5d257ff6 Bug 982884 - Make DrawTargetD2D::GetBitmapForSurface correctly handle fractional source rect for data surfaces. r=Bas 2014-03-13 09:58:22 +00:00
Jonathan Watt
d5e6d48c8a Bug 984263 - Add methods to Moz2D Matrix to help with translation and rotation matrices. r=Bas 2014-03-18 13:04:47 +08:00
Matt Woodrow
686e2f7be4 Bug 982318 - Add TransformBounds to Matrix4x4 so that we can stop assuming 2d matrices in TiledContentHost. r=Bas 2014-03-18 12:06:23 +08:00
Jacek Caban
a2d1f25ecd Bug 981607 - Ensure that Log may handle both long and long long. r=botond 2014-03-14 14:05:47 +01:00
Jonathan Watt
880a3e3b3a Bug 981857 - Make DrawTargetCG::CopySurface() support data surfaces. r=jrmuizel 2014-03-11 07:24:43 +00:00
George Wright
5137367585 Bug 976184 - Apply a drop shadow image filter to our SkPaint when drawing a surface with a shadow r=mattwoodrow 2014-03-06 16:33:39 -05:00
Ehsan Akhgari
8cf9386f77 Bug 978472 - Add support for leak checking in GenericRefCounted classes; r=bjacob 2014-03-09 14:40:49 -04:00
Jonathan Watt
0c186fb8f2 Bug 980885 - Fix more Moz2D D2D mapping code that fails to set/reset mIsMapped. r=Bas CLOSED TREE to fix orange 2014-03-07 14:55:16 +00:00
Jonathan Watt
705e519aba Bug 980885 - Fix more Moz2D D2D mapping code that fails to set/reset mIsMapped. r=Bas 2014-03-07 13:24:47 +00:00
Jonathan Watt
9c80b2ba26 Bug 980603 - Move the implementation of SurfaceToPackedBGRA and ConvertBGRXToBGRA to a source file (un-inline them). r=gal 2014-03-07 13:24:42 +00:00
Jonathan Watt
1fc03c28ce Bug 980428 - Add a DEBUG-only DataSourceSurface dtor to assert that the surface has not been left mapped. r=Bas 2014-03-07 13:21:46 +00:00
Jonathan Watt
096699f593 Bug 980472 - Make SurfaceToPackedBGRA take a DataSourceSurface to avoid unnecessary surface conversion. r=Bas
--HG--
extra : rebase_source : c11c7ead8897255b3012495cc66beed27142275a
2014-03-06 23:31:33 +00:00
Jonathan Watt
191e7fa1ff Bug 979853 - Convert the Windows widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow
--HG--
extra : rebase_source : 12e05d7d6b80669e38b959d3fe9986a179f60cb6
2014-03-06 23:31:22 +00:00
Jonathan Watt
b647a37dd7 Bug 980272 - Make DataSourceSurfaceD2D::Map set mIsMapped. r=Bas
--HG--
extra : rebase_source : cb485b1cf09dc570fed1e495ce7bfd83b03788c8
2014-03-06 23:29:57 +00:00
James Willcox
39bceadc21 Bug 939276 - Use a single GLContext for all SkiaGL canvases r=jgilbert,vlad,gwright,bjacob
--HG--
rename : gfx/gl/GLContextSkia.cpp => gfx/gl/SkiaGLGlue.cpp
2014-03-05 15:49:37 -06:00
Markus Stange
16402cbab3 Bug 960178 - Fix lighting filter PowCache. r=Bas 2014-03-05 18:41:38 +01:00
Markus Stange
c431a14625 Bug 963086 - Detect filter rect XMost()/YMost() overflow and protect against out-of-range data acess. f=dholbert, r=Bas 2014-03-05 18:41:19 +01:00
Ehsan Akhgari
f5dd4e8ef8 Bug 978594 - Part 3: Port some of the per-source flags to moz.build; r=glandium
--HG--
extra : rebase_source : fe4cd059eddda221af420e1517250772816d7ee8
2014-03-02 15:41:32 -05:00
Ehsan Akhgari
780631919e Fix the merge conflict of bug 958596 and bug 978776 2014-03-03 18:24:04 -05:00
Ryan VanderMeulen
ee46e14cf6 Merge m-c to inbound. 2014-03-03 17:23:35 -05:00
Ehsan Akhgari
2f66c33c1b Bug 978776 - Stop exporting moz2d symbols from xul.dll; r=jrmuizel 2014-03-03 14:38:33 -05:00
Ehsan Akhgari
6b9893cdfc Bug 977279 - Add a missing initguid.h include to DrawTargetD2D.cpp 2014-02-28 10:42:23 -05:00
Horia Iosif Olaru
c26db357b5 Bug 952051 - Change the GetOperator call in FlushGroup to take into account the mix-blend-mode operator for the group. r=roc
Create a new GetEffectiveOperator function that also takes into acount the mix-blend-mode operator for basic layers. Replace logic that chooses between the effective mix blend mode and the operator returned by GetOperator, with calls to this function.
2014-02-27 11:56:48 -05:00
Benjamin Bouvier
7a3e028e1e Bug 939843: Required changes in the rest of the tree; r=froydnj
--HG--
extra : rebase_source : 5757eb2b73755c8da08112b91b025a8fa860d7e8
2014-02-27 16:23:16 +01:00
Botond Ballo
de9b8a5e87 Bug 958596 - Allow gfx logging of long long. r=Bas 2014-01-22 18:38:31 -05:00
Botond Ballo
5bda1577dd Bug 958596 - Allow TreeLog logging to be conditioned on a pref. r=Bas 2014-01-22 15:19:01 -05:00
Botond Ballo
51adf1e7a4 Bug 958596 - Add support a tree logging utility. r=Bas 2014-01-21 20:14:47 -05:00
Botond Ballo
d4d1d77eca Bug 958596 - Allow writing a log statement that does not end in a newline. r=Bas 2014-01-21 18:59:17 -05:00
Botond Ballo
fa0ea774fa Bug 958596 - Allow gfx logging of any rect, size, and point. r=Bas 2014-01-21 18:38:34 -05:00
Botond Ballo
017d1dcf2d Bug 958596 - Add gfx logging support for 'char'. r=Bas 2014-01-21 20:26:00 -05:00
Botond Ballo
3116196a8c Bug 958596 - Add support for gfx logging on android and b2g. r=Bas 2014-01-21 20:11:52 -05:00
Botond Ballo
f435a42cd8 Bug 958596 - Allow gfx/2d/Logging.h to be used outside of gfx/2d. r=Bas 2014-02-18 21:59:34 -05:00
Ehsan Akhgari
149b11176b Bug 935778 - Part 0.7: Emit the correct type name from FilterNodeLightingSoftware; r=jrmuizel, parts r=dbaron 2014-02-26 10:13:48 -05:00
Wes Kocher
1282000702 Backed out 12 changesets (bug 958596) for several Android permafails to fix a CLOSED TREE
Backed out changeset e4c0e3d3a768 (bug 958596)
Backed out changeset 7bc4f48d6b05 (bug 958596)
Backed out changeset 89cd12e3db45 (bug 958596)
Backed out changeset 283411053340 (bug 958596)
Backed out changeset 5329fa8c8847 (bug 958596)
Backed out changeset 0d1d26d588e3 (bug 958596)
Backed out changeset 715fe9eb5dfd (bug 958596)
Backed out changeset 66dde9d67ffa (bug 958596)
Backed out changeset 79e589f75065 (bug 958596)
Backed out changeset 1ed4c880ab70 (bug 958596)
Backed out changeset 1d40b0b8036d (bug 958596)
Backed out changeset ad35d51d9781 (bug 958596)
2014-02-25 18:34:47 -08:00
Botond Ballo
a5acb8c402 Bug 958596 - Allow gfx logging of long long. r=Bas 2014-01-22 18:38:31 -05:00
Botond Ballo
715e804b56 Bug 958596 - Allow TreeLog logging to be conditioned on a pref. r=Bas 2014-01-22 15:19:01 -05:00
Botond Ballo
c9085e04cb Bug 958596 - Add support a tree logging utility. r=Bas 2014-01-21 20:14:47 -05:00
Botond Ballo
31b54b299b Bug 958596 - Allow writing a log statement that does not end in a newline. r=Bas 2014-01-21 18:59:17 -05:00
Botond Ballo
484deeb390 Bug 958596 - Allow gfx logging of any rect, size, and point. r=Bas 2014-01-21 18:38:34 -05:00
Botond Ballo
991dd05512 Bug 958596 - Add gfx logging support for 'char'. r=Bas 2014-01-21 20:26:00 -05:00
Botond Ballo
9179478234 Bug 958596 - Add support for gfx logging on android and b2g. r=Bas 2014-01-21 20:11:52 -05:00
Botond Ballo
9600ef6281 Bug 958596 - Allow gfx/2d/Logging.h to be used outside of gfx/2d. r=Bas 2014-02-18 21:59:34 -05:00
Ehsan Akhgari
91df1527b5 Bug 976392 - Move moz2d to libxul; r=jrmuizel 2014-02-25 15:42:23 -05:00
Ed Morley
371641c5fa Backed out changeset 07f3cfaa7900 (bug 958596) for build failures on Windows 2014-02-25 17:17:47 +00:00
Ed Morley
629596b79a Backed out changeset dfadc8e2c38e (bug 958596) 2014-02-25 17:17:26 +00:00
Ed Morley
d05e8e0965 Backed out changeset b190a7268dd4 (bug 958596) 2014-02-25 17:17:23 +00:00
Ed Morley
9e1d9e4332 Backed out changeset b228fa36e700 (bug 958596) 2014-02-25 17:17:19 +00:00
Ed Morley
6e6b7a1cf2 Backed out changeset ff5de50c1333 (bug 958596) 2014-02-25 17:17:16 +00:00
Ed Morley
a54497e6fc Backed out changeset eb4286cfa305 (bug 958596) 2014-02-25 17:17:12 +00:00
Ed Morley
0b1a9ed15a Backed out changeset c88e6d34fe90 (bug 958596) 2014-02-25 17:17:09 +00:00
Ed Morley
f268460850 Backed out changeset 8e8db64bbaba (bug 958596) 2014-02-25 17:16:55 +00:00
Botond Ballo
3e3cbbe526 Bug 958596 - Allow gfx logging of long long. r=Bas
--HG--
extra : rebase_source : c65c224a3ce6f09636be594eb68a95cc791841f7
2014-01-22 18:38:31 -05:00
Botond Ballo
f173a70f36 Bug 958596 - Allow TreeLog logging to be conditioned on a pref. r=Bas
--HG--
extra : rebase_source : 4390b6b07ec6cf195839f6e8386c769a8b234dd0
2014-01-22 15:19:01 -05:00
Botond Ballo
1d75d84d0d Bug 958596 - Add support a tree logging utility. r=Bas
--HG--
extra : rebase_source : 1bb9385ea2f9ce653ec0d5acd529edb63a385117
2014-01-21 20:14:47 -05:00
Botond Ballo
61a402ee3f Bug 958596 - Allow writing a log statement that does not end in a newline. r=Bas
--HG--
extra : rebase_source : a26166451eb22c50b6bb32c2728bd07bdbf6e859
2014-01-21 18:59:17 -05:00
Botond Ballo
a2f8254eaa Bug 958596 - Allow gfx logging of any rect, size, and point. r=Bas
--HG--
extra : rebase_source : b884b10446f5bc026285e6b16c202c7d9a2c377b
2014-01-21 18:38:34 -05:00
Botond Ballo
48f0bac38a Bug 958596 - Add gfx logging support for 'char'. r=Bas
--HG--
extra : rebase_source : 2938fc27a6541fd5dd5ac1cf94f3e69ed3997ecc
2014-01-21 20:26:00 -05:00
Botond Ballo
e789867210 Bug 958596 - Add support for gfx logging on android and b2g. r=Bas
--HG--
extra : rebase_source : 8d5a1c0dfc4f5f74e8417531b1f9f39c54e85d49
2014-01-21 20:11:52 -05:00
Botond Ballo
51707830d7 Bug 958596 - Allow gfx/2d/Logging.h to be used outside of gfx/2d. r=Bas
--HG--
extra : rebase_source : 7c99fccae55d8116f12b52ed74e178590c2c7414
2014-02-18 21:59:34 -05:00
Ehsan Akhgari
5664081d99 Bug 935778 - Part 0.6: Add support for MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME and use it in moz2d
X-Git-Commit-ID: bc256ac44cbba52b04f8f0390965632ec4507608
2014-02-24 08:23:37 -05:00
Ehsan Akhgari
50862d75c8 Bug 935778 - Part 1.1: Re-add the refcount assertions for AddRef(), and make the assertions for Release() use a signed integer 2014-02-22 11:23:03 -05:00
Ehsan Akhgari
fe19ed8113 Bug 935778 - Part 1: Add RefCountType, a type compatible with nsrefcnt, to MFBT; r=dbaron,froydnj 2014-02-21 14:45:50 -05:00
Ehsan Akhgari
067fa188b6 Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-20 21:33:49 -05:00
Wes Kocher
a774349143 Backed out changeset cf6a31bca4e0 (bug 939276) for webgl reftest crash
--HG--
rename : gfx/gl/SkiaGLGlue.cpp => gfx/gl/GLContextSkia.cpp
2014-02-20 15:23:52 -08:00
James Willcox
df0c006a7c Bug 939276 - Use a single GLContext for all SkiaGL canvases r=vlad,gwright,bjacob
--HG--
rename : gfx/gl/GLContextSkia.cpp => gfx/gl/SkiaGLGlue.cpp
extra : rebase_source : 8e85dd34a67c2e193480e9f1f5baf68a898790fe
2014-02-20 16:20:28 -06:00
Ali Akhtarzada
095c305910 Bug 974314 - Fix memleak in CreateDrawTargetForData when backend is skia. r=gal 2014-02-19 11:37:26 -05:00
George Wright
49aa28efd0 Bug 910754 - Update gfx/2d's Skia code to use the new Skia APIs r=snorp 2013-12-05 23:01:53 -05:00
George Wright
2b32dd27bb Back out changesets from bug 910754 due to build bustage 2014-02-18 17:54:04 -05:00
George Wright
71f60661f9 Bug 910754 - Update gfx/2d's Skia code to use the new Skia APIs r=snorp 2013-12-05 23:01:53 -05:00
Markus Stange
72f4431fe8 Bug 973308 - Don't let empty clip rects put infinities into the gradient calculations. r=jrmuizel 2014-02-18 23:18:29 +01:00
Masatoshi Kimura
9f0004eb6e Bug 969918 - Use decltype to declare pointers for dynamic-loaded functions. r=jimm sr=roc 2014-02-18 07:32:52 +09:00
Jeff Muizelaar
b09c5a8340 Bug 821475. Moz2D: Remove flip when drawing gradient. r=mstange
We muck with the matrix before we draw the text. We need to set it back after.

--HG--
rename : mobile/android/base/FilePicker.java => mobile/android/base/ActivityHandlerHelper.java
extra : rebase_source : 4f937b0b2779ee6c771e030a7ae0894f14a7b211
2014-02-15 18:21:43 -05:00
Ehsan Akhgari
dc28f1ce88 Backed out 2 changesets (bug 939276) because of build bustage
Backed out changeset 1cedc759f877 (bug 939276)
Backed out changeset 61cef3b533ba (bug 939276)

--HG--
rename : gfx/gl/SkiaGLGlue.cpp => gfx/gl/GLContextSkia.cpp
2014-02-14 18:48:05 -05:00
James Willcox
7b82ee95c1 Bug 939276 - Use a single GLContext for all SkiaGL canvases r=bjacob,gwright,dglastonbury
--HG--
rename : gfx/gl/GLContextSkia.cpp => gfx/gl/SkiaGLGlue.cpp
2014-02-14 15:55:58 -06:00
Markus Stange
bb055b7334 Bug 966996 - The computed gradient stops need not cover the origin, so don't start at zero. r=jrmuizel
--HG--
extra : rebase_source : cc8afae8083129aee8765855037fc89ea1280b1c
2014-02-13 12:11:16 +01:00
Markus Stange
80443d62bf Bug 966996 - Clamp the gradient extents to the current clip extents so that we don't compute unseen gradient stops. r=jrmuizel
--HG--
extra : rebase_source : 5ccf62603305ff2d88c98512e795fed87badc2c8
2014-02-13 12:10:43 +01:00
Markus Stange
44c7c2835d Bug 960017 - Make the surfaces big enough. r=Bas
--HG--
extra : rebase_source : fc7cafcc7f39bd1f05478230292816d874a7b035
2014-02-13 12:09:11 +01:00
Markus Stange
7a8f365ba0 Bug 960017 - Add some debug-only checks. r=Bas
--HG--
extra : rebase_source : 7618902f2cb1d21e402e6fee251c967af518aaf1
2014-02-13 12:07:35 +01:00
Phil Ringnalda
d6216c9ade Back out bcaadd45b905 (bug 972161) for adding (fatal) warnings on Windows
CLOSED TREE
2014-02-12 23:27:40 -08:00
Bas Schouten
e8ed6e1f20 Bug 972161: Add ability to output font data for freetype fonts. r=jrmuizel 2014-02-13 07:31:51 +01:00
Jacek Caban
d58401494a Bug 970429 - Don't allow using INITGUID in unified sources. r=Ehsan 2014-02-12 10:59:05 +01:00
Jacek Caban
2a9babd0d5 Bug 970364 - Fix conversions between enum classes and ints in gfx/2d/. r=bas.schouten 2014-02-11 13:44:17 +01:00
Nathan Froyd
811d53c834 Bug 968942 - make SizeTyped constructors MOZ_CONSTEXPR to avoid static constructors; r=kats 2014-02-06 13:06:08 -05:00
Markus Stange
cdd2d8e1f9 Bug 958977. r=Bas 2014-02-07 13:24:54 +01:00
Markus Stange
8e5b6af66c Bug 950511 - Back out part 1 from bug 941095 (DrawTargetCG::SetPermitSubpixelAA) because it's unnecessary and causes bad text rendering in context menus. 2014-02-04 21:03:12 +01:00
Markus Stange
1e4341fcaa Bug 965914 - Don't crash when we can't allocate a new surface in CloneAligned. r=Bas 2014-02-04 21:03:12 +01:00
David Zbarsky
9bac52255b Bug 952977: Perform some cleanup r=nical 2014-01-27 15:25:19 -05:00
David Zbarsky
77535232c8 Bug 952977: Convert SetBaseTransform to gfx::Matrix4x4 r=nical 2014-01-27 10:28:33 -05:00
David Zbarsky
07f34ba029 Bug 952977: Convert GetLocalTransform to gfx::Matrix4x4 r=nical 2014-01-27 10:28:18 -05:00
David Zbarsky
1e46ffbe23 Bug 952977: Convert SnapTransforms to gfx::Matrix r=nical 2014-01-27 10:27:20 -05:00
David Zbarsky
1a8648fa9e Bug 952977: Convert GetEffectiveTransform to gfx::Matrix4x4 r=nical 2014-01-24 17:49:19 -08:00
Benoit Jacob
981c6431d3 Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Jim Mathies
cb930f5a5b Bug 759749 - Bail if fallback CreateBitmap call in SourceSurfaceD2DTarget::GetBitmap fails. r=Bas 2014-01-22 14:12:08 -06:00
Markus Stange
b6bdce4d8e Bug 944579 - Refuse to create gigantic DrawTargets and surfaces. r=Bas 2014-01-17 11:06:17 +01:00
Markus Stange
13cd1908f5 Bug 951268 - Use MaskSurface when drawing A8 filter results. r=Bas 2014-01-17 11:06:11 +01:00
Bas Schouten
82780b1c66 Bug 960245: Deal with the final possibility for degeneracies in FindInflectionApproximationRange. r=jrmuizel 2014-01-16 21:39:19 +01:00
Ryan VanderMeulen
781c2427f6 Backed out changeset aa8e746be488 (bug 944579) for bustage. 2014-01-16 11:41:40 -05:00
Markus Stange
f4043e78a7 Bug 944579. r=Bas 2014-01-16 11:21:13 -05:00
Bas Schouten
6e294e9403 Bug 960254 - Part 4: Implement the new Map/Unmap API for Direct2D. r=jrmuizel 2014-01-16 13:17:24 +01:00
Bas Schouten
05ed302986 Bug 960254 - Part 3: Remove MarkDirty call to avoid confusion. r=jrmuizel 2014-01-16 13:17:23 +01:00
Bas Schouten
c4736f4f79 Bug 960254 - Part 1: Add new Map/Unmap APIs to DataSourceSurface. r=jrmuizel 2014-01-16 13:17:22 +01:00
Bas Schouten
e5a12c42d9 Backed out 5 changesets (bug 960254, bug 960354)
Backed out changeset 4441c32c724c (bug 960254)
Backed out changeset 4aecc5ca2a19 (bug 960254)
Backed out changeset 9f499e5f7954 (bug 960354)
Backed out changeset fd9b6b044a5a (bug 960354)
Backed out changeset c1f6fbc397bd (bug 960354)
2014-01-16 14:36:53 +01:00
Bas Schouten
c47ed69843 Bug 960254 - Addition: Use a regular enum since apparently buildbot MSVC doesn't support nester MOZ_ENUM classes. r=bustage 2014-01-16 14:02:39 +01:00
Bas Schouten
4087c37a6f Bug 960254: Implement the new Map/Unmap API for Direct2D. r=jrmuizel 2014-01-16 13:17:24 +01:00
Bas Schouten
2d25c97be7 Bug 960354 - Part 3: Remove MarkDirty call to avoid confusion. r=jrmuizel 2014-01-16 13:17:23 +01:00
Bas Schouten
802f67b848 Bug 960354 - Part 1: Add new Map/Unmap APIs to DataSourceSurface. r=jrmuizel 2014-01-16 13:17:22 +01:00
David Zbarsky
7474ed0454 Bug 952977: Switch GL world transform to gfx::Matrix r=nical 2014-01-16 02:22:19 -05:00
Peter Chang
b23368a0a1 Bug 956432 - Fix the rounding inside DrawTargetSkia::DrawSurface(), r=gw280 2014-01-15 15:16:39 +08:00
James Kolb
69642f8f89 Bug 603488 part 3: Modified DrawTargetSkia to accept non-skia sourcesurfaces. r=nrc
--HG--
extra : rebase_source : f7f084a373d738ffcc58cbbf165fcfd86148d5ce
2014-01-13 13:29:48 +13:00
Brian Smith
7afb7d46ab Bug 958906: Remove reliance on implicit conversion from enum types to integers to fix VS2013 build bustage, r=bjacob
--HG--
extra : rebase_source : 2e197e5f74cf20eae6f9b1801056d0438e527696
2014-01-11 22:26:20 -08:00
Benoit Jacob
873406e3f0 Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Benoit Jacob
d73dfad4ba Bug 958375 - 7/9 - Make Font-related enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
300f4ba3a9 Bug 958375 - 6/9 - Make BackendType and NativeSurfaceType typed enums - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
84374236d8 Bug 958375 - 5/9 - Make FilterType a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
535a216635 Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
1d401ace71 Bug 958375 - 1/9 - Make SurfaceType a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 13:55:24 -05:00
Mike Shal
f463dc9014 Bug 875013 - Remove VPATH in gfx/; r=joey 2014-01-07 17:50:44 -05:00
Bas Schouten
a82c4164bc Bug 941585: Better dealing with degenerate beziers. r=jrmuizel 2014-01-09 17:04:17 +01:00
Markus Stange
caa0777649 Bug 951443 - Don't attempt to create 0x0-sized CGContexts when the UnboundnessFixer encounters an empty clip. r=jrmuizel 2014-01-08 10:31:17 +01:00
Nicholas Cameron
a44e014503 Bug 933549. Preqrequisites - Matrix::HasNonIntegerTranslation and SetAntialiasingFlags. r=mattwoodrow 2014-01-08 10:06:08 +13:00
Nicholas Cameron
632494d218 backed out bug 933549 on a CLOSED TREE 2014-01-08 10:27:14 +13:00
Nicholas Cameron
a5ff98613f Bug 933549. Preqrequisites - Matrix::HasNonIntegerTranslation and SetAntialiasingFlags. r=mattwoodrow 2014-01-08 10:06:08 +13:00
Nicholas Cameron
3255d2032d Bug 950550. Test. r=jrmuizel
--HG--
extra : rebase_source : b5d2cc463f423127948a65ddd9567671a67e9250
2014-01-07 11:27:07 +13:00
Nicholas Cameron
e2ed561e72 Bug 950550. Restore the transform in DrawTargetCairo::PopClip. r=jrmuizel
--HG--
extra : rebase_source : 999f2d3794de202f68bf4adee8f4b0034e5f91b6
2014-01-07 11:27:03 +13:00
Anthony Jones
ffb3cc0bf2 Bug 951463 - Rename ClampRect to ForceInside; r=botond 2014-01-06 10:05:07 -05:00
Kevin Simons
148b139c96 Bug 951686 - Set the SkBitmapDevice to opaque for BGRX surfaces. r=gwright 2014-01-06 10:03:55 -05:00
Andreas Pehrson
7c766323a3 Bug 877115 - Add factory method for DataSourceSurfaces with custom stride. r=bas 2013-12-19 10:31:07 -05:00
Jacek Caban
0ada8f7573 Bug 944908 - Fixed mingw compilation in gfx/2d/. r=bas.schouten 2013-12-23 14:03:16 +01:00
Nicolas Silva
a7bb73bad9 Bug 951858 - Support DrawTarget::CopySurface with A8 D2D textures. r=Bas 2013-12-19 19:44:20 +01:00
Nicolas Silva
3f68aecbec Bug 948470 - Correctly set the format of DataSourceSurfaceD2DDrawTarget. r=Bas 2013-12-19 16:36:46 +01:00
Milan Sreckovic
401190b73d Bug 893572 - Add tests and backout part of bug 922942 for regressing the tests prior to them being landed. r=Bas, r=mattwoodrow 2013-12-17 16:51:16 -05:00
Jeff Muizelaar
08ea559108 Bug 948128. Add StackArray helper. r=Bas
This is helpful for when we want to convert between
different types and we need a short lived piece of memory.

--HG--
extra : rebase_source : b841a535cb1ddd837df4b34949bd34054c438c67
2013-12-09 17:07:13 -05:00
Jonathan Watt
0f0ab858a5 Bug 944704, part 4 - Fix PathBuilderCG::Arc to sweep in the correct direction. r=Bas 2013-12-14 11:09:36 +00:00
Benoit Girard
ce6793e97f Bug 941095 - Part 1: Support SetPermitSubpixelAA with Quartz. r=bas
--HG--
extra : rebase_source : 69171a8a17a34c822b34f48babecf18ffa08bf56
2013-12-11 23:16:03 -05:00
Bas Schouten
496577a876 Bug 946540: Deal with inflection points that all lie outside of (0, 1). r=jrmuizel 2013-12-13 15:22:37 +01:00
Jonathan Watt
c437f0cb93 Bug 944704, part 1 - Extend Moz2D's ArcToBezier helper so that it can draw ellipse arcs in addition to circle arcs. r=Bas 2013-12-13 12:14:36 +00:00
Kevin Simons
6f30280ed4 Bug 944646 - Implement Skia path in ScaledFontBase::CopyGlyphsToBuilder. r=mattwoodrow
Handle PathBuilderSkia with a separate path specifically for
BACKEND_SKIA DrawTarget instances.
2013-12-12 17:37:00 -05:00
Kevin Simons
63eee7d672 Bug 944646 - Check the DrawTarget type before downcasting PathBuilders. r=mattwoodrow
Previously the ScaledFontBase::CopyGlyphsToBuilder methods in the
various ScaledFont subclasses static_cast-ed the passed in PathBuilder
objects without checking which sort of DrawSurface they were created by.
2013-12-12 17:37:00 -05:00
Matt Woodrow
ccc8dd1ae7 Bug 946475 - Avoid using AutoSaveRestoreClippedOut for ClearRect when the cumulative clip can be represented as a single axis aligned rectangle. r=Bas 2013-12-12 10:11:37 +13:00
Matt Woodrow
2c52ae2935 Bug 946475 - Clip to the clear area in DrawTargetD2D::ClearRect so that we don't accidentally restore pixels that weren't drawn. r=Bas 2013-12-12 10:11:07 +13:00
Martin Stransky
f09c774110 Bug 941595 - Build with system-cairo is broken. r=glandium 2013-12-10 10:37:03 -05:00
Markus Stange
cf45dd0b45 Bug 945655 - Improve FilterNodeSoftware debug logging. r=roc 2013-12-10 14:50:41 +01:00
Markus Stange
931079671a Bug 945655 - Reduce arithmetic combine filter output rect depending on the coefficients. r=roc 2013-12-10 14:50:41 +01:00
Markus Stange
14879d50bc Bug 945655 - Composite filters with operator IN have a result that is the intersection of the input rects, not the union. FilterNodeSoftware part. r=roc 2013-12-10 14:50:41 +01:00
Markus Stange
9927ea1975 Bug 945655 - Make transparent flood filters report an empty output rect. r=roc 2013-12-10 14:50:41 +01:00
Markus Stange
c0ceead6e7 Bug 945655 - Simplify the crop FilterNodeSoftware filter. r=roc 2013-12-10 14:50:40 +01:00
Markus Stange
b2339b298c Bug 945655 - Don't add transparency around the filter output before sending it to DrawSurface. r=roc 2013-12-10 14:50:40 +01:00
Markus Stange
03990862ae Bug 945655 - Make all filters deal with null inputs and empty output rects consistently: treat them as transparent. r=roc 2013-12-10 14:50:40 +01:00
Birunthan Mohanathas
bd0f161288 Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
Andreas Gal
28fb485602 Bug 946541 - Fix Skia cache purging. r=gw280 2013-12-04 23:52:03 -05:00
Kevin Simons
9866760836 Bug 945314 - Workaround crash with Cairo surfaces in Skia backend. r=mstange
A patch for bug 924102 introduced a MOZ_CRASH assertion for surfaces
of type other than SURFACE_SKIA or SURFACE_DATA being passed to
DrawSurface. Previously surfaces of other types were simply ignored.
On Linux, there are still several hardcoded surfaces of type Cairo
(found in gfxXlibNativeRenderer and friends) and as a result, the
Skia backend crashes always on Linux currently.

This workaround ignores Cairo surfaces passed to DrawSurface.
2013-12-03 08:52:06 -05:00
Kevin Simons
e00cc665ff Bug 944412 - Fix an issue with the stride in SourceSurfaceSkia::InitFromData. r=gal
After calling SkBitmap::copyTo, the InitFromData method assumed
that the stride of the destination SkBitmap was now the same as the
stride of the source bitmap. This was, however, not the case. Now
the stride is read back out of the destination bitmap.

This was causing a crash due to memory corruption for FORMAT_B8G8R8X8
surfaces.
2013-12-02 11:03:13 -05:00
Mike Hommey
fdd3247a81 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Mike Hommey
2f727b6d62 Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
b038245b8d Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
Chris Lord
5ef337c5a4 Bug 931823 - Fix calculation of tiled update data and convert to typed units. r=kats,botond
Various changes to FrameMetrics and such have causes the tile coherency checks
to end up with nonsense values, meaning updates are always happening a tile at
a time.

This fixes the calculation of those values, adds some documentation and
converts a large part of it to using typed units, to make it easier to
understand what's happening.
2013-11-27 17:33:27 +00:00
Bas Schouten
55e3bcf87f Bug 924102 - Add support for filters to DrawTargetRecording. r=mstange 2013-11-27 12:25:28 +01:00
Bas Schouten
0e17fc1044 Bug 924102 - Use FilterNodeSoftware for filter drawing in DrawTargetSkia. r=mstange 2013-11-27 12:25:28 +01:00
Bas Schouten
42d0dc60b9 Bug 924102 - Make DrawTargetSkia::DrawSurface support non-Skia DataSourceSurfaces. r=mstange 2013-11-27 12:25:27 +01:00
Markus Stange
4cfec24dfa Bug 924102 - Add transform filter and remove offset filter. r=Bas 2013-11-27 12:25:27 +01:00
Markus Stange
669377532c Bug 924102 - Add a FilterNode implementation that uses Direct2D 1.1 effects. Most of this patch was written by Bas. r=mstange, r=Bas 2013-11-27 12:25:16 +01:00
Markus Stange
d20d7c9a8b Bug 924102 - Implement DrawTarget filter APIs with FilterNodeSoftware for Cairo, CG, D2D, D2D1 and Dual. r=Bas 2013-11-27 12:22:56 +01:00
Markus Stange
e9baba2246 Bug 924102 - Add a software FilterNode implementation. r=Bas 2013-11-27 12:22:46 +01:00