From 67b1e2b6ba789f1d16e76f5d1d64cc6da00fa738 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 26 Aug 2020 13:17:24 -0700 Subject: RE-on-SK The First Steps Lots of stuff is broken, but it puts things on screen Test: enable via setprop, force gpu comp Bug: 164223050 Change-Id: I443f751f5db95fbe9f4ee9294e3bace6e213545e --- services/surfaceflinger/RegionSamplingThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'services/surfaceflinger/RegionSamplingThread.cpp') diff --git a/services/surfaceflinger/RegionSamplingThread.cpp b/services/surfaceflinger/RegionSamplingThread.cpp index a2fc6925b8..890945f6f3 100644 --- a/services/surfaceflinger/RegionSamplingThread.cpp +++ b/services/surfaceflinger/RegionSamplingThread.cpp @@ -441,7 +441,8 @@ void RegionSamplingThread::captureSample() { mCachedBuffer->getHeight() == sampledBounds.getHeight()) { buffer = mCachedBuffer; } else { - const uint32_t usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_HW_RENDER; + const uint32_t usage = + GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE; buffer = new GraphicBuffer(sampledBounds.getWidth(), sampledBounds.getHeight(), PIXEL_FORMAT_RGBA_8888, 1, usage, "RegionSamplingThread"); } -- cgit v1.2.3-59-g8ed1b