Skip to content

Commit

Permalink
Revert "sf: Set view frame of each display using binder"
Browse files Browse the repository at this point in the history
This reverts commit 04b8813.
  • Loading branch information
Daz Jones committed Jul 18, 2014
1 parent e14d4b2 commit 1b85082
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
6 changes: 0 additions & 6 deletions services/surfaceflinger/Android.mk
Expand Up @@ -113,15 +113,9 @@ endif
ifeq ($(TARGET_USES_QCOM_BSP), true)
ifneq ($(TARGET_QCOM_DISPLAY_VARIANT),)
LOCAL_C_INCLUDES += hardware/qcom/display-$(TARGET_QCOM_DISPLAY_VARIANT)/libgralloc
LOCAL_C_INCLUDES += hardware/qcom/display-$(TARGET_QCOM_DISPLAY_VARIANT)/libqdutils
ifeq ($(TARGET_QCOM_DISPLAY_VARIANT),caf-new)
LOCAL_CFLAGS += -DQCOM_B_FAMILY
endif
else
LOCAL_C_INCLUDES += hardware/qcom/display/$(TARGET_BOARD_PLATFORM)/libgralloc
LOCAL_C_INCLUDES += hardware/qcom/display/$(TARGET_BOARD_PLATFORM)/libqdutils
endif
LOCAL_SHARED_LIBRARIES += libqdutils
LOCAL_CFLAGS += -DQCOM_BSP
endif

Expand Down
22 changes: 1 addition & 21 deletions services/surfaceflinger/SurfaceFlinger.cpp
Expand Up @@ -82,10 +82,6 @@
#include "SecTVOutService.h"
#endif

#ifdef QCOM_BSP
#include <display_config.h>
#endif

#define DISPLAY_COUNT 1

/*
Expand Down Expand Up @@ -1507,15 +1503,12 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
|| (state.viewport != draw[i].viewport)
|| (state.frame != draw[i].frame))
{
#ifdef QCOM_BSP
int orient = state.orientation;
// Honor the orientation change after boot
// animation completes and make sure boot
// animation is shown in panel orientation always.
if(mBootFinished){
disp->setProjection(state.orientation,
state.viewport, state.frame);
orient = state.orientation;
}
else{
char property[PROPERTY_VALUE_MAX];
Expand All @@ -1527,21 +1520,8 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
}
disp->setProjection(panelOrientation,
state.viewport, state.frame);
orient = panelOrientation;
}
#endif
#ifdef QCOM_B_FAMILY
// Set the view frame of each display only of its
// default orientation.
if(orient == DisplayState::eOrientationDefault) {
qdutils::setViewFrame(disp->getHwcDisplayId(),
state.frame.left, state.frame.top,
state.frame.right, state.frame.bottom);

}
#else
disp->setProjection(state.orientation,
state.viewport, state.frame);
#endif
}
}
}
Expand Down

0 comments on commit 1b85082

Please sign in to comment.