From cae0b21c5816b4e3991b27f59d6faaf180db50e1 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Tue, 12 Sep 2023 18:33:10 +0000 Subject: [base] Update GrDirectContext calls to use safer API In http://review.skia.org/750403 and http://review.skia.org/751523, Skia modified some GrDirectContext APIs to make them less error-prone in response to https://crbug.com/1475906. This updates part of Android to call those modified APIs. Change-Id: I164fcc735b3c36bf58de2f1ed9f277e90fc09325 --- libs/hwui/HardwareBitmapUploader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/hwui/HardwareBitmapUploader.cpp') diff --git a/libs/hwui/HardwareBitmapUploader.cpp b/libs/hwui/HardwareBitmapUploader.cpp index 19a1dfa91539..16de21def0e3 100644 --- a/libs/hwui/HardwareBitmapUploader.cpp +++ b/libs/hwui/HardwareBitmapUploader.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -265,7 +266,7 @@ private: sk_sp image = SkImages::TextureFromAHardwareBufferWithData(mGrContext.get(), bitmap.pixmap(), ahb); - mGrContext->submit(true); + mGrContext->submit(GrSyncCpu::kYes); uploadSucceeded = (image.get() != nullptr); }); -- cgit v1.2.3-59-g8ed1b