mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
01583602a9
The bulk of this commit was generated with a script, executed at the top level of a typical source code checkout. The only non-machine-generated part was modifying MFBT's moz.build to reflect the new naming. CLOSED TREE makes big refactorings like this a piece of cake. # The main substitution. find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \ xargs perl -p -i -e ' s/nsRefPtr\.h/RefPtr\.h/g; # handle includes s/nsRefPtr ?</RefPtr</g; # handle declarations and variables ' # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h. perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h # Handle nsRefPtr.h itself, a couple places that define constructors # from nsRefPtr, and code generators specially. We do this here, rather # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename # things like nsRefPtrHashtable. perl -p -i -e 's/nsRefPtr/RefPtr/g' \ mfbt/nsRefPtr.h \ xpcom/glue/nsCOMPtr.h \ xpcom/base/OwningNonNull.h \ ipc/ipdl/ipdl/lower.py \ ipc/ipdl/ipdl/builtin.py \ dom/bindings/Codegen.py \ python/lldbutils/lldbutils/utils.py # In our indiscriminate substitution above, we renamed # nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up. find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \ xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g' if [ -d .git ]; then git mv mfbt/nsRefPtr.h mfbt/RefPtr.h else hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h fi --HG-- rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h |
||
---|---|---|
.. | ||
test | ||
AutoRwLock.h | ||
CameraCommon.h | ||
CameraControlImpl.cpp | ||
CameraControlImpl.h | ||
CameraControlListener.h | ||
CameraPreferences.cpp | ||
CameraPreferences.h | ||
CameraPreviewMediaStream.cpp | ||
CameraPreviewMediaStream.h | ||
CameraTestHardware.js | ||
CameraTestHardware.manifest | ||
DOMCameraCapabilities.cpp | ||
DOMCameraCapabilities.h | ||
DOMCameraControl.cpp | ||
DOMCameraControl.h | ||
DOMCameraControlListener.cpp | ||
DOMCameraControlListener.h | ||
DOMCameraDetectedFace.cpp | ||
DOMCameraDetectedFace.h | ||
DOMCameraManager.cpp | ||
DOMCameraManager.h | ||
FallbackCameraControl.cpp | ||
FallbackCameraManager.cpp | ||
FallbackCameraPlatform.cpp | ||
FallbackCameraPlatform.h | ||
GonkCameraControl.cpp | ||
GonkCameraControl.h | ||
GonkCameraHwMgr.cpp | ||
GonkCameraHwMgr.h | ||
GonkCameraListener.h | ||
GonkCameraManager.cpp | ||
GonkCameraParameters.cpp | ||
GonkCameraParameters.h | ||
GonkCameraSource.cpp | ||
GonkCameraSource.h | ||
GonkRecorder.cpp | ||
GonkRecorder.h | ||
GonkRecorderProfiles.cpp | ||
GonkRecorderProfiles.def | ||
GonkRecorderProfiles.h | ||
ICameraControl.h | ||
moz.build | ||
nsICameraTestHardware.idl | ||
README | ||
TestGonkCameraControl.cpp | ||
TestGonkCameraControl.h | ||
TestGonkCameraHardware.cpp | ||
TestGonkCameraHardware.h | ||
update2.patch | ||
update.patch | ||
update.sh |
This README file details from where some of the camcorder source files were derived from and how to apply the provided patch file to get the updated files for B2G. --------------------------------- Following is the list of B2G files which were derived from an android ics_chocolate build. It also shows the corresponding locations where the original source files can be found: GonkRecoder.cpp: https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=blob;f=media/libmediaplayerservice/StagefrightRecorder.cpp;hb=ef1672482a9c2b88d8017927df68144fee42626c GonkRecorder.h: https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=blob;f=media/libmediaplayerservice/StagefrightRecorder.h;hb=e3682213bcd3fe43b059e00f0fe4dbebc3f3c35d GonkCameraSource.cpp: https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=blob;f=media/libstagefright/CameraSource.cpp;hb=7fa677babfee9c241a131b22c9c1c5ab512ef2d2 GonkCameraSource.h: https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=blob;f=include/media/stagefright/CameraSource.h;hb=96af14d9b013496accf40a85a66fefcba3ac0111 AudioParameter.cpp: https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=blob;f=media/libmedia/AudioParameter.cpp;hb=4dc22e77cfd2a1c3671e5646ee87c5e4c15596a0 GonkCameraListener.h: https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=blob;f=include/camera/Camera.h;hb=796f35e408d9dca386f90d8fbde80471ac011fa6 There were quite a few changes done to the above listed sources to support camcorder on B2G platform. update.patch lists the changes on top of the original files. update.sh shell script copies the files from an android tree and applies the patch to get updated files for B2G.