Home
last modified time | relevance | path

Searched refs:GrDirectContext (Results 1 – 25 of 225) sorted by relevance

123456789

/third_party/skia/src/gpu/
DGrDirectContext.cpp72 GrDirectContext::DirectContextID GrDirectContext::DirectContextID::Next() { in Next()
81 GrDirectContext::GrDirectContext(GrBackendApi backend, const GrContextOptions& options) in GrDirectContext() function in GrDirectContext
86 GrDirectContext::~GrDirectContext() { in ~GrDirectContext()
108 sk_sp<GrContextThreadSafeProxy> GrDirectContext::threadSafeProxy() { in threadSafeProxy()
112 void GrDirectContext::resetGLTextureBindings() { in resetGLTextureBindings()
119 void GrDirectContext::resetContext(uint32_t state) { in resetContext()
124 void GrDirectContext::abandonContext() { in abandonContext()
154 bool GrDirectContext::abandoned() { in abandoned()
166 bool GrDirectContext::oomed() { return fGpu ? fGpu->checkAndResetOOMed() : false; } in oomed()
168 void GrDirectContext::releaseResourcesAndAbandonContext() { in releaseResourcesAndAbandonContext()
[all …]
DGrDirectContextPriv.h35 GrDirectContext* context() { return static_cast<GrDirectContext*>(fContext); } in context()
36 const GrDirectContext* context() const { return static_cast<const GrDirectContext*>(fContext); } in context()
143 explicit GrDirectContextPriv(GrDirectContext* dContext) : GrRecordingContextPriv(dContext) {} in GrDirectContextPriv()
152 friend class GrDirectContext; // to construct/copy this type. variable
157 inline GrDirectContextPriv GrDirectContext::priv() { return GrDirectContextPriv(this); } in priv()
160 inline const GrDirectContextPriv GrDirectContext::priv() const { in priv()
161 return GrDirectContextPriv(const_cast<GrDirectContext*>(this)); in priv()
DGrClientMappedBufferManager.h34 GrDirectContext::DirectContextID intendedRecipient) in BufferFinishedMessage()
42 GrDirectContext::DirectContextID fIntendedRecipient;
45 GrDirectContext::DirectContextID,
48 GrClientMappedBufferManager(GrDirectContext::DirectContextID owningDirectContext);
60 GrDirectContext::DirectContextID owningDirectContext() const { in owningDirectContext()
85 GrDirectContext::DirectContextID potentialRecipient);
DGrAHardwareBufferUtils.h17 class GrDirectContext; variable
27 GrBackendFormat GetBackendFormat(GrDirectContext* context, AHardwareBuffer* hardwareBuffer,
32 typedef void (*UpdateImageProc)(TexImageCtx, GrDirectContext*);
56 GrBackendTexture MakeBackendTexture(GrDirectContext* context, AHardwareBuffer* hardwareBuffer,
DSurfaceContext.h86 bool readPixels(GrDirectContext* dContext, GrPixmap dst, SkIPoint srcPt);
94 void asyncRescaleAndReadPixels(GrDirectContext*,
103 void asyncRescaleAndReadPixelsYUV420(GrDirectContext*,
119 bool writePixels(GrDirectContext* dContext,
130 bool writePixels(GrDirectContext* dContext,
213 void asyncReadPixels(GrDirectContext*,
242 bool internalWritePixels(GrDirectContext* dContext,
DGrBackendTextureImageGenerator.h54 GrDirectContext::DirectContextID owningContextID,
63 GrDirectContext::DirectContextID owningContextID,
69 GrDirectContext::DirectContextID fOwningContextID;
80 GrDirectContext::DirectContextID fBorrowingContextID;
/third_party/skia/tools/
DDDLTileHelper.h39 GrDirectContext*,
50 void precompile(GrDirectContext*);
55 void drawSKPDirectly(GrDirectContext*, const SkPicture*);
58 void draw(GrDirectContext*);
75 static void CreateBackendTexture(GrDirectContext*, TileData*);
76 static void DeleteBackendTexture(GrDirectContext*, TileData*);
101 DDLTileHelper(GrDirectContext*,
109 GrDirectContext*,
123 void interleaveDDLCreationAndDraw(GrDirectContext*, SkPicture*);
127 void drawAllTilesDirectly(GrDirectContext*, SkPicture*);
[all …]
DDDLPromiseImageHelper.h21 class GrDirectContext; variable
36 PromiseImageCallbackContext(GrDirectContext* direct, GrBackendFormat backendFormat) in PromiseImageCallbackContext()
76 GrDirectContext* fContext;
115 sk_sp<SkPicture> recreateSKP(GrDirectContext*, SkPicture*);
117 void uploadAllToGPU(SkTaskGroup*, GrDirectContext*);
118 void deleteAllFromGPU(SkTaskGroup*, GrDirectContext*);
127 void createCallbackContexts(GrDirectContext*);
220 static void CreateBETexturesForPromiseImage(GrDirectContext*, PromiseImageInfo*);
227 void uploadImage(GrDirectContext*, PromiseImageInfo*);
DDDLTileHelper.cpp23 GrDirectContext* direct, in init()
99 void DDLTileHelper::TileData::precompile(GrDirectContext* direct) { in precompile()
132 void DDLTileHelper::TileData::drawSKPDirectly(GrDirectContext* dContext, in drawSKPDirectly()
151 void DDLTileHelper::TileData::draw(GrDirectContext* direct) { in draw()
192 void DDLTileHelper::TileData::CreateBackendTexture(GrDirectContext* direct, TileData* tile) { in CreateBackendTexture()
202 void DDLTileHelper::TileData::DeleteBackendTexture(GrDirectContext*, TileData* tile) { in DeleteBackendTexture() argument
222 DDLTileHelper::DDLTileHelper(GrDirectContext* direct, in DDLTileHelper()
281 static void do_gpu_stuff(GrDirectContext* direct, DDLTileHelper::TileData* tile) { in do_gpu_stuff()
294 GrDirectContext* dContext, in kickOffThreadedWork()
322 void DDLTileHelper::interleaveDDLCreationAndDraw(GrDirectContext* dContext, SkPicture* picture) { in interleaveDDLCreationAndDraw()
[all …]
/third_party/skia/include/gpu/
DGrDirectContext.h47 class SK_API GrDirectContext : public GrRecordingContext {
54 static sk_sp<GrDirectContext> MakeGL(sk_sp<const GrGLInterface>, const GrContextOptions&);
55 static sk_sp<GrDirectContext> MakeGL(sk_sp<const GrGLInterface>);
56 static sk_sp<GrDirectContext> MakeGL(const GrContextOptions&);
57 static sk_sp<GrDirectContext> MakeGL();
68 static sk_sp<GrDirectContext> MakeVulkan(const GrVkBackendContext&, const GrContextOptions&);
69 static sk_sp<GrDirectContext> MakeVulkan(const GrVkBackendContext&);
80 static sk_sp<GrDirectContext> MakeMetal(const GrMtlBackendContext&, const GrContextOptions&);
81 static sk_sp<GrDirectContext> MakeMetal(const GrMtlBackendContext&);
90 static sk_sp<GrDirectContext> MakeMetal(void* device, void* queue, const GrContextOptions&);
[all …]
/third_party/skia/tools/gpu/
DManagedBackendTexture.h28 static sk_sp<ManagedBackendTexture> MakeWithData(GrDirectContext*, Args&&...);
39 static sk_sp<ManagedBackendTexture> MakeWithoutData(GrDirectContext*, Args&&...);
42 static sk_sp<ManagedBackendTexture> MakeFromInfo(GrDirectContext* dContext,
48 static sk_sp<ManagedBackendTexture> MakeFromBitmap(GrDirectContext*,
54 static sk_sp<ManagedBackendTexture> MakeFromPixmap(GrDirectContext*,
95 sk_sp<GrDirectContext> fDContext;
100 inline sk_sp<ManagedBackendTexture> ManagedBackendTexture::MakeWithData(GrDirectContext* dContext, in MakeWithData()
115 GrDirectContext* dContext, in MakeWithoutData()
DGrContextFactory.h143 ContextInfo getSharedContextInfo(GrDirectContext* shareContext, uint32_t shareIndex = 0);
148 GrDirectContext* get(ContextType type, ContextOverrides overrides = ContextOverrides::kNone);
153 GrDirectContext* shareContext, uint32_t shareIndex);
161 GrDirectContext* fGrContext;
162 GrDirectContext* fShareContext;
181 GrDirectContext* directContext() const { return fContext; } in directContext()
196 GrDirectContext* context, in ContextInfo()
203 GrDirectContext* fContext = nullptr;
DBackendSurfaceFactory.h16 class GrDirectContext; variable
22 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext*,
30 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext*,
41 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*,
48 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*,
DBackendSurfaceFactory.cpp18 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext* dContext, in MakeBackendTextureSurface()
49 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext* dContext, in MakeBackendTextureSurface()
62 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext* dContext, in MakeBackendRenderTargetSurface()
74 sk_sp<GrDirectContext> fContext; in MakeBackendRenderTargetSurface()
95 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext* dContext, in MakeBackendRenderTargetSurface()
DFlushFinishTracker.h13 class GrDirectContext; variable
25 FlushFinishTracker(GrDirectContext* context) : fContext(context) {} in FlushFinishTracker()
32 GrDirectContext* fContext;
DBackendTextureImageFactory.h12 class GrDirectContext; variable
26 sk_sp<SkImage> MakeBackendTextureImage(GrDirectContext*,
32 sk_sp<SkImage> MakeBackendTextureImage(GrDirectContext*,
/third_party/skia/src/image/
DSkImage_Base.h27 class GrDirectContext; variable
44 virtual bool onReadPixels(GrDirectContext*,
84 GrDirectContext* directContext() const;
87 virtual GrSemaphoresSubmitted onFlush(GrDirectContext*, const GrFlushInfo&) const { in onFlush() argument
131 virtual bool getROPixels(GrDirectContext*, SkBitmap*,
134 virtual sk_sp<SkImage> onMakeSubset(const SkIRect&, GrDirectContext*) const = 0;
138 virtual bool onAsLegacyBitmap(GrDirectContext*, SkBitmap*) const;
158 GrDirectContext*) const = 0;
DSkImage_GpuBase.h18 class GrDirectContext; variable
26 bool getROPixels(GrDirectContext*, SkBitmap*, CachingHint) const final;
27 sk_sp<SkImage> onMakeSubset(const SkIRect& subset, GrDirectContext*) const final;
29 bool onReadPixels(GrDirectContext *dContext,
/third_party/skia/include/core/
DSkImage.h41 class GrDirectContext; variable
270 static sk_sp<SkImage> MakeTextureFromCompressed(GrDirectContext* direct,
373 static sk_sp<SkImage> MakeCrossContextFromPixmap(GrDirectContext* context,
556 GrDirectContext* context,
737 GrSemaphoresSubmitted flush(GrDirectContext* context, const GrFlushInfo& flushInfo) const;
739 void flush(GrDirectContext* context) const { this->flush(context, {}); } in flush()
744 void flushAndSubmit(GrDirectContext*) const;
811 bool readPixels(GrDirectContext* context,
849 bool readPixels(GrDirectContext* context,
1059 sk_sp<SkImage> makeSubset(const SkIRect& subset, GrDirectContext* direct = nullptr) const;
[all …]
/third_party/skia/tools/skottie_ios_app/
DSkiaGLContext.mm9 #include "include/gpu/GrDirectContext.h"
25 static sk_sp<SkSurface> make_gl_surface(GrDirectContext* dContext, int width, int height) {
57 withDirectContext:(GrDirectContext*)dContext; argument
61 GrDirectContext* fDContext;
66 withDirectContext:(GrDirectContext*)dContext { argument
83 NSLog(@"Error: GrDirectContext missing.\n");
110 sk_sp<GrDirectContext> fDContext;
125 fDContext = GrDirectContext::MakeGL(nullptr, GrContextOptions());
128 NSLog(@"GrDirectContext::MakeGL failed");
DGrContextHolder.mm11 #include "include/gpu/GrDirectContext.h"
16 return GrContextHolder(GrDirectContext::MakeGL(nullptr, GrContextOptions()).release());
20 void GrContextRelease::operator()(GrDirectContext* ptr) { SkSafeUnref(ptr); }
24 void GrContextRelease::operator()(GrDirectContext*) { SkDEBUGFAIL(""); }
DSkiaMetalContext.mm7 #include "include/gpu/GrDirectContext.h"
25 grDevice:(GrDirectContext*)dContext; argument
30 GrDirectContext* fDContext;
36 grDevice:(GrDirectContext*)dContext { argument
80 sk_sp<GrDirectContext> fDContext;
91 fDContext = GrDirectContext::MakeMetal((__bridge void*)[self metalDevice],
96 NSLog(@"GrDirectContext::MakeMetal failed");
DGrContextHolder.h8 class GrDirectContext; variable
11 struct GrContextRelease { void operator()(GrDirectContext*); };
12 using GrContextHolder = std::unique_ptr<GrDirectContext, GrContextRelease>;
/third_party/skia/experimental/graphite/src/
DImage_Graphite.h20 bool onReadPixels(GrDirectContext*, in onReadPixels() argument
30 bool getROPixels(GrDirectContext*,
34 sk_sp<SkImage> onMakeSubset(const SkIRect&, GrDirectContext*) const override { in onMakeSubset() argument
42 GrDirectContext*) const override { in onMakeColorTypeAndColorSpace() argument
/third_party/skia/dm/
DDMSrcSink.h89 virtual Result SK_WARN_UNUSED_RESULT draw(GrDirectContext* context, SkCanvas* canvas) const = 0;
96 virtual Result SK_WARN_UNUSED_RESULT draw([[maybe_unused]] int page, GrDirectContext* context, in draw()
137 Result draw(GrDirectContext*, SkCanvas*) const override;
169 Result draw(GrDirectContext*, SkCanvas*) const override;
187 Result draw(GrDirectContext*, SkCanvas*) const override;
216 Result draw(GrDirectContext*, SkCanvas*) const override;
236 Result draw(GrDirectContext*, SkCanvas*) const override;
253 Result draw(GrDirectContext*, SkCanvas*) const override;
266 Result draw(GrDirectContext*, SkCanvas*) const override;
280 Result draw(GrDirectContext*, SkCanvas*) const override;
[all …]

123456789