| 21 | |
| 22 | namespace tgfx { |
| 23 | DefaultTextureView::DefaultTextureView(std::unique_ptr<GPUTexture> texture, ImageOrigin origin) |
| 24 | : TextureView(origin), _texture(std::move(texture)) { |
| 25 | } |
| 26 | |
| 27 | size_t DefaultTextureView::memoryUsage() const { |
| 28 | if (auto hardwareBuffer = _texture->getHardwareBuffer()) { |
nothing calls this directly
no outgoing calls
no test coverage detected