summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
AgeCommit message (Collapse)Author
2017-07-12Merge "Update to use GrBackendTexture/RT instead of Descriptors"Greg Daniel
2017-07-12Update to use GrBackendTexture/RT instead of DescriptorsGreg Daniel
Test: manual testing Change-Id: Ide727a39e2c49f226c8d432608e0072214249451
2017-07-12Remove more references to kIndex_8Leon Scroggins III
Test: Covered by existing tests. No actual change in behavior, since kIndex_8 is not being used anyway. Bug: 62483967 Change-Id: I317e3a814dbd102925fe412d2e19111b0af3af38
2017-06-14Use RGBA16F layers when wide color gamut rendering is onRomain Guy
Layers created using View.setLayerType() or Canvas.saveLayer() need to be RGBA16F/scRGB-nl when within a window that requested wide color gamut rendering. Bug: 29940137 Test: CtsUiRenderingTestCases, CtsGraphicsTestCases, hwui_unit_tests Change-Id: I42fd6355448c92041491a7109e3ac8a153d38bf9
2017-06-02Merge "Implement HW Bitmap for Skia pipeline"TreeHugger Robot
2017-06-02Implement HW Bitmap for Skia pipelineStan Iliev
Implement HW Bitmap for Skia pipeline. Use new Skia SkImage::MakeFromAHardwareBuffer API, which will enable to record HW Bitmap into a picture. Move logic that uploads SkBitmap into a GraphicBuffer into pipeline specific classes. Test: All CTS and other tests pass for HWUI pipleine. For Skia pipeline graphics CTS tests pass, 2 UIRendering CTS tests which excise HW bitmaps with color spaces fail, bitmapShaderEglImage macrobench fails (to be fixed by a CL in Skia), HWUI unit tests pass, no EGL leaks found. Change-Id: Id5926d7cccd81af8b55400f44fb524a427543d05
2017-06-02Enable wide color gamut renderingRomain Guy
When wide color gamut rendering is requested, hwui will now use an rgba16f scRGB-nl surface for rendering. This change also fixes the way screenshots are handled in the platform to behave properly with wide gamut rendering. This change does not affect hardware layers. They also need to use rgba16f scRGB-nl; this will be addressed in another CL. Bug: 29940137 Test: CtsUiRenderingTestCases, CtsGraphicsTestCases Change-Id: I68fd96c451652136c566ec48fb0e97c2a7a257c5
2017-05-17Revert "Fix recent apps in system UI for Skia pipeline"John Reck
This reverts commit b33013fb3c570e0a3ced8729dced9f0d294761a6. Reason for revert: Caused a memory leak, b/38330767 Bug: 38136140 Bug: 38330767 Test: manual, verified memory isn't leaking doing the steps in b/38330767 Change-Id: I98b2dfd750be57a15785808e2d5723616e2ce20a
2017-05-12Fix recent apps in system UI for Skia pipelineStan Iliev
Enable HW Bitmaps for Skia pipeline just enough to make recent apps list working by adding support for BitmapShader. Drawing HW bitmaps in a canvas is also supported. Test: recent apps work, HWUI unit tests pass, CTS tests pass. bug: 38136140 Change-Id: Ibd06c859c86dc213310d5ce5272497e1882d0cc6
2017-02-23fallout of libandroid.so splitMathias Agopian
Test: compiled & booted Bug: 35164655 Change-Id: I786167a21453e17493969cdacfc9d31bdb781d98
2017-02-15updateTexImage before bitmap readback of DeferredLayerUpdatersChris Craik
Bug: 34206215 Test: hwui unit tests passing Change-Id: I4360c0d94a831b4d2ebfd4020e4241658bfa190a
2017-01-30Explicitly destroy Layer in DeferredLayerUpdater on destroyHardwareResources()sergeyv
Change-Id: I0987104eabda9a2a302b9e765213aad48f93aea4 Test: refactoring CL. Existing tests still pass bug:33753499
2017-01-10Break Layer class into Gl and Vulkan subclassesGreg Daniel
Test: manual testing Change-Id: Ibd2beed39de3ac6da7448e96496253cfe427dfbb
2016-12-09Make buffer age work in VulkanGreg Daniel
Test: manual testing in skiavk mode Change-Id: I5b9d8af7d9cecf2f022ef104ec33a5b7477e9e0c
2016-11-16Support Surface and Layer Readback in the SkiaPipelines.Derek Sollenberger
Test: CTS TextureViewTests and UIRendering Change-Id: I2969c8f5a975bfd9aebcbb585c64d1fcbb2487c2
2016-11-08Merge "Add debug memory tracking to SkiaGLPipeline"TreeHugger Robot
2016-11-07Add debug memory tracking to SkiaGLPipelineMatt Sarett
Test: Sample output is below D/OpenGLRenderer: Resource Cache Usage: D/OpenGLRenderer: 32 items out of 8192 maximum items D/OpenGLRenderer: 4635572 bytes (4.42 MB) out of 96.00 MB maximum This is less verbose than OpenGL memory debug output for two reasons: (1) SkiaGL has less caches. (2) SkiaGL does not support printing on cache additions/evictions. This seems like more of an internal debugging tool rather than a user-facing debug feature. I think it's best to leave this unimplemented until we find that it might be useful. BUG:32370375 Change-Id: Ib063f1c2a7f88e9840341b1001d227f556d88f26
2016-11-07Fix bug with displaying visual profile barsMatt Sarett
Test: Used debugging feature. BUG:32370375 Change-Id: I56e4e2155566a219ce43882e48b327123edccfe2
2016-11-03Add SkiaProfileRenderer to draw visual debugging infoMatt Sarett
This adds support for debug.hwui.profile and debug.hwui.show_dirty_regions to the Skia pipelines. There still may be some follow up work for profiling with visual bars. The speed at which the renderer is able to draw the rects in the graph is having a noticeable effect on the actual data in the graphs. Test: Verified that the features work as expected. BUG:32370375 Change-Id: I24430da2bab3eb54f6a771f9c984f8ae0008a5a7
2016-11-03Implement Skia pipelines for OpenGL and Vulkan.Stan Iliev
Implement Skia pipelines for OpenGL and Vulkan: base SkiaPipeline, SkiaOpenGLPipeline and SkiaVulkanPipeline. Write unit tests for SkiaPipeline. Test: Built and run manually on angler-eng. Change-Id: Ie02583426cb3547541ad9bf91700602a6163ff58