summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/SkiaVulkanPipeline.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2020-02-05 15:41:51 -0500
committerDerek Sollenberger <djsollen@google.com>2020-02-06 07:41:50 -0500
commit1863d94e9a32a210cfb50d7c22bbac30dc33e010 (patch)
tree72e3c07f29692eaa994c888feaefc018b08e7dce /libs/hwui/pipeline/skia/SkiaVulkanPipeline.h
parent929de647969cf5efa1778fe4b54ee968bff4d613 (diff)
Ensure SkiaPipeline always has a valid colorspace.
Previously we didn't assign a colorspace to the pipeline until it was provided a surface to render into. This resulted in undefined behavior if the application attempted to render an offscreen layer before the OS provided the main window with its surface. Now instead of deferring setting whether or not the application is wide gamut we do initialize it to a default setting when the pipeline is created. Bug: 148042673 Test: apct/device_boot_health_check_extra_postsubmit Change-Id: I84d743511e949ac977486470bb14eec936de7f88
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaVulkanPipeline.h')
-rw-r--r--libs/hwui/pipeline/skia/SkiaVulkanPipeline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaVulkanPipeline.h b/libs/hwui/pipeline/skia/SkiaVulkanPipeline.h
index 31734783de7f..c8bf233d8e1c 100644
--- a/libs/hwui/pipeline/skia/SkiaVulkanPipeline.h
+++ b/libs/hwui/pipeline/skia/SkiaVulkanPipeline.h
@@ -43,7 +43,7 @@ public:
FrameInfo* currentFrameInfo, bool* requireSwap) override;
DeferredLayerUpdater* createTextureLayer() override;
bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior,
- renderthread::ColorMode colorMode, uint32_t extraBuffers) override;
+ uint32_t extraBuffers) override;
void onStop() override;
bool isSurfaceReady() override;
bool isContextReady() override;