File indexing completed on 2024-11-10 04:56:56
0001 /* 0002 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "qpaintersurfacetexture.h" 0008 0009 namespace KWin 0010 { 0011 0012 QPainterSurfaceTexture::QPainterSurfaceTexture(QPainterBackend *backend) 0013 : m_backend(backend) 0014 { 0015 } 0016 0017 bool QPainterSurfaceTexture::isValid() const 0018 { 0019 return !m_image.isNull(); 0020 } 0021 0022 QPainterBackend *QPainterSurfaceTexture::backend() const 0023 { 0024 return m_backend; 0025 } 0026 0027 QImage QPainterSurfaceTexture::image() const 0028 { 0029 return m_image; 0030 } 0031 0032 } // namespace KWin