# HwTextureView **Repository Path**: duraemon/HwTextureView ## Basic Information - **Project Name**: HwTextureView - **Description**: Android TextureView with hardware acceleration - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-31 - **Last Updated**: 2025-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HwTextureView Android TextureView with hardware acceleration ## Usage ``` kotlin implementation("io.github.liuwons:hwtextureview:1.0.2") ``` Get **Canvas** by `HwTextureView.lockCanvas()` and draw ! ## Performance Test | | TextureView | HwTextureView | | ---- | ----------- | ------------- | | frame render time | 10ms | 1ms | | CPU | 13ms | 8ms | Test project: [TextureViewPlayground](https://github.com/liuwons/TextureViewPlayground) Render content: 30 stroked path ![texture_view_benchmark](resources/texture_view_benchmark.png)