Loading libs/surfaceflinger/LayerBuffer.cpp +35 −29 Original line number Diff line number Diff line Loading @@ -493,10 +493,15 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const copybit->set_parameter(copybit, COPYBIT_DITHER, COPYBIT_DISABLE); err = copybit->stretch(copybit, &tmp.img, &src.img, &tmp.crop, &src.crop, &tmp_it); if (err != NO_ERROR) { LOGE("copybit failed (%s)", strerror(err)); } else { src = tmp; } } } if (err == NO_ERROR) { const DisplayHardware& hw(mLayer.graphicPlane(0).displayHardware()); copybit_image_t dst; hw.getDisplaySurface(&dst); Loading Loading @@ -527,6 +532,7 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const LOGE("copybit failed (%s)", strerror(err)); } } } if (!can_use_copybit || err) { if (UNLIKELY(mTextureName == -1LU)) { Loading Loading
libs/surfaceflinger/LayerBuffer.cpp +35 −29 Original line number Diff line number Diff line Loading @@ -493,10 +493,15 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const copybit->set_parameter(copybit, COPYBIT_DITHER, COPYBIT_DISABLE); err = copybit->stretch(copybit, &tmp.img, &src.img, &tmp.crop, &src.crop, &tmp_it); if (err != NO_ERROR) { LOGE("copybit failed (%s)", strerror(err)); } else { src = tmp; } } } if (err == NO_ERROR) { const DisplayHardware& hw(mLayer.graphicPlane(0).displayHardware()); copybit_image_t dst; hw.getDisplaySurface(&dst); Loading Loading @@ -527,6 +532,7 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const LOGE("copybit failed (%s)", strerror(err)); } } } if (!can_use_copybit || err) { if (UNLIKELY(mTextureName == -1LU)) { Loading