summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/VkFunctorDrawable.cpp
AgeCommit message (Collapse)Author
2021-05-22Use TraceUtils.h from gui shared library.rnlee
Test: It makes Bug: 183120308 Change-Id: I331262dd2da59817031f0c708f4c102041dcb5e0
2020-09-18Migrate from SkCanvas::getGrContext to SkCanvas::recordingContextAdlai Holler
This is part of API cleanup as we make DDL usage more mainstream in Skia. Since Android doesn't use DDLs, the cast from recordingContext to directContext will always succeed and there's no functional change. Change-Id: Ie585cf6c97d01fecf082f146d5692999371fd39d
2020-06-26Remove legacy callDrawGlFunction2 from HWUIJohn Reck
Bug: 151439970 Test: CtsUiRenderingTestCases passes Change-Id: I1c29df17bb6e8b078467edf73cb3547db6948cdd
2020-02-22opt into public SkM44Mike Reed
Landing this allows Skia to remove include/private/SkM44.h Test: make Change-Id: I05881e6ae7844231a6f092aaf67c14ca46244b0f
2020-01-22extend recordingcanvas overrides for mat4Mike Reed
Note: SkCanvas now tracks a real 4x4, so android could consider using it Test: make Change-Id: I6e201f2feec4fb4663f5d3e62fe0ffef5ef9a33f
2019-04-12Support render-ahead in vulkanJohn Reck
Bug: 127822449 Test: verified render_ahead working with skiavk Change-Id: Iae1b227a763f6def035057f38cca4b0ab65c7e82
2019-03-29Fix crash in Vulkan WebView drawable when parent View has alphaStan Iliev
HWUI uses SkPaintFilterCanvas to apply View alpha in nested draw calls. This conflicts with new SkDrawable::snapGpuDrawHandler API used by Vulkan WebView. The new API works only with GPU device (see SkGpuDevice::drawDrawable), which SkPaintFilterCanvas does not have (it uses SkNoPixelsDevice instead). This CL uses new Skia API to find wrapped GPU canvas and draw SkDrawable on it. Improve SKP capture for Vulkan WebView to match GL. Test: Ran Fandango app with Vulkan. Captured a SKP. Bug: 128792554 Change-Id: I27040347dc25c799b4e75f50526f426e9e33b663
2019-03-25Deprecate is_layer for vulkan functorBo Liu
Webview no longer needs this. Bug: 124123583 Test: comppiles and vulkan webview in layer keeps working Change-Id: Ib54e33649eb027a03184c5d7588cfd9568c90a6c
2019-02-04Do not call postDrawVk if did not call drawVkBo Liu
Reland enable vulkan webview functor Bug: 123877499 Bug: 115613038 Test: Gmail in bug no longer crashing. Change-Id: I7df761a4691ceaa6c2a02b256d61554e57139409
2019-01-15VkFunctorDrawable implementationBo Liu
Bug: 115613038 Test: Turning on vulkan with appropriate webview apk does not crash and sort of works. Change-Id: If1504da7a35e4bd74a994ab2c2a351e6bc415a18
2018-12-14New WebViewFunctor APIJohn Reck
Should function alongside existing functor API. Bug: 120997728 Test: hwuiunit passes Change-Id: I8f6143d0be1111431b55016f34de319f6b8c8910
2018-12-05Add non-interop Vulkan functorChris Blume
An interop Vulkan functor already exists. It will call the OpenGL functor and use AHardwareBuffer to translate the OpenGL textures into something which can be used in Vulkan. This CL adds the frameworks for a non-interop Vulkan functor. This functor is not yet complete (and as a result cannot yet be tested). This is just setting the stage for future work. Test: This is dead code and cannot yet be tested. BUG=115613038 Change-Id: I2b87c86cb511abb961c31c17c2fbbc085b07ca4a
2018-11-06Rename VkFunctorDrawable->VkInteropFunctorDrawableChris Blume
The Vulkan functor is currently doing interop, calling into the real OpenGL functor. We will be adding a real, non-interop Vulkan functor soon. In order to enable that, this patch renames the existing VkFunctorDrawable to VkInteropFunctorDrawable. That allows us to use the name VkFunctorDrawable for the real functor. Test: This is a simple rename. Existing unit tests should work. BUG=115613038 Change-Id: I427ad4d17ee92c3832e7bace55450b41a036f557
2018-09-18Implement WebView support for Vulkan using temporary bufferStan Iliev
Draw WebView in an offscreen GL buffer, then import and draw the buffer with Vulkan. Bug: 115610873 Test: Passed WebView CTS tests that are part of UiRendering. Change-Id: Ida137fe9b8652d2a936ec2798b909be7e77b3462