Commit Graph

33 Commits

Author SHA1 Message Date
Birunthan Mohanathas
47ed3a3675 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
8780083336 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
Nathan Froyd
9ab3ed5081 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
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
Nicolas Silva
868db9cf05 Bug 1129467 - Apply the tile offset to tiles when initializing DrawTargetTiled. r=Bas 2015-02-05 11:09:57 +01:00
Nicolas Silva
bc8f416df2 Bug 1122631 - Fix wrong logic in DrawTargetTiled::CopySurface. r=jrmuizel 2015-01-19 12:36:43 +01:00
Ehsan Akhgari
ff7c46532a Bug 1062071 - Mark TileInternal's constructor as explicit; r=mattwoodrow 2014-09-03 08:11:28 -04:00
Matt Woodrow
696f8415d4 Bug 1057212 - Avoid copying all the tiles when doing PushGroupAndCopyBackground. r=Bas
--HG--
extra : rebase_source : 88b89a41765ab7d6b1f8ac2ae023267418bc31dc
2014-09-03 09:21:35 +12:00
Matt Woodrow
f4d5fc1f2c Bug 1059033 - Part 3: Avoid save/restoring for tiles that are entirely clipped out. r=Bas
--HG--
extra : rebase_source : c4fa893c9955f7b9af9d152c719d97b0aefef462
2014-09-03 09:20:44 +12:00
Matt Woodrow
73705edd1b Bug 1059033 - Part 2: Approximate path stroke extents for culling since its faster. r=Bas
--HG--
extra : rebase_source : 153dd5cda0d9c35c724568eae5234dbd26a17683
2014-09-03 09:20:33 +12:00
Matt Woodrow
2793cd5577 Bug 1059033 - Part 1: Cull DrawTargetTiled operations where we can. r=Bas
--HG--
extra : rebase_source : 469f465fa1a715b7c7af904da4cc48969ff805e6
2014-09-03 09:20:10 +12:00
Phil Ringnalda
3d78bd7efa 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
febbddd2d3 Bug 1057212 - Avoid copying all the tiles when doing PushGroupAndCopyBackground. r=Bas
--HG--
extra : rebase_source : fa58170f6966ef0008f54ef4bc1b1b5381fbd0e0
2014-09-02 12:37:41 +12:00
Matt Woodrow
e042864169 Bug 1059033 - Part 3: Avoid save/restoring for tiles that are entirely clipped out. r=Bas
--HG--
extra : rebase_source : 832de898f3fe2373b7210e3c147bfeaf716434c5
2014-09-02 12:35:02 +12:00
Matt Woodrow
64983e0e66 Bug 1059033 - Part 2: Approximate path stroke extents for culling since its faster. r=Bas
--HG--
extra : rebase_source : 88884a1d6297a12cddd2c2f075985634e3fa235c
2014-09-02 12:34:53 +12:00
Matt Woodrow
1ed38bfa48 Bug 1059033 - Part 1: Cull DrawTargetTiled operations where we can. r=Bas
--HG--
extra : rebase_source : 74b1c51243fa1443c4d6d5d9bdc6d448680c5a07
2014-09-02 12:34:30 +12:00
Phil Ringnalda
cf0f6fe57f 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
bf14a4d265 Bug 1059033 - Move DrawTargetTiled to non-unified to ensure that _USE_MATH_DEFINES is applied first. CLOSED TREE 2014-09-01 17:28:53 +12:00
Matt Woodrow
4ce3bfd53e Bug 1059033 - Followup to fix windows build
--HG--
extra : rebase_source : 1ad884a8f5d90feb431a522aa7937d726ad699ec
2014-09-01 16:30:25 +12:00
Matt Woodrow
2999f08ed4 Bug 1057212 - Avoid copying all the tiles when doing PushGroupAndCopyBackground. r=Bas 2014-09-01 15:23:40 +12:00
Matt Woodrow
ee5d5a5cdf Bug 1059033 - Part 3: Avoid save/restoring for tiles that are entirely clipped out. r=Bas 2014-09-01 15:22:49 +12:00
Matt Woodrow
0499e23c22 Bug 1059033 - Part 2: Approximate path stroke extents for culling since its faster. r=Bas 2014-09-01 15:22:40 +12:00
Matt Woodrow
f678298447 Bug 1059033 - Part 1: Cull DrawTargetTiled operations where we can. r=Bas 2014-09-01 15:22:08 +12:00
Matt Woodrow
fcc0c3d428 Bug 1057218 - Initialize mFormat in DrawTargetTiled. r=Bas 2014-08-29 15:07:35 +12:00
Botond Ballo
d7ca1856d5 Bug 1057642 - Revert [Int]::PointTyped::[x|y] to be of primitive type. r=kats
--HG--
extra : rebase_source : 55e56423f6c8f5278315a6dc9dfcb9fb983c9309
2014-08-28 12:45:48 -04:00
Milan Sreckovic
33707ea4c4 Bug 1033310: Handle CreateDataSourceSurface* returning nullptr. f=nsilva, r=bschouten 2014-08-27 11:57:43 -04:00
Botond Ballo
54aeea8833 Bug 923512 - Introduce strongly-typed coordinate classes. r=kats,Bas
--HG--
extra : rebase_source : 22e5fe577ea503aede765c70e16c0bf875c4a9fd
2014-08-19 13:08:16 -04:00
Wes Kocher
724c15be2e Backed out 3 changesets (bug 923512) for mochitest-2 bustage on a CLOSED TREE
Backed out changeset f8720d81b74f (bug 923512)
Backed out changeset f431232084b7 (bug 923512)
Backed out changeset dff51863663c (bug 923512)
2014-08-06 16:36:35 -07:00
Botond Ballo
19223fc539 Bug 923512 - Introduce strongly-typed coordinate classes (Part 1: Moz2D changes). r=kats,Bas 2014-07-31 17:07:17 -04:00
Nicolas Silva
b4e767d9b2 Bug 1025138 - Integrate DrawTargetTiled preffed off. r=mattwoodrow 2014-08-06 14:40:03 +02: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
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
b33c0b3b70 Bug 992491: Add DrawTargetTiled for redirecting drawing to multiple tiles. r=mattwoodrow 2014-06-11 19:53:02 +00:00