Searched refs:GrSurface (Results 1 - 25 of 34) sorted by relevance

12

/external/skia/src/gpu/
H A DGrSurfacePriv.h11 #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). */
22 * known to GrSurface (e.g. alphaType).
37 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {}
45 GrSurface* fSurface;
47 friend class GrSurface; // to construct/copy this type.
50 inline GrSurfacePriv GrSurface::surfacePriv() { return GrSurfacePriv(this); }
52 inline const GrSurfacePriv GrSurface
[all...]
H A DGrSurface.cpp8 #include "GrSurface.h"
16 bool GrSurface::writePixels(int left, int top, int width, int height,
28 bool GrSurface::readPixels(int left, int top, int width, int height,
44 SkImageInfo GrSurface::info() const {
56 bool GrSurface::savePixels(const char* filename) {
81 void GrSurface::flushWrites() {
87 void GrSurface::prepareForExternalRead() {
93 bool GrSurface::hasPendingRead() const {
105 bool GrSurface::hasPendingWrite() const {
117 bool GrSurface
[all...]
H A DGrCommandBuilder.cpp64 GrTargetCommands::Cmd* GrCommandBuilder::recordCopySurface(GrSurface* dst,
65 GrSurface* src,
H A DGrCommandBuilder.h56 virtual Cmd* recordCopySurface(GrSurface* dst,
57 GrSurface* src,
H A DGrDrawTarget.h186 bool copySurface(GrSurface* dst,
187 GrSurface* src,
194 bool canCopySurface(const GrSurface* dst,
195 const GrSurface* src,
309 virtual void onCopySurface(GrSurface* dst,
310 GrSurface* src,
H A DGrTargetCommands.h207 CopySurface(GrSurface* dst, GrSurface* src)
213 GrSurface* dst() const { return fDst.get(); }
214 GrSurface* src() const { return fSrc.get(); }
222 GrPendingIOResource<GrSurface, kWrite_GrIOType> fDst;
223 GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc;
H A DGrGpu.h238 virtual bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) = 0;
265 virtual bool canCopySurface(const GrSurface* dst,
266 const GrSurface* src,
274 virtual bool copySurface(GrSurface* dst,
275 GrSurface* src,
H A DGrTest.cpp158 bool canCopySurface(const GrSurface* dst,
159 const GrSurface* src,
163 bool copySurface(GrSurface* dst,
164 GrSurface* src,
168 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) override {
H A DGrInOrderDrawBuffer.h110 void onCopySurface(GrSurface* dst,
111 GrSurface* src,
H A DGrTextureProvider.cpp94 GrSurface* surface = static_cast<GrSurface*>(resource);
H A DGrXferProcessor.cpp57 if (static_cast<const GrSurface*>(rt) == this->getDstCopyTexture()) {
H A DGrInOrderDrawBuffer.cpp120 void GrInOrderDrawBuffer::onCopySurface(GrSurface* dst,
121 GrSurface* src,
/external/skia/tests/
H A DGrSurfaceTest.cpp19 // Tests that GrSurface::asTexture(), GrSurface::asRenderTarget(), and static upcasting of texture
20 // and render targets to GrSurface all work as expected.
21 DEF_GPUTEST(GrSurface, reporter, factory) {
30 GrSurface* texRT1 = context->textureProvider()->createTexture(desc, false, NULL, 0);
34 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) ==
37 static_cast<GrSurface*>(texRT1->asTexture()));
38 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) ==
39 static_cast<GrSurface*>(texRT1->asTexture()));
42 GrSurface* tex
[all...]
/external/skia/include/gpu/
H A DSkGrPixelRef.h38 * PixelRef that wraps a GrSurface
44 * Constructs a pixel ref around a GrSurface.
46 SkGrPixelRef(const SkImageInfo&, GrSurface*);
59 GrSurface* fSurface;
H A DGrSurface.h21 class GrSurface : public GrGpuResource { class in inherits:GrGpuResource
23 SK_DECLARE_INST_COUNT(GrSurface);
141 GrSurface(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc) function in class:GrSurface
H A DGrGpuResourceRef.h119 GrSurface* surface = static_cast<GrSurface*>(this->getResource());
140 GrSurface* surface = static_cast<GrSurface*>(this->getResource());
H A DGrRenderTarget.h11 #include "GrSurface.h"
24 class GrRenderTarget : virtual public GrSurface {
28 // GrSurface overrides
117 typedef GrSurface INHERITED;
H A DGrContext.h461 bool writeSurfacePixels(GrSurface* surface,
476 void copySurface(GrSurface* dst,
477 GrSurface* src,
484 bool copySurface(GrSurface* dst, GrSurface* src) {
497 void flushSurfaceWrites(GrSurface* surface);
508 void prepareSurfaceForExternalRead(GrSurface*);
H A DGrTexture.h12 #include "GrSurface.h"
19 class GrTexture : virtual public GrSurface {
70 typedef GrSurface INHERITED;
H A DGrTextureProvider.h47 GrTexture* texture = static_cast<GrSurface*>(resource)->asTexture();
H A DGrClip.h12 #include "GrSurface.h"
160 void getConservativeBounds(const GrSurface* surface,
/external/skia/src/gpu/gl/
H A DGrGLTexture.cpp14 // Because this class is virtually derived from GrSurface we must explicitly call its constructor.
16 : GrSurface(gpu, idDesc.fLifeCycle, desc)
23 : GrSurface(gpu, idDesc.fLifeCycle, desc)
H A DGrGLTextureRenderTarget.h25 // We're virtually derived from GrSurface (via both GrGLTexture and GrGLRenderTarget) so its
31 : GrSurface(gpu, texIDDesc.fLifeCycle, desc)
H A DGrGLRenderTarget.cpp15 // Because this class is virtually derived from GrSurface we must explicitly call its constructor.
17 : GrSurface(gpu, idDesc.fLifeCycle, desc)
25 : GrSurface(gpu, idDesc.fLifeCycle, desc)
H A DGrGLGpu.h73 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) override;
99 bool copySurface(GrSurface* dst,
100 GrSurface* src,
104 bool canCopySurface(const GrSurface* dst,
105 const GrSurface* src,
292 GrGLuint bindSurfaceAsFBO(GrSurface* surface, GrGLenum fboTarget, GrGLIRect* viewport,

Completed in 178 milliseconds

12