Commit Graph

13 Commits

Author SHA1 Message Date
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
Milan Sreckovic
64e9f67caf Bug 1131463 - Report AtomicRefCounterWithFinalize doing the wrong thing with AddRef and Release in release build as well. r=sotaro 2015-05-29 16:41:28 -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
Ethan Lin
35bd667a8a Bug 1155498 - Part 4 - Use new FenceHandle to handle the fence in TextureClient. r=sotaro 2015-05-13 01:42:00 +02:00
Botond Ballo
1500be66e4 Bug 1073081 - Fix -Wunused-result, -Wunused-variable, and -Wunused-but-set-variable warnings. r=ehsan 2014-11-26 18:13:49 -05:00
John Lin
9d36c56914 Bug 1073425 - Initialize mNewFrameCallback in constructor. r=sotaro 2014-09-28 19:33:00 +02:00
Michael Wu
4fee33ba19 Bug 1033998 - Reduce log spam from camera code on KK, r=sotaro 2014-07-03 22:24:52 +08:00
Vincent Liu
d3e120534c Bug 988704 - [dolphin][camera]camera preview is obviously slower than android. r=sotaro 2014-05-19 09:52:47 +08:00
Sotaro Ikeda
51568625ac Bug 985772 - Remove SurfaceDescriptor around GonkNativeWindow r=nical,pchang,schiu,mikeh,gal 2014-03-31 08:24:28 -07:00
Sotaro Ikeda
da4b53f137 Bug 977777 - Add fence handling to GonkNativeWindowKK r=pchang,schiu 2014-03-03 07:12:52 -08:00
Solomon Chiu
06b5de84aa Bug 959505 - Modify nativewindow relative files which affected by KK's change. r=sotaro 2014-02-25 15:51:46 +08:00
Solomon Chiu
c759ccca74 Bug 959505 - Modify BufferQueue/ConsumerBase/NativeWindow/NativeWindowClient/GraphicBufferConsumer for Gonk. r=sotaro 2014-02-20 18:42:17 +08:00
Solomon Chiu
3c0603d932 Bug 959505 - Rename KK's file to corrensponding Gonk version. r=sotaro 2014-02-20 18:42:02 +08:00