diff options
author | Stan Iliev <stani@google.com> | 2017-07-24 10:20:33 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2017-07-26 09:27:29 -0400 |
commit | 08fc19af877ea4e2aed216facd469d2bd13b013e (patch) | |
tree | 2d567c2721f6168c1c7d32f0a86d55c48f5e2453 /libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp | |
parent | 71b257b5f4fe5a7cbd46ae82a8d33a51fe43b6ac (diff) |
Use F16 render target when wide color rendering is enabled
Support F16 render targets in Skia pipeline. Enable readback from
F16 surface.
Test: device boots with Skia pipeline
Change-Id: Ib31e618be1a987de3736987a496c799693923594
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp index 925db303461f..bf774460f04e 100644 --- a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp +++ b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp @@ -73,9 +73,11 @@ bool SkiaOpenGLPipeline::draw(const Frame& frame, const SkRect& screenDirty, // setup surface for fbo0 GrGLFramebufferInfo fboInfo; fboInfo.fFBOID = 0; + GrPixelConfig pixelConfig = + wideColorGamut ? kRGBA_half_GrPixelConfig : kRGBA_8888_GrPixelConfig; GrBackendRenderTarget backendRT(frame.width(), frame.height(), 0, STENCIL_BUFFER_SIZE, - kRGBA_8888_GrPixelConfig, fboInfo); + pixelConfig, fboInfo); SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |