Milan Sreckovic
476936f180
Bug 1182209 - Additional info with some critical errors. r=mchang
...
CLOSED TREE
2015-07-14 15:22:29 -04:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Nathan Froyd
92a8124fef
Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
...
This conversion was done with the script:
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
-e 's/TemporaryRef</already_AddRefed</g'
Manual fixups were performed in the following instances:
- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
into already_AddRefed.
- The following files had explicit Move() calls added to make up for the lack
of a copy constructor on already_AddRefed:
dom/base/ImageEncoder.cpp
dom/media/MediaTaskQueue.{h,cpp}
dom/media/webaudio/PannerNode.cpp
- A redundant overload for MediaTaskQueue::Dispatch was deleted.
- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.
- Comments, using declarations, and forward declarations relating to
TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
already_AddRefed.
2015-06-17 10:00:52 -04:00
Jeff Muizelaar
87bfeed23b
Bug 1175286. Remove unnecessary CGContextSave/Restore pair from ClearRect.
2015-06-16 17:11:42 -04:00
Andreas Pehrson
d9d9c67fbe
Bug 1169126 - Part 1: Make DrawTargetCG::CopySurface able to handle all SourceSurface types. r=gw280
2015-06-11 10:57:29 +08:00
Jeff Muizelaar
bc12e99d94
Bug 1160335. Make DrawTargetCG's transform handling better. r=mstange
...
This let's us avoid depending on Save() and Restore() to have the
right transform at the right time.
2015-04-30 17:53:25 -04:00
Nathan Froyd
43cddcfc0d
Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
...
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary. It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Nathan Froyd
3c715f85db
Bug 1116905 - part 3 - remove dependence on implicit conversion from T* to TemporaryRef<T>, gfx changes; r=jrmuizel
2015-04-30 15:20:30 -04:00
Ehsan Akhgari
8857726bbb
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
f064167437
Bug 1151145 - Add assertions to detect unbalanced calls to CGContextSaveGState / CGContextRestoreGState. r=jrmuizel
2015-04-04 18:12:12 -04:00
Markus Stange
ef8d28a7e2
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
Markus Stange
072b86a744
Bug 1123019 - Actually use the clipped rect variable. r=jrmuizel
2015-03-06 13:04:05 -05:00
David Anderson
e7baeb36a1
Fix build bustage on CLOSED TREE. No bug
2015-02-24 14:16:27 -08:00
David Anderson
eea61cd9aa
Implement GetMaxTextureSize in the basic compositor. (bug 1135883, r=mattwoodrow)
2015-02-24 13:39:01 -08:00
Markus Stange
ae27b9089c
Bug 1123019 - Shrink clipped stroked rectangles and stroked lines. r=jrmuizel
2015-02-23 18:15:14 -05:00
Jonathan Watt
1645450ec0
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
Nicholas Nethercote
edecf8690b
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%.
2014-12-18 21:23:30 -08:00
Milan Sreckovic
bcb0da2105
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
Jeff Muizelaar
6ad82b3d3f
Bug 1105015. Make the UnboundnessFixer more readable. r=milan
2014-11-25 17:20:33 -05:00
Robert O'Callahan
e0c254a204
Bug 1097437. Work around Quartz bug where corners of stroked rects don't get a solid color when they should. r=jrmuizel
2014-11-12 20:52:57 +13:00
Lioncash
8f0343b8ee
Bug 1085051 - Fix mismatched new[]/delete in DrawTargetCG::FillGlyphs. r=jrmuizel
2014-11-11 11:02:43 +00:00
Markus Stange
701787ca89
Bug 1055622 - Add support for specifying the font smoothing background color to Moz2D. r=Bas, r=jrmuizel
2014-10-24 18:32:23 +02:00
Markus Stange
b4c86f849e
Bug 1074842 - Let SourceSurfaceCGBitmapContext take ownership of the data when DrawTargetCG is destroyed. r=jrmuizel
2014-10-24 18:32:22 +02:00
Matt Woodrow
5f65edf40c
Bug 1070722 - Remove DrawTargetCG::OptimizeSourceSurface since we don't get any benefit without quartz high-quality downscaling enabled. r=jrmuizel
2014-10-02 21:14:46 +13:00
Matt Woodrow
64506f6275
Bug 1070722 - Use the imagelib high quality downscaler on OSX instead of the quartz one. r=jrmuizel
2014-09-26 15:05:14 -04:00
Wes Kocher
20d749c9cd
Backed out changeset b5705fbed44f (bug 1070722) for reftest orange on a CLOSED TREE
2014-09-26 14:29:46 -07:00
Matt Woodrow
37d8747509
Bug 1070722 - Use the imagelib high quality downscaler on OSX instead of the quartz one. r=jrmuizel
2014-09-26 15:05:14 -04:00
Matt Woodrow
944b505729
Bug 1062723 - Part 3: Implement source clipping for DrawTargetCG. r=jrmuizel
2014-09-12 17:18:22 +12:00
Michael Wu
9dd656a6fc
Bug 1063733 - Optimize DataSourceSurface allocation, r=bas,seth
2014-09-10 17:54:16 -04:00
Matt Woodrow
209a96994e
Bug 1059033 - Part 5: Implement OptimizeSourceSurface for DrawTargetCG. r=Bas
2014-09-03 09:21:14 +12:00
Phil Ringnalda
c4fecf2e67
Backed out 8 changesets (bug 982338, bug 1057212, bug 1059033) for build bustage
...
CLOSED TREE
Backed out changeset 4df1bd30364d (bug 982338)
Backed out changeset b68664a02904 (bug 1057212)
Backed out changeset 07b3695aa02f (bug 1059033)
Backed out changeset bb3885b57d48 (bug 1059033)
Backed out changeset 76897f52ac2c (bug 1059033)
Backed out changeset 31e89a2a409f (bug 1059033)
Backed out changeset 8e81f6f74182 (bug 1059033)
Backed out changeset c5bbf22f2f28 (bug 1059033)
2014-09-01 18:07:57 -07:00
Matt Woodrow
0a6a1892c3
Bug 1059033 - Part 5: Implement OptimizeSourceSurface for DrawTargetCG. r=Bas
2014-09-02 12:35:32 +12:00
Phil Ringnalda
f22588c601
Backed out 8 changesets (bug 1057212, bug 1059033) for Windows build bustage
...
CLOSED TREE
Backed out changeset a54dbdca597b (bug 1059033)
Backed out changeset d8d79e4fbfc4 (bug 1059033)
Backed out changeset 87494588e493 (bug 1057212)
Backed out changeset 3e4105ea0a73 (bug 1059033)
Backed out changeset e59430ea4256 (bug 1059033)
Backed out changeset 301fdfea8fbf (bug 1059033)
Backed out changeset 1ef5a3a9bb06 (bug 1059033)
Backed out changeset a7eaac164c36 (bug 1059033)
2014-08-31 23:55:31 -07:00
Matt Woodrow
ddbf102bcc
Bug 1059033 - Part 5: Implement OptimizeSourceSurface for DrawTargetCG. r=Bas
2014-09-01 15:23:21 +12:00
Matt Woodrow
c4ffe53d3f
Bug 1057216 - Make DrawTargetCG hold a reference to DataSourceSurface when we're wrapping their data. r=jrmuizel
2014-08-27 10:20:18 +12:00
Markus Stange
d69d12bd11
Bug 1049499 - Choose the correct number of gradient repetitions if a non-identity pattern matrix is involved. r=jrmuizel
2014-08-07 13:23:53 +02:00
Nicolas Silva
8235a2b538
Bug 1025138 - Integrate DrawTargetTiled preffed off. r=mattwoodrow
2014-08-06 14:40:03 +02:00
Milan Sreckovic
2957d1c765
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
Milan Sreckovic
43acdb6d8a
Bug 1031525 - Support DrawTargetCG::DrawWindow and non-CG types. r=gw280,mattwoodrow
2014-07-14 13:24:01 -04:00
Jonathan Watt
a5f2bc5bbe
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
Jonathan Watt
ac3dfa920f
Bug 1027763, part 1 - Rename DrawTarget::GetType() to DrawTarget::GetBackendType() in Moz2D code. r=Bas
2014-06-19 21:35:33 +01:00
Jonathan Watt
9fd2d612ce
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
12ba8e81c5
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
Markus Stange
eb63599a5d
Bug 1022624 - Rename numStops to stopCount.
2014-06-10 22:29:03 +02:00
Markus Stange
9f229a6a27
Bug 1022624 - Share code for constructing repeated linear and radial gradients. r=jrmuizel
2014-06-10 22:27:45 +02:00
Markus Stange
dda15061cb
Bug 1022624 - Implement support for radial gradients with ExtendMode::REFLECT in DrawTargetCG. r=jrmuizel
2014-06-10 22:26:58 +02:00
Markus Stange
66e8fc635b
Bug 1022624 - Implement support for linear gradients with ExtendMode::REFLECT in DrawTargetCG. r=jrmuizel
2014-06-10 22:26:32 +02:00
Matt Woodrow
24f7316f80
Bug 1012386 - Release the CGImage we addref'd in DrawTargetCG::CopySurface. r=jrmuizel
2014-05-21 18:43:16 +12:00
Matt Woodrow
a7936d10a0
Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas
2014-04-17 12:45:25 +12:00
Jeff Muizelaar
5384032fbb
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