Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1180644: Fix crashes after enabling OOP on B2GDroid. r=snorp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervantes Yu committed Jul 6, 2015
1 parent 3b16a67 commit 682383f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dom/media/fmp4/MP4Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ IsAndroidAvailable()
return false;
#else
// We need android.media.MediaCodec which exists in API level 16 and higher.
return AndroidBridge::Bridge()->GetAPIVersion() >= 16;
return AndroidBridge::Bridge() && (AndroidBridge::Bridge()->GetAPIVersion() >= 16);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion gfx/thebes/gfxAndroidPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ gfxAndroidPlatform::UseAcceleratedSkiaCanvas()
bool gfxAndroidPlatform::HaveChoiceOfHWAndSWCanvas()
{
#ifdef MOZ_WIDGET_ANDROID
if (AndroidBridge::Bridge()->GetAPIVersion() < 11) {
if (!AndroidBridge::Bridge() || AndroidBridge::Bridge()->GetAPIVersion() < 11) {
// It's slower than software due to not having a compositing fast path
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion layout/ipc/RenderFrameParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ class RemoteContentController : public GeckoContentController {

virtual void PostDelayedTask(Task* aTask, int aDelayMs) override
{
MessageLoop::current()->PostDelayedTask(FROM_HERE, aTask, aDelayMs);
(MessageLoop::current() ? MessageLoop::current() : mUILoop)->
PostDelayedTask(FROM_HERE, aTask, aDelayMs);
}

virtual bool GetTouchSensitiveRegion(CSSRect* aOutRegion) override
Expand Down

0 comments on commit 682383f

Please sign in to comment.