surfaceflinger: Unbreak casting and other use cases
* If QCOM WFD isn't in use, we'll get -1 here. Don't try and dig into the array because we'll get some random memory back. Change-Id: Ib14642fea760dc0e659473bb183c5e0116622302
This commit is contained in:
parent
52b8462635
commit
da998f4845
@ -78,6 +78,10 @@ bool ExHWComposer::isCompositionTypeBlit(const int32_t compType) const {
|
|||||||
|
|
||||||
#if defined(QTI_BSP) && defined(SDM_TARGET)
|
#if defined(QTI_BSP) && defined(SDM_TARGET)
|
||||||
uint32_t ExHWComposer::getS3DFlag(int disp) const {
|
uint32_t ExHWComposer::getS3DFlag(int disp) const {
|
||||||
|
if (disp < 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
const DisplayData& disp_data(mDisplayData[disp]);
|
const DisplayData& disp_data(mDisplayData[disp]);
|
||||||
|
|
||||||
for (size_t i=0 ; i<disp_data.list->numHwLayers-1; i++) {
|
for (size_t i=0 ; i<disp_data.list->numHwLayers-1; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user