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
Ehsan Akhgari
ea41d8de48
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
David Anderson
eea61cd9aa
Implement GetMaxTextureSize in the basic compositor. (bug 1135883, r=mattwoodrow)
2015-02-24 13:39:01 -08:00
Brian Smith
d33b9771bb
Bug 1119072, Part 16: Replace uses of hash_set with unodered_set (gfx), r=bas
2015-01-08 15:42:38 -08:00
Ryan VanderMeulen
b0594284a9
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
Bas Schouten
8988bf26a2
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
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
Markus Stange
1ace2a42ea
Bug 982698 - Make FilterNodeD2D1 support DataSourceSurface input surfaces. r=Bas
2014-04-15 23:45:11 +01:00
Ehsan Akhgari
f99eb29b59
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
Jacek Caban
e17125deeb
Bug 970364 - Fix conversions between enum classes and ints in gfx/2d/. r=bas.schouten
2014-02-11 13:44:17 +01:00
Benoit Jacob
61c6bc7c4e
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
23af944896
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
Matt Woodrow
5e93fce635
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
Markus Stange
59ac33cdb1
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
0fb6c31b16
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
Birunthan Mohanathas
0b0edc221f
Bug 784739 - Switch from NULL to nullptr in gfx/2d/; r=Bas
2013-07-20 11:48:55 +03:00
Jacek Caban
1958cc53fc
Bug 880836 - Fixed 'extra qualification' error on GCC.
2013-06-29 12:13:17 +02:00
Bas Schouten
84ae160987
Bug 878032 - Part 2: Factor out partial bitmap uploading and scaling. r=jrmuizel
2013-06-19 22:48:40 +02:00
Bas Schouten
c47a0fd6a5
Bug 878032 - Part 1: Factor out some simle none-RenderTarget dependent functions. r=jrmuizel
2013-06-19 22:48:40 +02:00
Ehsan Akhgari
b53c55af92
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
86fd3f081f
Bug 878032 - Part 2: Factor out partial bitmap uploading and scaling. r=jrmuizel
2013-06-19 22:48:40 +02:00
Bas Schouten
c1e8710df0
Bug 878032 - Part 1: Factor out some simle none-RenderTarget dependent functions. r=jrmuizel
2013-06-19 22:48:40 +02:00
Jeff Muizelaar
e8ad1930d2
Bug 880836. Add MaskSurface() to Azure. r=bas
...
This gives a substantial performance improvement over the more general Mask():
Test (MaskSurface10x10): 1.93042ms +/- 0.305028
Test (MaskSurface100x100): 2.33435ms +/- 1.00807
Test (MaskSurface500x500): 28.0472ms +/- 0.820744
Test (MaskSurface1000x1000): 107.656ms +/- 6.44615
Test (Mask10x10): 13.5237ms +/- 0.0932034
Test (Mask100x100): 14.0742ms +/- 1.21005
Test (Mask500x500): 96.5596ms +/- 1.81415
Test (Mask1000x1000): 356.891ms +/- 9.30592
2013-06-12 23:57:51 -04:00
Ryan VanderMeulen
61168f0ad6
Backed out changeset 8dcb029b9ca5 (bug 880836) for asserts.
...
CLOSED TREE
2013-06-18 12:08:19 -04:00
Jeff Muizelaar
c6a8ad6595
Bug 880836. Add MaskSurface() to Azure. r=bas
...
This gives a substantial performance improvement over the more general Mask():
Test (MaskSurface10x10): 1.93042ms +/- 0.305028
Test (MaskSurface100x100): 2.33435ms +/- 1.00807
Test (MaskSurface500x500): 28.0472ms +/- 0.820744
Test (MaskSurface1000x1000): 107.656ms +/- 6.44615
Test (Mask10x10): 13.5237ms +/- 0.0932034
Test (Mask100x100): 14.0742ms +/- 1.21005
Test (Mask500x500): 96.5596ms +/- 1.81415
Test (Mask1000x1000): 356.891ms +/- 9.30592
2013-06-12 23:57:51 -04:00
Brian R. Bondy
2afb1f34a0
Bug 793719 - Fix for D2D error on shutdown with VS2012. r=bas
2012-11-25 14:00:31 -05:00
Bas Schouten
6b625bbf88
Bug 798931: Push clip layers to the correct render targets. r=roc
2012-10-08 12:17:17 +02:00
Bas Schouten
bc5a60e146
Bug 784382 - Part 2: Use new ID2D1DeviceContext interface in Azure. r=jrmuizel
2012-10-07 01:43:16 +02:00
Bas Schouten
261cedde50
Bug 772726: Factor out pixel-aligned clip handling in DrawTargetD2D. r=jrmuizel
2012-09-18 23:04:42 +00:00
Joe Drew
3f0afe00d0
Bug 782416 - Switch from NULL to nullptr in gfx::2d. r=Bas
2012-08-14 14:06:12 -04:00
Joe Drew
0a4da78c18
Back out 98d2c24ce932 for failing to build r=moron
2012-08-15 12:51:33 -04:00
Joe Drew
123b07964c
Bug 782416 - Switch from NULL to nullptr in gfx::2d. r=Bas
2012-08-14 14:06:12 -04:00
Robert O'Callahan
a228c239c3
Bug 772726. Part 3: Optimize DrawTargetD2D::GetClippedGeometry for the case where all clips are rectangles, to work around a D2D geometry-intersection bug. r=bas
2012-08-10 23:18:36 +12:00
Bas Schouten
ebc4c4dae4
Bug 770033 - Part 3: Deal with extend modes for D2D partial bitmap uploads. r=jrmuizel
2012-07-04 20:23:16 +02:00
Bas Schouten
c94271b310
Bug 765845: Reduce calling frequency of SetTextRenderingParams. r=jrmuizel
2012-06-26 02:59:18 +02:00
Bas Schouten
1ca63f3ddd
Bug 761397 - Part 1: Cache ID2D1Layers for D2D Azure backend. r=jrmuizel
2012-06-20 23:41:16 +02:00
Bas Schouten
7a413a89c7
Bug 738189: Add memory reporting for Azure VRAM usage. r=jrmuizel
2012-06-20 23:41:16 +02:00
Bas Schouten
956d41fcdd
Bug 756767 - Part 1: Simplify SourceSurfaceD2D and add DataSourceSurface support. r=jrmuizel
2012-05-21 17:27:30 +02:00
Bas Schouten
b54678ba9c
Bug 756454: User 2D texture for gradient realizations. r=jrmuizel
2012-05-21 17:24:05 +02:00
Ed Morley
44e4c7a72d
Backout a693c64dc64e (bug 715768), c520957cc03f & 713ed280a80d (bug 756767), 20cb25a8b8ba (bug 756454), f3b5ad2320cb (bug 756424) for crashes
2012-05-21 18:56:46 +01:00
Bas Schouten
b2eb0b34bc
Bug 756767 - Part 1: Simplify SourceSurfaceD2D and add DataSourceSurface support. r=jrmuizel
2012-05-21 17:27:30 +02:00
Bas Schouten
1cf19157b1
Bug 756454: User 2D texture for gradient realizations. r=jrmuizel
2012-05-21 17:24:05 +02:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Bas Schouten
cdd664e722
Bug 717393 - Part 4: Add code for drawing subpixel AA to transparent surfaces. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
8581ad127e
Bug 717393 - Part 3: Cache ClippedGeometry for D2D Azure backend. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
49bad52345
Bug 717393 - Part 2: Refactor clip management and add ClippedMask texture. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
6de8d873e0
Bug 736134 - Part 1: Add GlyphRenderingOptions API to Azure. r=jrmuizel
2012-03-19 19:20:17 +00:00
Bas Schouten
6eeca3bc9d
Bug 702878: Extend gfx::2d API and D2D backend with new functionality. r=jrmuizel sr=roc
2011-12-28 06:56:11 +01:00
Phil Ringnalda
8270aea9a5
Back out 9c78b4872333 (bug 702878) for Win M1 crashes and reftest orange
2011-12-27 21:09:44 -08:00