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
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
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
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
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
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
Benoit Jacob
f634d4797a
Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - 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
Benoit Jacob
7a2cb34f70
Bug 958375 - 1/9 - Make SurfaceType a typed enum - 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 13:55:24 -05:00
Markus Stange
842f750e01
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
c7fed46c56
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
Steven Michaud
ff116bb0eb
Bug 925448 - Stop CGImageRef external data being deleted prematurely. r=bgirard,bas
2013-11-26 12:41:32 -06:00
Jeff Muizelaar
5c6b3f65f7
Bug 929471. Make DrawTargetCG independent from QuartzSupport.mm. r=bgirard
2013-11-07 22:53:54 -05:00
Matt Woodrow
f89aef7779
Bug 920571 - Followup to copy all the pixel on the last line. r=bustage
2013-09-30 17:14:30 +13:00
Matt Woodrow
02afa619a1
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
Markus Stange
4058670b23
Bug 912944 - Handle different surface formats in Azure CG source surfaces. r=jrmuizel
2013-09-27 17:19:33 +02:00
David Zbarsky
ab7bc17904
[Bug 914955] Fix build warnings in Moz2D r=bas
2013-09-15 14:23:51 -04:00
Matt Woodrow
a4c7dbce29
Bug 893824 - Don't allow 0 sized SourceSurfaces with Moz2D. r=jrmuizel
2013-07-15 13:28:04 -04:00
Nathan Froyd
47cc2821bf
Bug 839383 - part 3 - inline AssignSurfaceParametersFromFormat into its only caller; r=jrmuizel
2013-03-12 17:02:19 -04:00
Nathan Froyd
e5de750abb
Bug 839383 - part 2 - factor out CGImageRef creation code in SourceSurfaceCG.cpp; r=jrmuizel
2013-03-12 16:59:26 -04:00
Nathan Froyd
a9bc6423c8
Bug 839383 - part 1 - fix unhandled enumeration values in SourceSurfaceCG.cpp; r=jrmuizel
2013-03-06 11:11:18 -05: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
Benoit Girard
d0141bb4a3
Bug 724666 - Part 2: Add CGIOSurfaceContext to azure. r=jmuizelaar
2012-07-31 11:17:43 -04:00
Jeff Muizelaar
3bac712a08
Bug 763120. Avoid using vm_copy when snapshoting. r=bgirard
...
CGBitmapContextCreateImage uses vm_copy which ends up being
slower than memcpy if we actually need to make a copy. Further,
since it does the copy by pagefaulting, it's shows up poorly
on profiles. Since, we already manually track modification we
don't really have need for the copy-on-write semantics. This
change ensures that we'll only use memcpy when we need to make
a copy.
2012-06-11 16:21:55 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Jeff Muizelaar
7b8aea0338
Bug 720482. Make CG snapshots work more like the other backends. r=joe,mattwoodrow,bas
...
This has big improvement in the performance of GetImageData() because
we make the snapshot lazily instead of using the vm_copy() method
of CGBitmapContextCreateImage()
2012-01-31 01:46:54 -05:00
Jeff Muizelaar
736c82e4a2
Bug 692879. Implement CoreGraphics Azure backend. r=mwoodrow
2012-01-09 13:54:44 -05:00
Matt Brubeck
fe64931e21
Back out efd165428f08 to 4a79fefefa28 (bug 580786, bug 716639, bug 692879, bug 717921) because of reftest error
2012-01-17 10:08:38 -08:00
Jeff Muizelaar
70f6f7fcf8
Bug 692879. Implement CoreGraphics Azure backend. r=mwoodrow
2012-01-09 13:54:44 -05:00
Ms2ger
b4f4c7b868
Backout bug 580786 / bug 716639 / bug 692879 / bug 717921 / bug 692879 (2dc5909e63b0:ced751d32df6); a=philor
2012-01-17 10:48:19 +01:00
Jeff Muizelaar
faa524d176
Bug 692879. Implement CoreGraphics Azure backend. r=mwoodrow
2012-01-09 13:54:44 -05:00
Atul Aggarwal
3f198c5c75
Bug 679618 - Uninitialized memory in gfx/2d/SourceSurfaceCG.cpp; r=jmuizelaar
2011-08-31 13:16:12 +01:00
Bas Schouten
ad529f7339
Bug 651858 - Part 1: Add the Azure API and Direct2D backend. r=jrmuizel sr=roc
2011-06-24 19:41:16 +02:00