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

Commit

Permalink
Backed out changeset c92c76073e9c (bug 1160877) for causing B2G phone…
Browse files Browse the repository at this point in the history
… startup crashes.
  • Loading branch information
rvandermeulen committed May 7, 2015
1 parent 2fd30dd commit 7499ec8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
25 changes: 11 additions & 14 deletions widget/gonk/libdisplay/GonkDisplayJB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ GonkDisplayJB::~GonkDisplayJB()
ANativeWindow*
GonkDisplayJB::GetNativeWindow()
{
StopBootAnim();

if (!mBootAnimBuffer.get()) {
StopBootAnimation();
}
return mSTClient.get();
}

Expand Down Expand Up @@ -234,7 +235,10 @@ GonkDisplayJB::GetDispSurface()
bool
GonkDisplayJB::SwapBuffers(EGLDisplay dpy, EGLSurface sur)
{
StopBootAnim();
if (mBootAnimBuffer.get()) {
StopBootAnimation();
mBootAnimBuffer = nullptr;
}

// Should be called when composition rendering is complete for a frame.
// Only HWC v1.0 needs this call.
Expand Down Expand Up @@ -333,8 +337,10 @@ GonkDisplayJB::QueueBuffer(ANativeWindowBuffer* buf)
void
GonkDisplayJB::UpdateDispSurface(EGLDisplay dpy, EGLSurface sur)
{
StopBootAnim();

if (mBootAnimBuffer.get()) {
StopBootAnimation();
mBootAnimBuffer = nullptr;
}
eglSwapBuffers(dpy, sur);
}

Expand All @@ -350,15 +356,6 @@ GonkDisplayJB::GetPrevDispAcquireFd()
return mDispSurface->GetPrevDispAcquireFd();
}

void
GonkDisplayJB::StopBootAnim()
{
if (mBootAnimBuffer.get()) {
mBootAnimBuffer = nullptr;
}
StopBootAnimation();
}

__attribute__ ((visibility ("default")))
GonkDisplay*
GetGonkDisplay()
Expand Down
2 changes: 0 additions & 2 deletions widget/gonk/libdisplay/GonkDisplayJB.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class MOZ_EXPORT GonkDisplayJB : public GonkDisplay {
bool Post(buffer_handle_t buf, int fence);

private:
void StopBootAnim();

hw_module_t const* mModule;
hw_module_t const* mFBModule;
hwc_composer_device_1_t* mHwc;
Expand Down

0 comments on commit 7499ec8

Please sign in to comment.