Commit Graph

1374 Commits

Author SHA1 Message Date
Jacek Caban
4666413d6e Bug 1161642 - Cross compilation fixup. 2015-05-19 11:12:55 +02:00
Matt Woodrow
4b76d233d7 Backout e01d80922187 (Bug 857895) for causing crashes 2015-05-19 10:50:41 +12:00
Mason Chang
9c004e9223 Backout bug 1162824 to backout bug 1155828. r=me 2015-05-18 08:29:40 -07:00
Jonathan Watt
15950ecfaa Bug 1165900 - Make MaybeSnapToDevicePixels return a boolean to indicate whether snapping occurred. r=Bas 2015-05-06 14:43:56 +01:00
Jonathan Watt
b67aa400fb Bug 1165896 - Fix the argument naming of MaybeSnapToDevicePixels to match UserToDevicePixelSnapped. r=Bas 2015-05-06 14:40:26 +01:00
Andrew Comminos
a5dc2315a8 Bug 1161642 - Utilize primitive blends where available for faster blending on D2D 1.1. r=bas 2015-05-11 08:47:00 -04:00
Kartikaya Gupta
bf6dbd738c Bug 1165407 - Properly flush the log stream after logging it. r=botond 2015-05-16 09:11:04 -04:00
Mason Chang
bc593d8268 Bug 1162824 - Change box shadow cache to cache the colored blurred box shadow. r=mstange 2015-05-15 10:52:44 -07:00
Ehsan Akhgari
aee7f7274a Bug 1156084 - Disallow AddRef() and Release() calls on the return value of methods returning XPCOM objects; r=jrmuizel
When a method returns type D derived from RefCounted type B, there is an
ImplicitCastExpr (or an ExplicitCastExpr, if there is an explicit cast
to the base type in the code) in the AST between the CallExpr and
MemberExpr, which we didn't take into account before.  This caused the
analysis to not work on common patterns such as
nsCOMPtr<nsIXPCOMInterface>.
2015-05-15 08:39:55 -04:00
Markus Stange
aafb3abe48 Bug 1162726 - Make RoundedToInt() snap the rect properly. r=roc 2015-05-07 14:25:06 -04:00
Markus Stange
eba54193b0 Bug 1160789 - Make DrawTargetSkia support subpixel antialiasing for text. r=jrmuizel 2015-05-04 13:23:54 -04:00
Matt Woodrow
03425f7689 Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Lee Salzman
cfd509b083 Bug 1127752 - fixes for using Skia and OMTC with GTK3. r=jrmuizel 2015-05-13 11:54:17 +09:00
Phil Ringnalda
c5559e3295 Back out 4f682f01262e (bug 857895) for widespread destruction
CLOSED TREE
2015-05-11 19:53:28 -07:00
Matt Woodrow
3efb0c109b Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Carsten "Tomcat" Book
0235a28614 Backed out changeset 41c408a2662e (bug 857895) for bustage on a CLOSED TREE 2015-05-11 10:28:56 +02:00
Matt Woodrow
0e8aa9df46 Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Eric Rahm
c76cf0b0ae Bug 1162748 - Remove instances of #ifdef PR_LOGGING in graphics. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-08 14:37:01 -07:00
Bas Schouten
632e5c44f3 Bug 1161815: Use a single ID2D1SolidColorBrush per DrawTarget. r=jrmuizel 2015-05-07 02:38:10 +02:00
Ryan VanderMeulen
e47a9d937c Backed out changesets 230adc57e016 and 61bd6e2c6e72 (bug 1072898) for reftest failures.
CLOSED TREE
2015-05-06 11:27:32 -04:00
Kearwood (Kip) Gilbert
f0d75f1b73 Bug 1072898: Part 1 - Correct rendering of layers that are both in front and behind the w=0 plane. r=mattwoodrow
- The BasicCompositor now transforms vertices prior to rendering in Skia, using
  a function that clips against frustum clipping planes in homogenous
  coordinate space.
2015-04-21 16:57:18 -07:00
Milan Sreckovic
caadc93297 Bug 1158430 - A small construct to allow only sending errors and warnings once per statement. r=botond 2015-04-27 14:44:13 -04:00
David Major
ed6ca74f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium 2015-04-27 19:59:27 -04:00
Bas Schouten
64652639b7 Bug 1151821: Make globalCompositeOperator work correctly when a complex clip is pushed. r=jrmuizel 2015-04-10 07:09:31 +02:00
Nicolas Silva
3cc1456d36 Bug 1155626 - Don't assume that Factory::GetD2D1Device returns a non-null device and add some gfxCriticalLog. r=Bas 2015-04-22 12:02:01 +02:00
Andrea Marchesini
e95d49e405 Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan 2015-04-22 08:29:24 +02:00
Wes Kocher
6fdfd8574e Backed out changeset 8b99d282cd87 (bug 1156084) for static bustage CLOSED TREE 2015-04-21 14:23:56 -07:00
Ehsan Akhgari
e1d91cf3c6 Bug 1156084 - Disallow AddRef() and Release() calls on the return value of methods returning XPCOM objects; r=jrmuizel
When a method returns type D derived from RefCounted type B, there is an
ImplicitCastExpr (or an ExplicitCastExpr, if there is an explicit cast
to the base type in the code) in the AST between the CallExpr and
MemberExpr, which we didn't take into account before.  This caused the
analysis to not work on common patterns such as
nsCOMPtr<nsIXPCOMInterface>.
2015-04-21 16:24:41 -04:00
Nicolas Silva
aa850abbcd Bug 1155621 - Remove no-op gfx2DGlue conversion helpers. r=Bas 2015-04-21 17:22:30 +02:00
Nicolas Silva
d93b5d5970 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Lee Salzman
8d3366bedb Bug 1156536 - "BaseMargin<T>::Side casts enum SideT to T and adds to pointer". r=jmuizelaar 2015-04-20 15:35:00 +02:00
Jeremy Chen
b4c3f4ce16 Bug 1152263 - Ensure Matrix4x4::ProjectRectBounds being functional for Rect with zero width/height. r=mattwoodrow 2015-04-13 03:10:00 -04:00
Ying-Ruei Liang (KK)
73bcc83422 Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond
Change interface of getter/setter for mClipRect,
also necessary modification for codes that use these resources.

* * *
Bundle mUseClipRect and mClipRect as Maybe<ParentLayerIntRect> mClipRect
2015-04-11 22:03:00 -04:00
Markus Stange
923e86042f Bug 1152838 - Fix BaseRect::InflateToMultiple and move it to nsIntRect. r=mattwoodrow, r=jrmuizel 2015-04-09 15:49:25 -04:00
Carsten "Tomcat" Book
0469548b82 Backed out changeset 1610ee9ba5d8 (bug 1151821) for m1 test failures 2015-04-10 11:12:51 +02:00
Bas Schouten
f6e47a1004 Bug 1151821: Make globalCompositeOperator work correctly when a complex clip is pushed. r=jrmuizel 2015-04-10 07:09:31 +02:00
Markus Stange
2dd7923829 Bug 1151145 - Add assertions to detect unbalanced calls to CGContextSaveGState / CGContextRestoreGState. r=jrmuizel 2015-04-04 18:12:12 -04:00
Markus Stange
8bab6fc527 Bug 1151145 - Make sure we don't call CGContextSaveGState without calling CGContextRestoreGState in DrawTargetCG::StrokeRect. r=jrmuizel 2015-04-04 18:06:35 -04:00
Vladimir Vukicevic
623d15c626 Bug 1148009; [webvr] Add Quaternion class to Moz2D; r=jrmuizel 2015-04-01 16:02:20 -04:00
Mike Hommey
95e047925a Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Andrea Marchesini
94545cbb2e Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Seth Fowler
eda3d21adf Bug 1147706 - Warn if we don't use the result of const methods on BaseRect and its subclasses. r=tn 2015-03-26 15:39:47 -07:00
Trevor Saunders
473f2ceb3c bug 1146027 - more final r=froydnj 2015-03-24 17:51:43 -04:00
Kearwood (Kip) Gilbert
c5be12041a Bug 1035611 - Part 1: Updated Matrix4x4::ProjectRectBounds to properly handle infinite values when untransformed rects cross the w=0 plane. r=mattwoodrow
- Added specialized rect clipping functionality to Matrix4x4::ProjectRectBounds
  so we don't have to return infinite values when rects cross the w=0 plane
  in homogenous coordinate space.
- Updated callsites of ProjectRectBounds to pass a clipping rect that is
  appropriate for the units that are returned.
2015-03-13 16:42:00 -04:00
Ehsan Akhgari
5cccea6f0f Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Nicolas Silva
eaa5a4d7e4 Bug 1144147 - Warning fix in DrawTargetCairo.cpp. r=jrmuizel 2015-03-17 16:53:46 +01:00
Botond Ballo
273a985304 Bug 1139675 - Add a couple of operator overloads to BaseSize. r=kats 2015-03-06 18:07:30 -05:00
Botond Ballo
3030f46607 Bug 1036967 - Remove ScaleFactor::ScaleFactor(float, float). r=kats 2015-03-02 18:56:45 -05:00
Botond Ballo
f1eb3ec205 Bug 1036967 - Introduce ScaleFactors2D. r=kats,Bas 2015-03-06 13:53:47 -05:00
Nicolas Silva
20b6b03b8b Bug 1123080 - Use cairo's image backend as canvas fallback on windows. r=Bas 2015-03-12 19:40:06 +01:00
Milan Sreckovic
ae310469c2 Bug 1140113 - Catch direct (and some indirect) callers of CreateDrawTarget* and deal with failure. r=mstange 2015-03-09 15:48:20 -04:00
James Willcox
38df53c751 Bug 1117338 - Blow up if we can't convert a cairo format to a gfx one r=milan 2015-03-09 08:35:11 -05:00
Milan Sreckovic
ac2c26d8f4 Bug 1135066 - Deal with failed CreateDrawTarget. r=mstange 2015-03-05 16:38:23 -05:00
Markus Stange
4ac7196831 Bug 1123019 - Actually use the clipped rect variable. r=jrmuizel 2015-03-06 13:04:05 -05:00
Kearwood (Kip) Gilbert
c75559c55c Bug 945584: Part 5 - Implement ScrollVelocityQueue (v4 Patch), r=roc
- Implemented ScrollVelocityQueue class to calculate the velocity of a scroll
  when given periodic samples of scroll position.
- Added BasePoint::Clamp to simplify code.
2015-02-19 15:51:08 -08:00
Milan Sreckovic
119f4e9586 Bug 1133119 - ::Map should fail if the data is null, and add more null pointer checks. r=mattwoodrow 2015-03-03 11:17:55 -05:00
Jan Jongboom
cb7d80be36 Bug 1134599 - Fix rpi build target. r=jrmuizel, r=shuang 2015-02-25 03:20:00 -05:00
Milan Sreckovic
76251cf9a3 Bug 1130195: Report the failed bitmap creation, but still crash. r=bschouten 2015-02-25 17:44:56 -05:00
Benoit Girard
0c64c8efab Bug 1135677 - Deal with overflowing rects. r=bas 2015-02-23 14:09:56 -05:00
David Anderson
3cceabdea6 Fix build bustage on CLOSED TREE. No bug 2015-02-24 14:16:27 -08:00
David Anderson
6a4b20c84a Implement GetMaxTextureSize in the basic compositor. (bug 1135883, r=mattwoodrow) 2015-02-24 13:39:01 -08:00
Markus Stange
bfe3a339f1 Bug 1123019 - Shrink clipped stroked rectangles and stroked lines. r=jrmuizel 2015-02-23 18:15:14 -05:00
Markus Stange
3061bb688e Bug 1123019 - In DrawTargetTiled::StrokeRect and StrokeLine, skip tiles that don't intersect the stroke. r=jrmuizel 2015-02-23 16:20:35 -05:00
Ms2ger
0e666da362 Bug 1135138 - Remove UNICODE from DEFINES in moz.build rather than Makefile.in; r=mshal
This was made possible by bug 928709.
2015-02-23 18:46:55 +01:00
Daniel Holbert
412693e18a Bug 1134931: Add some missing MOZ_OVERRIDE annotations in ServiceWorkerManager.cpp, nsFrameMessageManager.cpp, and 2D.h. r=ehsan 2015-02-20 09:25:07 -08:00
Trevor Saunders
d48baddbc0 bug 1133075 - add more MOZ_OVERRIDE r=froydnj, waldo, jrmuizel 2015-02-18 17:03:30 -05:00
Markus Stange
7a998ebb12 Bug 1092634 - Let feColorMatrix and feComponentTransfer generate output outside their input's bounds. r=Bas
This makes the color matrix and component transfer Moz2D filters generate
an infinite output, which is then cropped to the primitive's filter
primitive subregion by a subsequent crop filter node. This still gives us
different behavior than other browser when the primitive subregion is
overridden using the x/y/width/height attributes - other browsers either
ignore those completely (IE) or only let them crop the default subregion
(which is defined to be the same as the input subregion) and not enlargen
it - but I'll fix that in a separate bug.
2015-02-09 14:04:11 -05:00
Nicolas Silva
868db9cf05 Bug 1129467 - Apply the tile offset to tiles when initializing DrawTargetTiled. r=Bas 2015-02-05 11:09:57 +01:00
Chris Double
43c6f6331a Bug 1129718 - Fix build error when using enable-debug and disable-logging - r=Bas 2015-02-05 16:25:38 +13:00
Bas Schouten
7eefcc7b87 Bug 1083245: Pop all clips before copying to the destination blending surface. r=jrmuizel
We need to pop the clips from the decide context before flushing and copying to the destination blending surface, otherwise drawing commands executed on a pushed layer for clipping will not be realized on the destination surface for blending.

Note that this fixes most situation, but in the case of doing custom blending to an area of a surface which is not opaque while having a complex clip pushed this will still lead to some artifacts. I haven't seen this be a problem in practice though.
2015-02-04 22:03:21 +01:00
Jonathan Watt
81a3818309 Bug 1085312 - Document why ColorPattern ctor is marked explicit. r=Bas 2015-01-23 09:45:32 +00:00
Bas Schouten
49a749aacd Bug 1089454: Prevent usage of incompatible graphics objects after device reset. r=jrmuizel 2015-01-28 00:54:19 +00:00
Ethan Lin
f6894fe541 Bug 753010 - Part 2 - Refactor some neon intrinsic functions for blur. r=mstange 2015-01-22 18:57:00 +01:00
Ethan Lin
fd482b12ca Bug 753010 - Add a NEON optimized blur method. r=mstange 2015-01-18 22:08:00 +01:00
Masatoshi Kimura
f1b5ace064 Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
222483b6f4 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Markus Stange
9995deb9d0 Bug 1117304 - Make sure the tile filter doesn't call CopyRect on surfaces with different formats. r=Bas 2015-01-05 18:40:27 +01:00
Markus Stange
df12076373 Bug 1117304 - Also do the checks at the start of CopyRect in release builds. r=Bas 2015-01-06 12:08:39 +01:00
Milan Sreckovic
16ab278bc1 Bug 1088833 - A bit of a clean up of warnings, and catch bad draw target in the d3d11 canvas case. r=bschouten 2015-01-20 12:47:29 -05:00
Milan Sreckovic
9294fb0740 Bug 1121835: Deal with non-finite values in Path calls. r=bschouten 2015-01-19 14:19:25 -05:00
Robert Longson
3cdd30d6b4 Bug 1122761 - Avoid dividing by zero when calculating turbulence gradients. r=mstange 2015-01-21 13:01:00 +00:00
Brian Smith
8f8c69ff17 Bug 1119072, Part 16: Replace uses of hash_set with unodered_set (gfx), r=bas 2015-01-08 15:42:38 -08:00
Heiher
70d3809885 Bug 1122383 - Optimize Moz2D's ConvertBGRXToBGRA. r=jwatt
From 4c67bb1f0d9378831559983ccf53f63ad104974e Mon Sep 17 00:00:00 2001
---
 gfx/2d/DataSurfaceHelpers.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
2015-01-20 11:16:08 +00:00
Jonathan Watt
6349ccbe41 Bug 1122578, part 1 - Make DrawTargetCG::StrokeRect stroke from the same corner and in the same direction as older OS X and other Moz2D backends. r=Bas 2015-01-18 11:30:32 +00:00
Seth Fowler
b19344d071 Bug 1120050 - Expose Skia scaler internals for use by downscale-during-decode. r=tn 2015-01-20 03:06:37 -08:00
David Major
421e09c9a8 Bug 1122367: Null check the result of D2DFactory(). r=Bas 2015-01-20 10:56:59 +13:00
Botond Ballo
cfd8d0ff84 Bug 1120609 - Printing support for gfx::Matrix. r=Bas 2015-01-19 11:29:16 -05:00
Nicolas Silva
bc8f416df2 Bug 1122631 - Fix wrong logic in DrawTargetTiled::CopySurface. r=jrmuizel 2015-01-19 12:36:43 +01:00
Milan Sreckovic
865f1b4bbf Bug 1112828 - Have GfxInfo::LogFailure use gfxCriticalLog and entries from gfxCriticalLog be available in about:support graphics section. r=jmuizelaar 2015-01-13 21:19:25 -05:00
Benoit Girard
86ffb60904 Bug 1068190 - Part 1: Add foundation for compositor unit tests. r=mstange 2015-01-14 17:24:09 -05:00
Tejas Srinivasan
8d2706636d Bug 1120060 - Remove the workaround code for the gcc PGO crash in ConvolveHorizontally() now that support for version 4.5 has been removed. r=tn 2015-01-13 08:14:00 -05:00
Masatoshi Kimura
40a556102e Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Bas Schouten
a237f06e5c Bug 1118328 - Part 1: Expose DoesBackendSupportDataDrawTarget function to test backend capabilities. r=jrmuizel 2015-01-07 22:58:20 +01:00
Wes Kocher
801967d579 Backout 0d091f3311b4 (bug 1118328) for build bustage on a CLOSED TREE 2015-01-07 16:54:14 -08:00
Bas Schouten
06cb403dec Bug 1107718: Properly deal with a D3D11 device reset. r=nical 2015-01-08 00:10:49 +00:00
Bas Schouten
b96d7eb9fd Bug 1114398 - Part 1: Make Direct2D paths specifically typed to a backend type. r=jrmuizel 2015-01-08 00:10:48 +00:00
Bas Schouten
fa2263ad42 Bug 1115819: Deal with failure to create a realized bitmap in SourceSurfaceD2D1::DrawTargetWillChange. r=jrmuizel 2015-01-08 00:10:48 +00:00
Bas Schouten
86b068d1fb Bug 1118328 - Part 1: Expose DoesBackendSupportDataDrawTarget function to test backend capabilities. r=jrmuizel 2015-01-07 22:58:20 +01:00
Ryan VanderMeulen
ae94b4cb2a Bug 1114577 - GFX cleanups now that Windows SDK 8.1 is the minimum supported version. r=jmuizelaar, r=glandium 2015-01-07 11:32:07 -05:00
Ehsan Akhgari
39145c283d Bug 1118419 - Mark virtual overridden functions as MOZ_OVERRIDE in graphics; r=jrmuizel 2015-01-07 10:09:17 -05:00
Ehsan Akhgari
38ae0bc54f Bug 1116622 - Give TemporaryRef a take() method semantically equivalent to already_AddRefed::take(); r=froydnj
This is in preparation of removing TemporaryRef.  It should help make
already_AddRefed a drop-in replacement for it.
2015-01-05 11:32:37 -05:00
Daniel Holbert
7591b3c349 Bug 1068603: Extend FlattenBezier to handle case where full path can be approximated by a linear segment. r=Bas 2015-01-02 14:46:53 -08:00
Milan Sreckovic
cf09c58850 Bug 1095510 - See if ClearRect has weird data. r=jmuizelaar 2014-12-19 16:06:15 -05:00
Nicholas Nethercote
25ea2bc436 Bug 1113037 - Use stack allocation in DrawTargetCG::FillGlyphs() in the common case. r=mattwoodrow.
When viewing about:memory in verbose mode this reduces the number of heap
allocations by over 10%.

--HG--
extra : rebase_source : 954962295dcd90d66d0e02f782998884de879f17
2014-12-18 21:23:30 -08:00
Nicholas Nethercote
ce369b69d7 Bug 1113037 - Use stack allocation in DrawTargetCairo::FillGlyphs() in the common case. r=mattwoodrow.
--HG--
extra : rebase_source : f6270322664121cec3c82a7448c80963df6b0e5f
2014-12-18 21:23:28 -08:00
Milan Sreckovic
cad0a2e786 Bug 1101685 - Optionally assert in loggers, default to true on gfxCriticalError. Clean up the calls where large texture sizes were triggering the asserts in tests. r=nical 2014-12-17 17:54:04 -05:00
James Willcox
4ecc038f01 Bug 1049138 - Use the cairo surface format to determine gfx format when able r=jmuizelaar
--HG--
extra : histedit_source : 9027bee76ab792d29a920bffb6443f40e6a35e13
2014-12-17 15:49:57 -06:00
Carsten "Tomcat" Book
6da789ffc5 Backed out changeset 8b751f12a3ad (bug 1101685) for windows 7 debug crashtest/reftest crashes 2014-12-17 12:56:04 +01:00
Jonathan Watt
4625c6d27b Bug 854296, part 2 - Document Moz2D's JoinStyle::MITER to note that its behavior is backend dependant. r=Bas 2014-12-16 15:40:59 +00:00
Milan Sreckovic
6e9fe80392 Bug 1101685 - Optionally assert in loggers, default to true on gfxCriticalError. Clean up the calls where large texture sizes were triggering the asserts in tests. r=nical 2014-12-16 13:22:26 -05:00
Ehsan Akhgari
1a26c5901a Bug 1111227 - Remove the MSVC2005 special casing in gfx/2d/moz.build; r=glandium
--HG--
extra : rebase_source : 0d86c3cff1f3775c0994a9f2f71762f77641ca18
2014-12-16 12:53:13 -05:00
Milan Sreckovic
2c5424419c Bug 946069 - Assert/critical error if the CG contexts are invalid. Also, deal with the empty path when asking for the current point. r=mstange 2014-12-12 15:35:48 -05:00
Benoit Girard
35b9d690a7 Bug 1105834 - Part 1: Add CreateDataSourceSurfaceByCloning to moz2d. r=mstange,bas 2014-11-28 18:11:03 -05:00
Ehsan Akhgari
fee3111e52 Bug 1109699 - Fix more bad implicit constructors in gfx and image; r=jrmuizel 2014-12-10 17:48:11 -05:00
John Daggett
1bf6d78331 Bug 1109403 - trim out unused Azure FontOptions struct. r=m_kato 2014-12-10 13:09:30 +09:00
Wes Kocher
81d1ebe224 Backed out 3 changesets (bug 1105834) for non-unified b2g bustage
Backed out changeset 7aca65122115 (bug 1105834)
Backed out changeset 47ba9f1d4762 (bug 1105834)
Backed out changeset f0226c3be051 (bug 1105834)
2014-12-09 17:15:42 -08:00
Benoit Girard
3cd71202c6 Bug 1105834 - Part 1: Add CreateDataSourceSurfaceByCloning to moz2d. r=mstange,bas
--HG--
extra : rebase_source : 361ea428e03d80c31d9041809afcdab7ae3a32e6
2014-11-28 18:11:03 -05:00
Julian Seward
1e3c776fb2 Bug 1078211 - Uninitialised value use in DoUnpremultiplicationCalculation_SIMD. r=mstange.
--HG--
extra : rebase_source : f6c2050339ff24c2e067f0533fe0e7a1589288e5
2014-12-09 13:12:34 +01:00
Wes Kocher
0a7e7f9972 Backed out 3 changesets (bug 1105834) for non-unified bustage
Backed out changeset 33592fd41f1f (bug 1105834)
Backed out changeset c3e505887e9f (bug 1105834)
Backed out changeset 6aad17f431d1 (bug 1105834)
2014-12-08 17:15:46 -08:00
Benoit Girard
ce58a3ff1a Bug 1105834 - Part 1: Add CreateDataSourceSurfaceByCloning to moz2d. r=mstange,bas 2014-11-28 18:11:03 -05:00
Jonathan Watt
ed562eaf30 Bug 1083079 - Prevent the size of TiledDrawTarget from being zero due to its tiles having negative offsets. r=mattwoodrow 2014-12-05 03:00:24 -08:00
Jeff Muizelaar
ffb53de604 Bug 1105015. Make the UnboundnessFixer more readable. r=milan
--HG--
extra : rebase_source : f584762adbf2afbbdccc563f2a198ac069ef0106
2014-11-25 17:20:33 -05:00
Nicolas Silva
9e3136a18d Bug 1086670 - Add more gfxCriticalError logging in the D2D backend. r=jrmuizel 2014-11-26 21:05:01 +01:00
Bas Schouten
634ae2545c Bug 1101248: Properly check return values of creation functions in DrawTargetD2D1::Init. r=BenWa 2014-11-24 19:44:48 +00:00
Robert Longson
153b68655c Bug 1099197 - Determine the bounds of unstroked polylines/polygons directly. r=jwatt 2014-11-24 14:28:58 +00:00
Jacek Caban
36e032852e Bug 1102809 - Fixed -Wunused-function warnings found in mingw build. r=mattwoodrow 2014-11-24 11:19:36 +01:00
Neil Rashbrook
4cf9fa3794 Bug 1101130 Followup to add a missing #ifdef r=Bas 2014-11-23 23:53:00 +00:00
Bas Schouten
6bfddfd2df Bug 892910: Deal with newSize becoming empty in CreatePartialBitmapForSurface. r=BenWa
This patch deals with the situation where newSize becomes empty and causes a division by 0 in the current code. It also ensures all the callers will abort any potential drawing when CreatePartialBitmapForSurface returns a nullptr.
2014-11-20 20:48:01 +00:00
Vladimir Vukicevic
aebbac4ddb Bug 1036604 - Add VRDevice interfaces, navigator.getVRDevices call, and Oculus Rift gfxVR; r=bz,jrmuizel 2014-07-09 12:24:49 -07:00
Nicolas Silva
789a31aff7 Bug 1086670 - Add some gfxCriticalError logs around DrawTarget creation. r=Bas 2014-11-20 15:48:07 +01:00
Tatiana Meshkova
ad3de9654c Bug 1023156 - Cannot build Qt with errors in gfxQtPlatforms (with Qt 5.3) 2014-11-19 22:02:51 -08:00
Bas Schouten
d648e9fd93 Bug 1101130: Make Direct2D 1.1 clean up its resources on shutdown. r=jrmuizel 2014-11-20 00:16:48 +00:00
Milan Sreckovic
17dda8d5b9 Bug 1095925: Propagate the error up the chain. r=jmuizelaar 2014-11-14 16:11:02 -05:00
Jacek Caban
5a9cd3b717 Bug 1068195 - Fix an invalid MOZ_ASSERT in moz2d code, asserting the value of a constant string pointer. r=jrmuizel 2014-11-19 11:08:14 +01:00
Milan Sreckovic
a40b65aff2 Bug 1074952 - Part 7. Add a logging support for a couple of common Moz2d enums. r=bschouten 2014-11-11 16:09:35 -05:00
Milan Sreckovic
495b953b27 Bug 1074952 - Part 6. Fully qualify the appropriate logs in the logging macros, otherwise we can't call these from other namespaces. An example in non-gfx/2d where it would not have worked without this change. r=botond 2014-11-18 10:51:39 -05:00
Milan Sreckovic
42514154f9 Bug 1074952 - Part 3. Redo the const values and optimize for the case where we decide runtime not to log messages. Move the decision about newline to OutputMessage. Make [GFX#] the default automatic prefix. r=bschouten 2014-10-24 13:54:26 -04:00
Milan Sreckovic
585c9b246e Bug 1074952 - Part 2. gfxWarning() should be available in both debug and release builds. r=bas 2014-10-24 13:54:23 -04:00
Milan Sreckovic
76c3418121 Bug 1074952 - Part 1. Expose the level of logging as a preference. r=bschouten 2014-10-24 13:54:20 -04:00
Wes Kocher
56504345b8 Backed out changeset 41ecbb9a5fac (bug 1092634) for reftest bustage 2014-11-18 17:21:08 -08:00
Markus Stange
6765a5dd91 Bug 1097776 - Don't leak the SkBitmapDevice. r=jrmuizel 2014-11-18 17:22:01 -05:00
Markus Stange
c5ad8858c8 Bug 1092634 - Let feColorMatrix and feComponentTransfer generate output outside their input's bounds. r=Bas
This makes the color matrix and component transfer Moz2D filters generate an infinite output, which is then cropped to the primitive's filter primitive subregion by a subsequent crop filter node. This still gives us different behavior than other browser when the primitive subregion is overridden using the x/y/width/height attributes - other browsers either ignore those completely (IE) or only let them crop the default subregion (which is defined to be the same as the input subregion) and not enlargen it - but I'll fix that in a separate bug.
2014-11-18 17:21:19 -05:00
Bas Schouten
a5a7dfd4e9 Bug 1099335: Base decision to use a complex clip on whether a DT supports regoin clipping. r=jrmuizel
DrawTargets that support region clipping are able to clip to regions effectively. Other DrawTargets go through expensive complex clip paths. When invalidating regions we have code that draws in multiple steps when using Direct2D to avoid this expense, we should base the decision to do this simply on whether the DrawTarget supports fast region clipping.
2014-11-16 19:17:40 +00:00
Robert O'Callahan
546895dac0 Bug 1097437. Work around Quartz bug where corners of stroked rects don't get a solid color when they should. r=jrmuizel
--HG--
extra : rebase_source : deb88329b8948686119df73122032db999006cae
2014-11-12 20:52:57 +13:00
Bas Schouten
ee8f77a5a6 Bug 1097476: Fix typo in D2D 1.1 radial gradient code. r=jrmuizel 2014-11-12 15:05:13 +00:00
Bas Schouten
6626dc8849 Bug 1097293: Do not draw radial gradients when centers and radii are identical. r=jrmuizel
When Cinner and Couter are equal, as well as Rinner and Router, the algorithm described in the canvas specification will hit a division by 0. As described in section 7 of the Canvas2D specification nothing should be drawn in this situation.
2014-11-12 15:05:13 +00:00
chiajung hung
e46182f3b1 Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni, r=gw280 2014-11-11 21:14:00 +01:00
Bas Schouten
52af2a52e4 Bug 1088235: Use DrawBitmap when we can. r=jrmuizel 2014-11-11 22:09:31 +00:00
Lioncash
fb32a8f5d9 Bug 1085051 - Fix mismatched new[]/delete in DrawTargetCG::FillGlyphs. r=jrmuizel 2014-11-11 11:02:43 +00:00
Carsten "Tomcat" Book
7d8333465a Backed out changeset 56d4cef7ed00 (bug 880114) for m5 test failures 2014-11-07 10:47:08 +01:00