/external/skia/tests/ |
H A D | GrSurfaceTest.cpp | 19 // Tests that GrSurface::asTexture(), GrSurface::asRenderTarget(), and static upcasting of texture 20 // and render targets to GrSurface all work as expected. 21 DEF_GPUTEST_FOR_NULL_CONTEXT(GrSurface, reporter, context) { 28 GrSurface* texRT1 = context->textureProvider()->createTexture( 33 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == 36 static_cast<GrSurface*>(texRT1->asTexture())); 37 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == 38 static_cast<GrSurface*>(texRT1->asTexture())); 41 GrSurface* tex [all...] |
H A D | GrTextureMipMapInvalidationTest.cpp | 20 // Tests that GrSurface::asTexture(), GrSurface::asRenderTarget(), and static upcasting of texture 21 // and render targets to GrSurface all work as expected. 29 GrSurface* texRT1 = context->textureProvider()->createTexture( 31 GrSurface* texRT2 = context->textureProvider()->createTexture(
|
/external/skia/src/gpu/batches/ |
H A D | GrCopySurfaceBatch.h | 23 static bool ClipSrcRectAndDstPoint(const GrSurface* dst, 24 const GrSurface* src, 30 static GrBatch* Create(GrSurface* dst, GrSurface* src, const SkIRect& srcRect, 51 GrCopySurfaceBatch(GrSurface* dst, GrSurface* src, const SkIRect& srcRect, 70 GrPendingIOResource<GrSurface, kWrite_GrIOType> fDst; 71 GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc;
|
H A D | GrCopySurfaceBatch.cpp | 12 bool GrCopySurfaceBatch::ClipSrcRectAndDstPoint(const GrSurface* dst, 13 const GrSurface* src, 62 GrBatch* GrCopySurfaceBatch::Create(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
|
/external/skia/src/gpu/ |
H A D | GrSurfacePriv.h | 11 #include "GrSurface.h" 13 /** Class that adds methods to GrSurface that are only intended for use internal to Skia. 14 This class is purely a privileged window into GrSurface. It should never have additional data 17 implemented privately in GrSurface with a inline public method here). */ 37 * GrSurface has no equivalent. 52 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {} 60 GrSurface* fSurface; 62 friend class GrSurface; // to construct/copy this type. 65 inline GrSurfacePriv GrSurface::surfacePriv() { return GrSurfacePriv(this); } 67 inline const GrSurfacePriv GrSurface [all...] |
H A D | GrGpu.h | 33 class GrSurface; 202 bool getReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, 206 to write pixels to a GrSurface for either performance or correctness reasons. */ 224 * a GrSurface. If this returns false then GrGpu could not deduce an intermediate draw 228 bool getWritePixelsInfo(GrSurface* dstSurface, int width, int height, 250 bool readPixels(GrSurface* surface, 267 bool writePixels(GrSurface* surface, 286 bool transferPixels(GrSurface* surface, 311 virtual bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const = 0; 336 bool copySurface(GrSurface* ds [all...] |
H A D | GrSurface.cpp | 8 #include "GrSurface.h" 17 size_t GrSurface::WorseCaseSize(const GrSurfaceDesc& desc) { 95 bool GrSurface::writePixels(int left, int top, int width, int height, 107 bool GrSurface::readPixels(int left, int top, int width, int height, 119 SkImageInfo GrSurface::info(SkAlphaType alphaType) const { 131 bool GrSurface::savePixels(const char* filename) { 156 void GrSurface::flushWrites() { 162 void GrSurface::prepareForExternalIO() { 168 bool GrSurface::hasPendingRead() const { 180 bool GrSurface [all...] |
H A D | GrTextureProvider.cpp | 107 GrSurface::WorseCaseSize(*desc), 110 GrSurface* surface = static_cast<GrSurface*>(resource); 163 GrTexture* texture = static_cast<GrSurface*>(resource)->asTexture();
|
H A D | GrDrawTarget.h | 74 void addDependency(GrSurface* dependedOn); 147 bool copySurface(GrSurface* dst, 148 GrSurface* src,
|
H A D | GrTest.cpp | 301 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, 305 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 314 bool onCopySurface(GrSurface* dst, 315 GrSurface* src, 319 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 365 bool onReadPixels(GrSurface* surface, 373 bool onWritePixels(GrSurface* surface, 380 bool onTransferPixels(GrSurface* surface,
|
H A D | GrGpu.cpp | 254 bool GrGpu::copySurface(GrSurface* dst, 255 GrSurface* src, 263 bool GrGpu::getReadPixelsInfo(GrSurface* srcSurface, int width, int height, size_t rowBytes, 292 bool GrGpu::getWritePixelsInfo(GrSurface* dstSurface, int width, int height, 331 bool GrGpu::readPixels(GrSurface* surface, 356 bool GrGpu::writePixels(GrSurface* surface, 372 bool GrGpu::transferPixels(GrSurface* surface,
|
/external/skia/include/gpu/ |
H A D | GrTexture.h | 12 #include "GrSurface.h" 19 class GrTexture : virtual public GrSurface { 66 typedef GrSurface INHERITED;
|
H A D | SkGrPixelRef.h | 37 * PixelRef that wraps a GrSurface 42 * Constructs a pixel ref around a GrSurface. 44 SkGrPixelRef(const SkImageInfo&, GrSurface*); 58 GrSurface* fSurface;
|
H A D | GrSurface.h | 21 class SK_API GrSurface : public GrGpuResource { class in inherits:GrGpuResource 149 GrSurface(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc) function in class:GrSurface 156 ~GrSurface() override {
|
H A D | GrGpuResourceRef.h | 117 GrSurface* surface = static_cast<GrSurface*>(this->getResource()); 138 GrSurface* surface = static_cast<GrSurface*>(this->getResource());
|
H A D | GrContext.h | 247 bool readSurfacePixels(GrSurface* surface, 268 bool writeSurfacePixels(GrSurface* surface, 282 bool copySurface(GrSurface* dst, 283 GrSurface* src, 289 bool copySurface(GrSurface* dst, GrSurface* src) { 297 void flushSurfaceWrites(GrSurface* surface); 307 void prepareSurfaceForExternalIO(GrSurface*);
|
H A D | GrRenderTarget.h | 11 #include "GrSurface.h" 25 class GrRenderTarget : virtual public GrSurface { 27 // GrSurface overrides 196 typedef GrSurface INHERITED;
|
H A D | GrDrawContext.h | 30 class GrSurface; 50 bool copySurface(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint);
|
/external/skia/src/gpu/vk/ |
H A D | GrVkGpu.h | 59 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, 63 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 74 bool onCopySurface(GrSurface* dst, 75 GrSurface* src, 79 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 158 bool onReadPixels(GrSurface* surface, 164 bool onWritePixels(GrSurface* surface, 168 bool onTransferPixels(GrSurface*, 188 void copySurfaceAsCopyImage(GrSurface* dst, 189 GrSurface* sr [all...] |
H A D | GrVkTextureRenderTarget.h | 56 : GrSurface(gpu, lifeCycle, desc) 70 : GrSurface(gpu, lifeCycle, desc)
|
H A D | GrVkTexture.cpp | 15 // Because this class is virtually derived from GrSurface we must explicitly call its constructor. 21 : GrSurface(gpu, lifeCycle, desc) 28 // Because this class is virtually derived from GrSurface we must explicitly call its constructor. 35 : GrSurface(gpu, lifeCycle, desc)
|
H A D | GrVkGpu.cpp | 239 bool GrVkGpu::onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 260 bool GrVkGpu::onWritePixels(GrSurface* surface, 967 inline bool can_copy_image(const GrSurface* dst, 968 const GrSurface* src, 983 void GrVkGpu::copySurfaceAsCopyImage(GrSurface* dst, 984 GrSurface* src, 1054 inline bool can_copy_as_draw(const GrSurface* dst, 1055 const GrSurface* src, 1060 void GrVkGpu::copySurfaceAsDraw(GrSurface* dst, 1061 GrSurface* sr [all...] |
/external/skia/src/gpu/gl/ |
H A D | GrGLGpu.h | 62 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, 66 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 70 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override; 195 bool readPixelsSupported(GrSurface* surfaceForConfig, GrPixelConfig readConfig); 197 bool onReadPixels(GrSurface*, 204 bool onWritePixels(GrSurface*, 209 bool onTransferPixels(GrSurface*, 218 bool onCopySurface(GrSurface* dst, 219 GrSurface* src, 240 void copySurfaceAsDraw(GrSurface* ds [all...] |
H A D | GrGLTextureRenderTarget.h | 26 // We're virtually derived from GrSurface (via both GrGLTexture and GrGLRenderTarget) so its 32 : GrSurface(gpu, texIDDesc.fLifeCycle, desc)
|
H A D | GrGLTexture.cpp | 15 // Because this class is virtually derived from GrSurface we must explicitly call its constructor. 17 : GrSurface(gpu, idDesc.fLifeCycle, desc) 24 : GrSurface(gpu, idDesc.fLifeCycle, desc)
|