Commit Graph

865 Commits

Author SHA1 Message Date
Markus Stange
66065bfa75 Bug 945655 - Reduce arithmetic combine filter output rect depending on the coefficients. r=roc 2013-12-10 14:50:41 +01:00
Markus Stange
bbfebead46 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
5582cfa361 Bug 945655 - Make transparent flood filters report an empty output rect. r=roc 2013-12-10 14:50:41 +01:00
Markus Stange
271d80d1b3 Bug 945655 - Simplify the crop FilterNodeSoftware filter. r=roc 2013-12-10 14:50:40 +01:00
Markus Stange
e6512a0aae 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
80876b8581 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
2a97f4dc0d Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
Andreas Gal
e6549702a5 Bug 946541 - Fix Skia cache purging. r=gw280 2013-12-04 23:52:03 -05:00
Kevin Simons
c8d26f9326 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
685f495c6f 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
9245936f8b Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Mike Hommey
2b828323f2 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
d210f8ff00 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
Chris Lord
62fe777b60 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
88c097d283 Bug 924102 - Add support for filters to DrawTargetRecording. r=mstange 2013-11-27 12:25:28 +01:00
Bas Schouten
1eada597e4 Bug 924102 - Use FilterNodeSoftware for filter drawing in DrawTargetSkia. r=mstange 2013-11-27 12:25:28 +01:00
Bas Schouten
a6010e3f33 Bug 924102 - Make DrawTargetSkia::DrawSurface support non-Skia DataSourceSurfaces. r=mstange 2013-11-27 12:25:27 +01:00
Markus Stange
217a24a67f Bug 924102 - Add transform filter and remove offset filter. r=Bas 2013-11-27 12:25:27 +01:00
Markus Stange
f96cfc66b0 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
3b8525bea8 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
33b335d52c Bug 924102 - Add a software FilterNode implementation. r=Bas 2013-11-27 12:22:46 +01:00
Markus Stange
73ad1884c7 Bug 924102 - Let AlphaBoxBlur take separate blur radius parameters for X and Y. r=Bas 2013-11-27 12:22:36 +01:00
Markus Stange
189b8ecb59 Bug 924102 - Add filter processing code for many SVG filters. r=Bas 2013-11-27 12:22:27 +01:00
Markus Stange
4d87c8a4dc Bug 924102 - Add a class that renders turbulence as specified for SVG filters. r=Bas 2013-11-27 12:22:21 +01:00
Markus Stange
573590e3f2 Bug 924102 - Add a SIMD.h header that implements some SIMD functions with SSE2 and scalar code. r=Bas 2013-11-27 12:22:13 +01:00
Markus Stange
94888352a2 Bug 924102 - Add filter API to Moz2D. r=Bas, r=mattwoodrow 2013-11-27 12:22:07 +01:00
Markus Stange
3587fa2bcf Bug 924102 - Add the types Point3D and Matrix5x4. r=Bas 2013-11-27 12:22:02 +01:00
Bas Schouten
1e2183726f Bug 937145 - Allow Moz2D recordings to grab the existing content of a DrawTarget. r=BenWa 2013-11-27 12:21:57 +01:00
Bas Schouten
7cbc0c4e6f Bug 942268 - Add RecordedEvent::GetEventName. r=mstange 2013-11-27 12:21:49 +01:00
Markus Stange
294abc7618 Bug 930956 - Make DrawTargetCG::DrawSurface support painting a DataSourceSurface that is not a DataSourceSurfaceCG. r=jrmuizel, r=Bas 2013-11-27 12:21:43 +01:00
Markus Stange
1043a4fcd9 Bug 943614 - Make sure that SourceSurfaceCG::GetDataSurface always returns a surface that has GetType() == SURFACE_DATA. r=Bas 2013-11-27 12:21:34 +01:00
Markus Stange
3a26d173d3 Bug 943614 - Make sure that SourceSurfaceCairo::GetDataSurface always returns a surface that has GetType() == SURFACE_DATA. r=Bas 2013-11-27 12:21:27 +01:00
Markus Stange
41793bc45b Bug 943614 - Make sure that DataSourceSurface::GetDataSurface always returns a surface that has GetType() == SURFACE_DATA. r=Bas 2013-11-27 12:21:21 +01:00
Bas Schouten
9b3b991e36 Bug 943351: Make sure to clear any existing paths before getting the glyph path off a context. r=BenWa 2013-11-26 23:27:05 +01:00
Steven Michaud
0b4c3ee74e Bug 925448 - Stop CGImageRef external data being deleted prematurely. r=bgirard,bas 2013-11-26 12:41:32 -06:00
Matt Woodrow
c49de95f30 Bug 940845 - Part 4: Add BlurRectangle to gfxAlphaBoxBlur and use it. r=roc 2013-11-26 12:08:29 +13:00
Birunthan Mohanathas
0816e609ee Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan
--HG--
extra : rebase_source : 8ace754e117a12e2599f5a90030f13a3a7064fed
2013-11-25 14:02:47 -05:00
Andreas Gal
922244102f Bug 933567 - Clean up Mask implementation a bit. r=mattwoodrow 2013-11-25 09:22:33 -05:00
Kevin Simons
f17db69985 Bug 933567 - Implement MaskSurface for Skia. r=mattwoodrow 2013-11-25 09:20:56 -05:00
Trevor Saunders
280dc2e3ce bug 938025 - part 1 - get rid of some static constructors r=bz r=bjacob 2013-11-22 14:45:50 -05:00
Markus Stange
d74cea0c78 Bug 921495 - Speed up blurring by processing and packing 16 pixels at a time. r=Bas 2013-11-21 17:44:52 +01:00
Markus Stange
71bf8a9d4d Bug 921495 - Make AlphaBoxBlur round correctly s. r=Bas 2013-11-21 17:44:41 +01:00
Markus Stange
e064a30af7 Bug 936459 - Move Tools.h include into the right file. r=Bas
--HG--
extra : rebase_source : 9c976b595a2dd22511184f1341a4d4192e375b50
2013-11-20 17:20:51 +01:00
Markus Stange
a2f88a73a5 Bug 936458 - Use MOZ_ASSERT instead of NS_ABORT_IF_FALSE in BasePoint3D.h and BasePoint4D.h because NS_ABORT_IF_FALSE is not in mfbt and can't be used in standalone moz2d. r=Bas
--HG--
extra : rebase_source : 6ce1149a1c99feb0892a858851350b0e5119fc1a
2013-11-20 17:20:50 +01:00
Markus Stange
8e374e30b3 Bug 935923 - Rename AlphaMode helper function to D2DAlphaModeForFormat and replace most of its uses with D2DPixelFormat. r=Bas
--HG--
extra : rebase_source : c01334a631fae221d474c89502057892c9f540fd
2013-11-20 17:20:50 +01:00
Benoit Girard
491b501b80 Bug 939950 - Build gfx/2d in unified mode. r=bjacob,ehsan,bas
--HG--
extra : rebase_source : 4776cc15a2de124149624b8297ae0c4953621eae
2013-11-18 16:45:14 -05:00
Mike Hommey
a65383e1e9 Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
01f121af07 Bug 939622 - Remove LIBXUL_LIBRARY for intermediate libs that end up in gkmedias. r=gps
What LIBXUL_LIBRARY does is:
  - Imply FORCE_STATIC_LIB
  - Build with -DIMPL_LIBXUL
  - Build with -DMOZILLA_INTERNAL_API

Those intermediate libs that end up in gkmedias and have LIBXUL_LIBRARY defined
in their moz.build are all third party code (or handled like third party code).
Besides FORCE_STATIC_LIB, none of the side effects of LIBXUL_LIBRARY should be
needed.
2013-11-19 11:47:49 +09:00
Mike Hommey
bb6779efe3 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
d7b6f95761 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Jonathan Watt
df7ba9b983 Bug 939604 - Add support for more types to mozilla::gfx::Log. r=Bas 2013-11-18 14:29:54 +00:00
Bas Schouten
7fe1ba8861 Bug 939049 - Part 2: Add generic ComputeLength code for backends with no such functionality. r=jrmuizel 2013-11-11 12:42:07 +13:00
John Schoenick
f7ac4aa0fa Bug 939355 - Include string.h in gfx/2d/unittest/TestBugs.cpp r=bgirard 2013-11-17 18:55:16 +01:00
Robert O'Callahan
151d25e50f Bug 938316. Work around fractional texture resampling issues by switching to NEAREST sampling when we're doing a pixel-aligned compositing operation. r=jrmuizel
--HG--
extra : rebase_source : ec49c8c8993af402a24b57efbaea743d39dcd89c
2013-11-13 23:56:11 +13:00
Benoit Girard
789736d76d Bug 918671 - Add test for cairo clipping bug. r=jrmuizel 2013-11-12 16:47:40 -05:00
Kartikaya Gupta
ea2825ee9e Bug 937843 - Make some constructor arguments const. r=BenWa 2013-11-13 13:22:15 -05:00
Jaroslav Kopecký
d4a7a7559c Bug 937978 - Make SetPermitSubpixelAA a nop with --enable-system-cairo (like bug 623797). r=mattwoodrow 2013-11-13 08:23:19 -05:00
Rik Cabanier
076edebb34 Bug 932500 - PathD2D::TransformedCopyToBuilder ignores even odd fill. r=Bas 2013-11-12 08:47:24 -05:00
Matt Woodrow
f477146890 Bug 926023 - Use the value of SetPermitSubpixelAA for DrawTargetCairo. r=Bas 2013-11-05 17:50:56 +13:00
David Anderson
159a927b97 Support 3D transforms in the basic compositor (bug 935265, r=mattwoodrow). 2013-11-11 15:53:29 -08:00
Ehsan Akhgari
ce2bb30fb7 Bug 936446 - Only define HasCPUIDBit on 32-bit platforms; r=jrmuizel
--HG--
extra : rebase_source : 0728a7247cbb23e34cd7c6d2bfa57c5359ccef63
2013-11-08 18:00:21 -05:00
Jeff Muizelaar
0080d602b0 Bug 929471. Fix missing include for 10.9?
Also add a license header

--HG--
extra : rebase_source : ec01be0ed7a3b4b29cc9307f3a25f77512d27a95
2013-11-08 13:56:52 -05:00
Matt Woodrow
8a016cc126 Bug 935297 - Part 5: Implement StreamToSink on CG. r=Bas,jrmuizel
--HG--
extra : rebase_source : 81c9ba1c486ef7892f400a18707cdb3440c534e7
2013-11-06 15:52:51 +13:00
Jeff Muizelaar
2a66d6e9b2 Bug 929471. Make DrawTargetCG independent from QuartzSupport.mm. r=bgirard 2013-11-07 22:53:54 -05:00
Jeff Muizelaar
bb0dd83bc0 Bug 929471. Make CGLTexImageIOSurface2D take a CGLContextObj instead of a NSOpenGLContext. r=bgirard 2013-11-07 22:53:54 -05:00
Nicholas Cameron
54557b996d Bug 934842. CopySurface for data source surfaces. r=Bas 2013-11-08 14:39:34 +13:00
Bas Schouten
faba2230bb Bug 935994: Adjust strokestyle creation code. r=jrmuizel 2013-11-07 20:40:39 +01:00
Matt Woodrow
cf14236df1 Bug 935297 - Followup to fix build, add ToPoint helper 2013-11-07 22:50:10 +13:00
Bas Schouten
8640e4467b Bug 935297 - Part 4: Implement new API to allow streaming paths to arbitrary sinks on Skia. r=mattwoodrow 2013-11-07 22:11:48 +13:00
Bas Schouten
94cd1c5814 Bug 935297 - Part 3: Implement new API to allow streaming paths to arbitrary sinks on Cairo. r=mattwoodrow 2013-11-07 22:11:26 +13:00
Bas Schouten
f06a68051c Bug 935297 - Part 2: Implement new API to allow streaming paths to arbitrary sinks on Direct2D. r=mattwoodrow 2013-11-07 22:10:53 +13:00
Bas Schouten
d262a3f62b Bug 935297 - Part 1: Add new API to allow streaming paths to arbitrary sinks. r=mattwoodrow 2013-11-07 22:10:12 +13:00
Benoit Girard
03845423d9 Bug 935701 - Get drawing recording working on b2g. r=bas
--HG--
extra : rebase_source : 783627519f291d187552b464689315ce2697df95
2013-11-06 18:11:18 -05:00
Matt Woodrow
c42d703d5e Backout c99d15a060e2 for causing windows Ru reftest failures. 2013-11-05 20:00:05 +13:00
Matt Woodrow
636d5e950e Bug 926023 - Use the value of SetPermitSubpixelAA for DrawTargetCairo. r=Bas 2013-11-05 17:50:56 +13:00
Andreas Gal
5892a14663 Bug 934297 - Remove snapping support from Moz2D. r=mattwoodrow 2013-11-03 15:06:12 -08:00
Matt Woodrow
60bb7765a1 Bug 922942 - Avoid crashes with PointInFill. r=Bas
--HG--
extra : rebase_source : cf209258a71342590c3d3488912d85df86a14b8b
2013-11-04 14:47:18 +13:00
Bas Schouten
d58038dce4 Bug 934287: Add size and for data DrawTarget creation functions. r=mattwoodrow 2013-11-04 00:57:36 +01:00
Bas Schouten
196f0e4ade Bug 934286: Ifdef Mozilla specific cairo function usage. r=mattwoodrow 2013-11-04 00:57:36 +01:00
Bas Schouten
c05f717a33 Bug 933030 - Addition: Remove external dependency added to Moz2D. r=mattwoodrow 2013-11-04 00:57:35 +01:00
Jonathan Watt
1881aa492f Bug 934157 - Fix BaseRect::IsFinite() to actually work. r=Bas 2013-11-03 20:47:05 +00:00
Andreas Gal
6f6a8a6867 Bug 933030 - Eliminate thebes use from CanvasRenderingContext2D.cpp r=mattwoodrow 2013-11-03 08:28:30 -08:00
Jonathan Watt
284d89f828 Bug 931996 - Add an AppendEllipseToPath helper to Moz2D. r=Bas 2013-11-01 13:30:00 +00:00
Jonathan Watt
ab8c22c592 Bug 931915, part 1 - Add an AppendRoundedRectToPath helper to Moz2D. r=Bas 2013-11-01 13:29:44 +00:00
Ed Morley
1c8e88368a Backed out changeset d9aa2d2a9939 (bug 931915) for failures linking on Windows on a CLOSED TREE 2013-11-01 14:35:22 +00:00
Ed Morley
771acee8e3 Backed out changeset 0fdae4f78c1a (bug 931996) 2013-11-01 14:34:48 +00:00
James Willcox
37a537638d Bug 927254 - Purge SkiaGL texture cache on memory pressure r=gwright
--HG--
extra : rebase_source : 960582a88532e752c2bcc4bbcdf0899eb0cbe3b8
2013-11-01 08:52:06 -05:00
Jonathan Watt
66cff4272e Bug 931996 - Add an AppendEllipseToPath helper to Moz2D. r=Bas
--HG--
extra : rebase_source : 75592379b93e5574ff1bb4116ce8b90b62c4f8a1
2013-11-01 13:30:00 +00:00
Jonathan Watt
0690b06ee5 Bug 931915, part 1 - Add an AppendRoundedRectToPath helper to Moz2D. r=Bas
--HG--
extra : rebase_source : 67835ef53a446f37919d34021fcb80aa38dd7da8
2013-11-01 13:29:44 +00:00
Andreas Gal
964fcb247c Bug 933584 - Implement OptimizeSourceSurface for skia. r=mattwoodrow 2013-11-01 09:13:36 -04:00
Wes Kocher
1916f92838 Backed out changeset 428bea088d2b (bug 927254) for build bustage 2013-10-31 20:47:49 -07:00
James Willcox
ad1de4d818 Bug 927254 - Purge SkiaGL texture cache on memory pressure r=gwright
--HG--
extra : rebase_source : 0b6c68c129319c96ad3056ab7b6321c04c7fbcb5
2013-10-31 10:45:41 -05:00
Andreas Gal
ce2674b5a4 Bug 929299 - Fix DrawTargetSkia to not copy and render in place. r=gwright 2013-10-31 22:48:46 -04:00
Daniel Holbert
0b12c8eb5f Bug 839269: Mark gfx/2d as FAIL_ON_WARNINGS. r=jmuizelaar 2013-10-31 19:39:03 -07:00
Jonathan Watt
1ffa3026db Bug 931769, part 2 - Add IsSingular and operator*= methods to Matrix. r=Bas 2013-10-29 08:14:40 +00:00
Robert O'Callahan
8d5377f495 Bug 924679. Part 4: Add Factory::CreateSourceSurfaceForCairoSurface. r=mattwoodrow
--HG--
extra : rebase_source : 0c9187e8b9597e47e9d0d63d6da757db9a8c8a5c
2013-10-25 23:25:40 +02:00
Mike Hommey
1d566f7586 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Brian O'Keefe
4c98f61956 Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00
Mike Hommey
61124c1afc Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps 2013-10-24 08:05:43 +09:00
Mike Hommey
e2ae65f67a Bug 913268 - Make CPP_SOURCES a StrictOrderingOnAppendList. r=mshal 2013-10-24 08:00:23 +09:00
George Wright
bbee419bc7 Bug 920160 - Add prefs for SkiaGL cache size r=snorp
--HG--
extra : rebase_source : 410192610d7311dead4132d2fee8fbd3fe062951
2013-10-22 14:15:24 -05:00
Matt Woodrow
3c5391d9b3 Bug 928727 - Don't clear before drawing with OPERATOR_SOURCE in DrawTargetCairo, since we know all required pixels will be clear already. r=jrmuizel 2013-10-22 12:11:30 +02:00
Matt Woodrow
ecc44651c4 Bug 928727 - Share code for getting the user-space clip bounds in DrawTargetCairo. r=jrmuizel 2013-10-22 12:11:30 +02:00
Benoit Girard
13dc5bcf12 Bug 921212 - Rotate buffer in place to avoid gralloc surface allocation. r=Bas 2013-10-11 16:47:47 -04:00
Benoit Girard
4261460926 Bug 928123 - Avoid PushGroup during simple FillRect. r=Bas
--HG--
extra : rebase_source : f1beea7a8281ed78ab6eb22373913b0484a5430e
2013-10-17 19:08:20 -04:00
Ryan VanderMeulen
1ab6618e4f Backed out changeset 6150269410b2 (bug 921212) for bustage on a CLOSED TREE. 2013-10-18 10:21:38 -04:00
Benoit Girard
15eddaacf4 Bug 921212 - Rotate buffer in place to avoid gralloc surface allocation. r=Bas 2013-10-11 16:47:47 -04:00
Matt Woodrow
f9c1c3c562 Bug 922942 - Update BufferTextureClients using Azure. r=nical 2013-10-16 14:00:30 +13:00
Matt Woodrow
08ccf6da21 Bug 926258 - Implement a Moz2D version of gfxPath. r=Bas 2013-10-15 16:23:21 +13:00
Matt Woodrow
e36066d8b7 Bug 740598 - Add optimized version of CopyRect for the cairo backend. r=Bas 2013-10-15 14:55:16 +13:00
Matt Woodrow
a48e364e4e Bug 740598 - Add CopyRect API to Moz2D. r=Bas 2013-10-15 14:55:15 +13:00
Daniel Holbert
f495a078a1 Bug 924749: Make loop variable signed-ness match the type they're compared against, to fix signed/unsigned warnings in PathCairo.cpp. r=Bas 2013-10-11 08:55:03 -07:00
Markus Stange
df71b06fc0 Bug 902591 - Choose the number of linear gradient repetitions in such a way that the whole extents rect is filled. Substantial parts of the code in this patch were written by roc in bug 508730. r=mattwoodrow
--HG--
extra : rebase_source : d7f99adc56ef4d81e14bf3ece6761dd8d5c476ed
2013-10-11 10:26:40 -04:00
Daniel Holbert
f1c1a2acc4 Bug 925140: Remove nsAlgorithm.h #includes from gfx/2d. r=tn 2013-10-10 15:18:42 -07:00
Matt Woodrow
a567cd9101 Bug 923309 - Don't flush CGContext drawing to the window when we're only meant to be completing any pending drawing. r=Bas 2013-10-10 17:44:09 +13:00
Daniel Holbert
cffbdc9d38 Backout e67dad88f860 and assertion-count-tweak followups (bug 914919), since including nsDebug.h in gfx/2d causes issues with some skia headers. 2013-10-09 17:03:35 -07:00
Josh Aas
268ba648e8 Bug 924444: Fix various integer comparison warnings in QuartzSupport.mm. r=mstange 2013-10-09 00:42:26 -05:00
George Wright
7e8e5cbe30 Bug 915145 - Always use soft clipping with Skia r=snorp 2013-10-08 15:05:57 -04:00
Josh Aas
2b6f6de4f9 Bug 923945: Fix a memory leak when fetching OS X system color space. Also move system color space retrieval code from deprecated Color Manager APIs to Core Graphics. r=mstange 2013-10-07 16:03:19 -05:00
Ms2ger
7ffcd856c2 Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02:00
Matt Woodrow
44a31062a6 Bug 920571 - Followup to copy all the pixel on the last line. r=bustage 2013-09-30 17:14:30 +13:00
Matt Woodrow
d03a83ccb9 Bug 920571 - Don't read from the trailing stride on the last row of pixels when copying image data in SourceSurfaceCG. r=jrmuizel 2013-09-30 14:42:45 +13:00
Bas Schouten
f15be71319 Bug 918613: Convert cairo path code to use cairo_path_t. r=jrmuizel 2013-09-28 16:20:24 +02:00
Markus Stange
d271c7e26c Bug 921132 - Make CopyDataToCairoSurface respect stride. r=ncameron 2013-09-27 17:21:09 +02:00
Markus Stange
23c401886a Bug 912945 - Use aligned data storage for DrawTargetCG. r=jrmuizel 2013-09-27 17:20:28 +02:00
Markus Stange
9e72e7e0ef Bug 912944 - Handle different surface formats in Azure CG source surfaces. r=jrmuizel 2013-09-27 17:19:33 +02:00
Markus Stange
dae7e34555 Bug 921501 - Call CGBitmapContextGetHeight when getting the height for Cairo Quartz surfaces. r=Bas 2013-09-27 17:18:05 +02:00
Anthony Jones
942c8eb527 Bug 920847 - Remove gfxSize reference from Azure; r=kats 2013-09-27 14:24:46 +12:00
Anthony Jones
50b5f8ebf4 Bug 918138 - Move Borrowed*Context to a separate header file; r=mattwoodrow 2013-09-23 15:28:16 +12:00
Steven Michaud
0814c899cc Bug 884014 - Can't build QuartzSupport with 10.9 SDK. r=bgirard 2013-09-20 10:56:45 -05:00
Anthony Jones
d37823e898 Bug 740200 - BorrowedContext support for cairo; r=mattwoodrow 2013-09-20 14:00:35 +12:00
Rik Cabanier
cf484321c1 Bug 917943 - Fix color-burn and color-dodge blend modes for Direct2D. r=Bas 2013-09-19 14:48:30 -04:00
Phil Ringnalda
aa84227374 Backed out 10 changesets (bug 907926, bug 911393, bug 740200, bug 917703) for b2g build bustage
CLOSED TREE

Backed out changeset ae02054863f7 (bug 907926)
Backed out changeset 8fcdbbc2dac2 (bug 917703)
Backed out changeset aa253a1fd7e5 (bug 911393)
Backed out changeset ec63e6d6d874 (bug 907926)
Backed out changeset 0042a2722aab (bug 907926)
Backed out changeset dc8bddfca5f1 (bug 740200)
Backed out changeset 439ff7e64d35 (bug 740200)
Backed out changeset d871c0d61510 (bug 740200)
Backed out changeset 3b248c5a0dc2 (bug 740200)
Backed out changeset 3466e81d3a41 (bug 740200)
2013-09-18 23:08:41 -07:00
Anthony Jones
86f42dbada Bug 740200 - BorrowedContext support for cairo; r=mattwoodrow 2013-09-19 16:29:51 +12:00
Ehsan Akhgari
8060e7d6d7 Bug 915735 - Part 0: Stop pulling in all of jsapi.h into gkmedias.dll; rs=bjacob 2013-09-18 16:07:56 -04:00
David Zbarsky
4a408c479e [Bug 914955] Fix build warnings in Moz2D r=bas 2013-09-15 14:23:51 -04:00
Corey Ford
1a8da8309d Bug 914919 - Downgrade BaseRect::Set*Edge assertions to be non-fatal. r=dholbert 2013-09-11 16:27:14 -07:00
Nathan Froyd
a26a4e9c87 Bug 913640 - sprinkle MOZ_CONSTEXPR on gfx's typed units to reduce static constructors; r=kats 2013-09-13 12:34:20 -04:00
Corey Ford
931b7f1c89 Bug 897105 - Part 1: Add RectTyped::operator== to allow use in IPDL structs. r=roc 2013-09-11 21:09:43 -07:00
Matt Woodrow
8b263a5107 Bug 907926 - Avoid pushing a group if we can in DrawTargetCairo::DrawSurface. r=Bas 2013-09-11 17:08:53 +12:00
Matt Woodrow
fb74f07a20 Bug 907926 - Add support for windows surfaces in DrawTargetCairo size lookup. r=Bas 2013-09-11 17:08:52 +12:00
Vladan Djeric
7a2465ff79 Backed out changeset 78f1f02b6b36 (bug 907926) for TART regressions 2013-09-11 13:32:23 -04:00
Vladan Djeric
36d2789a58 Backed out changeset b5d9ee3b3538 (bug 907926) for TART regressions 2013-09-11 13:31:24 -04:00
Kartikaya Gupta
9f0a4def20 Bug 909281 - Add some strongly-typed conversion functions for margins and use them in RecordFrameMetrics. r=BenWa 2013-09-11 13:20:43 -04:00
Matt Woodrow
7b34ab16e3 Bug 907926 - Avoid pushing a group if we can in DrawTargetCairo::DrawSurface. r=Bas 2013-09-11 17:08:53 +12:00
Matt Woodrow
15087d8ea8 Bug 907926 - Add support for windows surfaces in DrawTargetCairo size lookup. r=Bas 2013-09-11 17:08:52 +12:00
Milan Sreckovic
a136a3f4b4 Bug 913614 - When the input is invalid, skip the work as we won't get anything useful anyway. r=jmuizelaar 2013-09-06 12:22:20 -07:00
David Zbarsky
1195895c26 Fix an include guard in gfx/2d, no bug, r=me 2013-09-05 16:50:52 -04:00
Jeff Muizelaar
36dde4f467 Bug 897007. Implement ScaledFontMac::GetFontFileData. r=bas
This implements GetFontFileData by reconstructing a truetype font from the
table data.

--HG--
extra : rebase_source : 02a7c5af079854cce02c1e9794a4da6f1fc8bce1
2013-07-24 16:23:57 -04:00
Brian Birtles
f7bbe02558 Bug 912305 - Fix documentation of RadialGradientPattern constructor; r=bas, DONTBUILD (comment-only) 2013-09-05 09:59:54 +09:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Kartikaya Gupta
b77f1bc2b4 Bug 910322 - Strongly type the viewport size in nsViewportInfo. r=mbrubeck, Ms2ger 2013-09-03 15:12:24 -04:00
James Willcox
18bcc8779e Bug 850263 - Use reasonable SkiaGL cache size and share between instances r=mattwoodrow
--HG--
extra : rebase_source : 11a2e5ce90a693abdac91d5ca1308aaed3a29403
2013-08-28 10:08:10 -04:00
Brian O'Keefe
4f68eb9b02 Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Matt Woodrow
829d88b2b4 Bug 909128 - Support snapshot source surfaces in DrawTargetCG's CopySurface. r=jrmuizel 2013-08-28 10:54:52 +12:00
Kartikaya Gupta
c9052e6e85 Bug 885023 - Convert mFrameMetrics.mZoom to a CSSToScreenScale. r=BenWa,k17e
The mFrameMetrics.mZoom was previously a "resolution-independent" zoom,
which meant it had to always be multiplied by the CalculateIntrinsicScale()
value to be useful. This patch converts it to a "resolution-dependent" zoom,
and includes the intrinsic scale multiplier already. This means it needs
to be updated if either the viewport or composition bounds (which determine
the intrinsic scale) change, but there are only a few places where this
happens and it makes the rest of the code cleaner.
2013-08-26 09:50:30 -04:00
Matt Woodrow
108633936a Bug 907011 - Don't copy surface contents into the snapshot when destroying DrawTargetCairo. r=Bas 2013-08-23 16:54:03 +12:00
Matt Woodrow
756511b29c Bug 907011 - Expose cairo objects from gfxContext when using Azure/cairo. r=Bas 2013-08-23 16:53:53 +12:00
Kartikaya Gupta
e28825b675 Bug 907906 - Finish templating the gfx::Margin type, and add a gfx::IntMargin type to go with it. r=Cwiiis 2013-08-22 12:41:51 -04:00
Nicholas Cameron
2e6bc9e9b5 Bug 907901. Remove NS_lround from rect.h. r=Bas 2013-08-22 21:10:35 +12:00
Ms2ger
4922ccbc0a Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger
dba42e4001 Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg 2013-08-22 08:56:00 +02:00
Nicholas Cameron
b85b496768 Bug 903816. Fixups in non-layers files. r=roc 2013-08-12 11:15:10 +12:00
Matt Woodrow
dec5eff0fb Bug 907011 - Implement CopyGlyphsToBuilder for Cairo Azure backend. r=Bas 2013-08-21 11:58:27 +12:00
Matt Woodrow
c092c3a063 Bug 907011 - Implement pattern matrices for the Cairo Azure backend. r=Bas 2013-08-21 11:57:57 +12:00
Matt Woodrow
0b9be64593 Bug 907011 - Implement antialias mode for the Cairo Azure backend. r=Bas 2013-08-21 11:56:27 +12:00
Matt Woodrow
0fd25a1455 Bug 904884 - Assign RAII class instances to variables in PathCario so that they stay alive for the correct scope. r=nrc 2013-08-21 11:55:53 +12:00
Matt Woodrow
445103a1d8 Bug 904981 - Clear surface devices offsets in DrawTargetCairo since we don't use them. r=Bas 2013-08-21 11:52:20 +12:00
Ryan VanderMeulen
976b11c6aa Merge m-c to inbound. 2013-08-16 21:58:51 -04:00
Botond Ballo
728be070e1 Bug 895905 - Fixed a compiler error on GCC 4.7. r=Bas 2013-08-08 15:56:09 -04:00
Milan Sreckovic
d0ff790837 Bug 905219 - BaseRect::IsFinite() now uses std::isfinite(), rather than NS_finite(). r=jrmuizel 2013-08-14 12:29:47 -04:00
Milan Sreckovic
1e3436bf95 Bug 903526 - Add BaseRect::IsFinite() method. r=bas 2013-08-13 14:48:17 -04:00
Phil Ringnalda
be5f1b23e0 Back out d393cfeb5dbf:9f82224bb8a3 (bug 903816) for Android reftest failures
CLOSED TREE
2013-08-11 19:21:17 -07:00
Nicholas Cameron
a23e8df091 Bug 903816. Fixups in non-layers files. r=roc 2013-08-12 11:15:10 +12:00
Jeff Muizelaar
8c90099fc3 Bug 897532. Add support for better filtering in Azure. r=bas
This fixes the quality regression on OS X.

--HG--
extra : rebase_source : f045caa95800d05098ea49e05fe90fc933f8849f
2013-07-31 14:46:25 -04:00
Matt Brubeck
ce29854576 Back out d10581fd8202 (bug 897532) on suspicion of causing intermittent pgo-only Metro crashes 2013-08-08 14:58:00 -07:00
Jeff Muizelaar
6ecc49ff82 Bug 897532. Add support for better filtering in Azure. r=bas
This fixes the quality regression on OS X.

--HG--
extra : rebase_source : afbf0c332c23933096fa97a022698dc992908c12
2013-07-31 14:46:25 -04:00
Matt Woodrow
a973a3feba Bug 881634 - Only use a single snapshot with DrawTargetSkia. r=Bas 2013-08-01 21:12:16 -04:00
Wes Kocher
c62360f0a2 Backed out 6 changesets (bug 900133, bug 881634, bug 893302) for build bustage
Backed out changeset 49632bc14e27 (bug 900133)
Backed out changeset 036780fccc89 (bug 900133)
Backed out changeset b8db58f5e209 (bug 893302)
Backed out changeset 67c3e4204e44 (bug 893302)
Backed out changeset a857a4246dd9 (bug 900133)
Backed out changeset e0e2e27af6c1 (bug 881634)
2013-08-02 20:35:39 -07:00
Matt Woodrow
11a9268d36 Bug 881634 - Only use a single snapshot with DrawTargetSkia. r=Bas 2013-08-01 21:12:16 -04:00
Matt Woodrow
ec36c050ca Bug 893824 - Don't allow 0 sized SourceSurfaces with Moz2D. r=jrmuizel
--HG--
extra : rebase_source : dc5e18fe96966a86cbb3b2fbaa508247cbe73142
2013-07-15 13:28:04 -04:00
Ehsan Akhgari
5ee21d6d3f Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
9854ac6166 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Jeff Muizelaar
aca5a086d7 Bug 898803. Add support for different surface formats to DrawTargetCG. r=joe
This causes us to get cleartype when drawing with alpha with CG.

--HG--
extra : rebase_source : 611c5b76ce0ea926ea8e1e26501ca3d8d9a6b452
2013-07-29 15:01:29 -04:00
John Daggett
852023e695 Bug 898267 - support font smoothing in Azure CG backend. r=jrmuizel 2013-07-30 05:00:53 +09:00
Nicolas Silva
a86c11b476 Bug 892505 - Implement gfx::Factory::CreateDataSourceSurface. r=bas 2013-07-17 16:07:44 +02:00
Joshua Cranmer
7b9a04da79 Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Birunthan Mohanathas
6e206a8696 Bug 784739 - Switch from NULL to nullptr in gfx/2d/; r=Bas
--HG--
extra : rebase_source : 340bb0ff65c56c23bf2a4c8e24d082e938997831
2013-07-20 11:48:55 +03:00
Chris Lord
3404ab9f9d Bug 886298 - Add a typed-units Margin. r=kats 2013-07-22 09:50:11 +01:00
Jeff Muizelaar
b4d1d2039a Bug 896129. Use CGContextDrawImage when appropriate in FillRect(). r=mattwoodrow
This fixes the element-paint-paintserversize-rounding-02.html reftest.
2013-07-19 20:39:31 -04:00
Jeff Muizelaar
c12f4d9523 Bug 896290. Support drawing with antialaising in DrawTargetCG. r=mattwoodrow 2013-07-19 08:18:18 -04:00
Jacek Caban
657a4ffbc0 Bug 883004 - GCC bustage fix 2013-07-20 12:37:04 +02:00
Jeff Muizelaar
ab926abff4 Bug 895646. Use the pattern transform when drawing gradients with DrawTargetCG. r=mattwoodrow 2013-07-16 11:27:12 -04:00
Jeff Muizelaar
f42d9b353e Bug 893977. Support repeating gradients in the CoreGraphics backend. r=mattwoordow
CoreGraphics doesn't support repeating gradients natively so we have to
manually repeat them. This change missing support for interpolating a
stop for the center if it doesn't line up correctly. That will come later.
2013-07-18 20:08:51 -04:00
Wes Kocher
aecc20ef97 Backout df425bca5665 (bug 893977) for breaking the build on a CLOSED TREE 2013-07-18 21:16:20 -07:00
Wes Kocher
f131bbbf4f Backout 7c2fd5db93b2 (bug bug 895646) for breaking the build on a CLOSED TREE 2013-07-18 21:15:29 -07:00
Jeff Muizelaar
6f514fa9fe Bug 895646. Use the pattern transform when drawing gradients with DrawTargetCG. r=mattwoodrow 2013-07-16 11:27:12 -04:00
Jeff Muizelaar
893fc26d2b Bug 893977. Support repeating gradients in the CoreGraphics backend. r=mattwoordow
CoreGraphics doesn't support repeating gradients natively so we have to
manually repeat them. This change missing support for interpolating a
stop for the center if it doesn't line up correctly. That will come later.
2013-07-18 20:08:51 -04:00
James Willcox
15f9e70cea Bug 895036 - Lower the SkiaGL texture cache size r=gwright 2013-07-09 16:12:49 -04:00
James Willcox
0b17330d44 Bug 885632 - Always use soft clipping with SkiaGL r=mattwoodrow 2013-06-21 15:28:10 -04:00
Jeff Muizelaar
390cefe9d9 Bug 895078. Implement ScaledFontMac::CopyGlyphsToBuilder. r=mattwoodrow
--HG--
extra : rebase_source : e18c584de856676b84c9aac50021f255185a677a
2013-07-16 11:25:49 -04:00
Matt Woodrow
749d37fb57 Bug 875232 - Make alpha channel optional for MacIOSurface. r=BenWa 2013-07-17 23:24:14 -04:00
Bas Schouten
7c1ee02372 Bug 883004 - Part 3: Add Direct2D 1.1 backend to Moz2D. r=jrmuizel 2013-07-17 14:12:22 +02:00
Bas Schouten
1ab8695848 Bug 883004 - Part 2: Move Direct2D 1.1 detection to configure.in r=glandium 2013-07-17 14:12:05 +02:00
Matt Woodrow
9da84efe22 Bug 892966 - Make gfxQuartzNativeDrawing support Moz2D surfaces. r=jrmuizel 2013-07-12 17:19:29 -04:00
Matt Woodrow
ec01e9d892 Bug 892966 - Setup dashing correctly in DrawTargetCG::StrokeRect. r=jrmuizel 2013-07-12 17:19:28 -04:00
Matt Woodrow
1a968529e7 Bug 892966 - Take a reference to the CGContext when constructing a DrawTargetCG from one. r=jrmuizel 2013-07-12 17:19:27 -04:00
Phil Ringnalda
8dcbf36c38 Back out 7160624804ff:69062da26093 (bug 892966) on suspicion of mochitest-4 test_bug767779.html bustage
CLOSED TREE
2013-07-12 16:39:36 -07:00
Jeff Muizelaar
aa9399ea9f Bug 892968. Implement POINT filtering properly in DrawTargetCG. r=mattwoodrow
--HG--
extra : rebase_source : 13528e2c21f96d9c5d5dba6f44593869033479f2
2013-07-12 10:01:58 -04:00
Matt Woodrow
386a557051 Bug 892966 - Make gfxQuartzNativeDrawing support Moz2D surfaces. r=jrmuizel 2013-07-12 17:19:29 -04:00
Matt Woodrow
125c1ad96b Bug 892966 - Implement CreateSourceSurfaceFromNativeSurface for DrawTargetCG and use it instead of copying pixel data. r=jrmuizel 2013-07-12 17:19:28 -04:00
Matt Woodrow
a452904bad Bug 892966 - Setup dashing correctly in DrawTargetCG::StrokeRect. r=jrmuizel 2013-07-12 17:19:28 -04:00
Matt Woodrow
704e428266 Bug 892966 - Take a reference to the CGContext when constructing a DrawTargetCG from one. r=jrmuizel 2013-07-12 17:19:27 -04:00
Jeff Muizelaar
d2982ae47f Bug 892964. Rewrite DrawTargetCG::MaskSurface to avoid using FillRect(). r=mattwoodrow
With FillRect we were setting the transform twice.

The patch looks really bad because I needed to move the implementation of
MaskSurface so that it was below the helper methods.

The actual change is:

-  FillRect(Rect(aOffset.x, aOffset.y, size.width, size.height), aSource, aDrawOptions);
-
+  if (isGradient(aSource)) {
+    // we shouldn't need to clip to an additional rectangle
+    // as the cliping to the mask should be sufficient.
+    DrawGradient(cg, aSource);
+  } else {
+    SetFillFromPattern(cg, mColorSpace, aSource);
+    CGContextFillRect(cg, CGRectMake(aOffset.x, aOffset.y, size.width, size.height));
+  }

This also avoids setting up other state like alpha and the unboundness fixer twice.

--HG--
extra : rebase_source : 762f2d94ddaff129d584aab1e1f429ddfea99277
2013-07-08 17:35:56 -04:00
James Kolb
19692ba689 Bug 889693 - Implement MaskSurface in DrawTargetCairo. r=Bas 2013-07-11 10:43:34 -04:00
Jeff Muizelaar
9000441a55 Bug 891660. Add support for Azure on Mac with OMTC. r=mattwoodrow
This is not the best approach but it works for now.  We basically pull the cg
context from gfxASurface and wrap a DrawTarget around it. In the end we'll need
to plumb the DrawTarget through more.

--HG--
rename : dom/ipc/PTabContext.ipdlh => dom/ipc/PContent.ipdl
extra : rebase_source : 49eac0354864ae9f2e7434b8b1efacc37d69fc23
2013-07-09 21:02:41 -04:00
Jeff Muizelaar
dfb3ac3543 Bug 891388. Implement Arc() in PathCG. r=joe
--HG--
extra : rebase_source : 3ebc541ce7407eba02165366bcc754484f65fcaa
2013-07-08 14:28:21 -04:00
Jeff Muizelaar
273bf40ece Bug 790673. Add BorrowedCGContext. r=bas
This can be used to safely get at the underlying CGContext.
2013-07-09 18:55:02 -04:00
Markus Stange
30c87eb8a8 Bug 888288 - Fix some typos in GFX header comments. r=nrc 2013-07-08 21:21:06 -07:00
Emanuel Hoogeveen
a278970cd3 Bug 890714 - Fix mixed line endings. r=joe, r=jesup 2013-07-08 16:33:15 -04:00
Joey Armstrong
a6b9800cfb bug 870407: cleanup bug. r=mshal 2013-07-08 11:53:00 -04:00
Benoit Girard
bc2d13d376 Bug 775459 - Implement hit testing on layer tree + tests. r=kats
--HG--
extra : rebase_source : c596cc4c4dd9810319830ec8105a5e251e9b0ddb
2013-07-02 12:27:17 -04:00
James Willcox
8891401313 Bug 887927 - Hold a ref to DrawTargetSkia within SourceSurfaceSkia r=mattwoodrow 2013-06-28 22:59:19 -04:00
Benoit Jacob
16c6979f6b Bug 875218 - Fix all the Skia leaks! By avoiding addref'ing a second time the GrGLInterface and GrContext r=mattwoodrow 2013-06-17 13:45:04 -04:00
Benoit Jacob
019e7f80e4 Bug 875218 - Refactor the ownership model under DrawTargetSkia, so that DrawTargetSkia now owns a GLContext, and the only reference that the Skia GrGLInterface gets to the non-Skia world is a pointer back to the DrawTargetSkia r=mattwoodrow 2013-06-16 22:07:18 -04:00
Benoit Jacob
d6d404c2d3 Bug 882561 - Add a GenericRefCounted base class to moz2d, will allow moz2d to hold strong references to external objects without adding a dependency r=jwalden 2013-06-16 22:05:14 -04:00
George Wright
deca695bd7 Bug 869178 - Use SkCanvas::drawBitmapRect instead of a bitmap SkShader; it's slightly faster r=snorp 2012-11-15 19:57:40 -05:00
George Wright
d2b4508586 Bug 736276 - Ensure we can never double addref a cairo scaled font in ScaledFontBase r=mattwoodrow 2013-06-28 22:50:59 -04:00
George Wright
050d2d58af Bug 736276 - Only create the SkTypeface in ScaledFontCairo when necessary r=jrmuizel 2013-06-28 22:50:09 -04:00
George Wright
3cc9485feb Bug 736276 - Rename ScaledFontFreeType to ScaledFontCairo, and use Skia's API to create an SkTypeface from a cairo_scaled_font_t r=jrmuizel 2013-06-05 13:48:59 -04:00
George Wright
8ca610b51c Bug 875218 - Ensure the GrContext's lifetime is managed properly by DrawTargetSkia r=bjacob 2013-05-29 14:04:25 -04:00
George Wright
b05c1cf852 Bug 848491 - Update DrawTarget and gfxPlatform to use the new Skia APIs r=mattwoodrow 2013-04-09 15:57:22 -04:00
Joey Armstrong
2e19c976cc bug 870407: move CMMSRCS to mozbuild (file batch #2) r=mshal 2013-07-01 12:32:40 -04:00
Jacek Caban
b3cb48347d Bug 887821 - GCC compilation failure in RadialGradientEffectD2D1.cpp r=jmuizelaar 2013-06-29 12:13:42 +02:00
Jacek Caban
a1d8801b86 Bug 880836 - Fixed 'extra qualification' error on GCC. 2013-06-29 12:13:17 +02:00
Bas Schouten
8cafae9a88 Bug 887916: Implement recording for MaskSurface calls. r=jrmuizel 2013-06-27 20:20:30 +00:00
Jeff Muizelaar
2c1144af61 Bug 886531. Fix MaskSurface implementation on CG. r=bas
The offsets were wrong.

--HG--
extra : rebase_source : 810f88c587e4fbcef377c53c13ee59a4b59cbe66
2013-06-24 17:28:21 -04:00
Justin Wood
c8ef983178 Bug 885855 - [Build bustage] gfx\2d\RadialGradientEffectD2D1.h(9) : fatal error C1083: Cannot open include file: 'd2d1_1.h': No such file or directory. r=gps, f=InvisibleSmiley, f=Bas
--HG--
extra : rebase_source : aea4bba00ffa4701315ff563f31be6425a439a23
2013-06-24 13:29:09 -04:00
Phil Ringnalda
b462ad2131 Merge birch to m-c 2013-06-22 15:50:24 -07:00
Kartikaya Gupta
e6d307eeca Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe 2013-06-21 17:03:56 -04:00
Bas Schouten
9a59bfc1f7 Bug 883004 - Part 1: Add radial gradient effect code. r=jrmuizel 2013-06-21 05:53:23 +02:00
Ryan VanderMeulen
89cd9674cd Backed out 7 changesets (bug 883646) for reftest-ipc failures.
Backed out changeset 2272804a8e71 (bug 883646)
Backed out changeset e39d3bdf847a (bug 883646)
Backed out changeset bf46fc332efe (bug 883646)
Backed out changeset 6bb558c3136f (bug 883646)
Backed out changeset d7d5d16e27e0 (bug 883646)
Backed out changeset 14c73096a132 (bug 883646)
Backed out changeset 89f6185a271b (bug 883646)
2013-06-20 17:36:39 -04:00
Mike Hommey
a8858bb659 Bug 885985 - Missing format string in printf call in gfx/2d/unittest/TestBase.cpp. r=bas 2013-06-22 20:29:39 +09:00
Kartikaya Gupta
bc7a93a250 Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe 2013-06-20 16:10:58 -04:00
Bas Schouten
178c9b506d Bug 878032 - Part 2: Factor out partial bitmap uploading and scaling. r=jrmuizel 2013-06-19 22:48:40 +02:00
Bas Schouten
339613f6ba Bug 878032 - Part 1: Factor out some simle none-RenderTarget dependent functions. r=jrmuizel 2013-06-19 22:48:40 +02:00
Ehsan Akhgari
87dd79fd6e Backed out 2 changesets (bug 878032) because of Windows build bustage
Backed out changeset 3cb61a7d5746 (bug 878032)
Backed out changeset 627c03f469d8 (bug 878032)

Landed on a CLOSED TREE
2013-06-19 17:35:21 -04:00
Bas Schouten
533345357e Bug 878032 - Part 2: Factor out partial bitmap uploading and scaling. r=jrmuizel 2013-06-19 22:48:40 +02:00
Bas Schouten
20fd8ab1d8 Bug 878032 - Part 1: Factor out some simle none-RenderTarget dependent functions. r=jrmuizel 2013-06-19 22:48:40 +02:00
Bas Schouten
1a57f2aa38 Bug 883352 - With OMTC enabled on Metro Firefox, we crash when scrolling. r=jmuizelaar 2013-06-19 08:57:59 -04:00