/third_party/flutter/skia/src/gpu/ |
D | GrLegacyDirectContext.cpp | 36 class SK_API GrLegacyDirectContext : public GrContext { 123 typedef GrContext INHERITED; 126 sk_sp<GrContext> GrContext::MakeGL(sk_sp<const GrGLInterface> interface) { in MakeGL() 131 sk_sp<GrContext> GrContext::MakeGL(const GrContextOptions& options) { in MakeGL() 135 sk_sp<GrContext> GrContext::MakeGL() { in MakeGL() 140 sk_sp<GrContext> GrContext::MakeGL(sk_sp<const GrGLInterface> interface, in MakeGL() 142 sk_sp<GrContext> context(new GrLegacyDirectContext(GrBackendApi::kOpenGL, options)); in MakeGL() 155 sk_sp<GrContext> GrContext::MakeMock(const GrMockOptions* mockOptions) { in MakeMock() 160 sk_sp<GrContext> GrContext::MakeMock(const GrMockOptions* mockOptions, in MakeMock() 162 sk_sp<GrContext> context(new GrLegacyDirectContext(GrBackendApi::kMock, options)); in MakeMock() [all …]
|
D | GrContext.cpp | 48 GrContext::GrContext(GrBackendApi backend, const GrContextOptions& options, int32_t contextID) in GrContext() function in GrContext 54 GrContext::~GrContext() { in ~GrContext() 64 bool GrContext::init(sk_sp<const GrCaps> caps, sk_sp<GrSkSLFPFactoryCache> FPFactoryCache) { in init() 103 sk_sp<GrContextThreadSafeProxy> GrContext::threadSafeProxy() { in threadSafeProxy() 109 void GrContext::abandonContext() { in abandonContext() 129 void GrContext::releaseResourcesAndAbandonContext() { in releaseResourcesAndAbandonContext() 148 void GrContext::resetGLTextureBindings() { in resetGLTextureBindings() 155 void GrContext::resetContext(uint32_t state) { in resetContext() 160 void GrContext::freeGpuResources() { in freeGpuResources() 172 void GrContext::purgeUnlockedResources(bool scratchResourcesOnly) { in purgeUnlockedResources() [all …]
|
D | GrDDLContext.cpp | 18 class SK_API GrDDLContext : public GrContext { 45 GrContext* asDirectContext() override { return nullptr; } in asDirectContext() 70 typedef GrContext INHERITED; 73 sk_sp<GrContext> GrContextPriv::MakeDDL(const sk_sp<GrContextThreadSafeProxy>& proxy) { in MakeDDL() 74 sk_sp<GrContext> context(new GrDDLContext(proxy)); in MakeDDL()
|
D | GrAHardwareBufferUtils.h | 17 class GrContext; variable 27 GrBackendFormat GetBackendFormat(GrContext* context, AHardwareBuffer* hardwareBuffer, 32 typedef void (*UpdateImageProc)(TexImageCtx, GrContext*); 56 GrBackendTexture MakeBackendTexture(GrContext* context, AHardwareBuffer* hardwareBuffer,
|
D | GrContextPriv.h | 48 GrContext* asDirectContext() { return fContext->asDirectContext(); } in asDirectContext() 136 static sk_sp<GrContext> MakeDDL(const sk_sp<GrContextThreadSafeProxy>&); 273 explicit GrContextPriv(GrContext* context) : fContext(context) {} in GrContextPriv() 281 GrContext* fContext; 283 friend class GrContext; // to construct/copy this type. variable 286 inline GrContextPriv GrContext::priv() { return GrContextPriv(this); } in priv() 288 inline const GrContextPriv GrContext::priv() const { in priv() 289 return GrContextPriv(const_cast<GrContext*>(this)); in priv()
|
/third_party/flutter/skia/include/core/ |
D | SkImage.h | 33 class GrContext; variable 221 static sk_sp<SkImage> DecodeToTexture(GrContext* ctx, const void* encoded, size_t length, 223 static sk_sp<SkImage> DecodeToTexture(GrContext* ctx, const sk_sp<SkData>& data, 247 static sk_sp<SkImage> MakeFromCompressed(GrContext* context, sk_sp<SkData> data, 275 static sk_sp<SkImage> MakeFromTexture(GrContext* context, in MakeFromTexture() 310 static sk_sp<SkImage> MakeFromTexture(GrContext* context, 344 static sk_sp<SkImage> MakeCrossContextFromPixmap(GrContext* context, const SkPixmap& pixmap, 348 static sk_sp<SkImage> MakeCrossContextFromPixmap(GrContext* context, const SkPixmap& pixmap, 376 static sk_sp<SkImage> MakeFromAdoptedTexture(GrContext* context, 400 static sk_sp<SkImage> MakeFromYUVATexturesCopy(GrContext* context, [all …]
|
D | SkSurface.h | 28 class GrContext; variable 202 static sk_sp<SkSurface> MakeFromBackendTexture(GrContext* context, 241 static sk_sp<SkSurface> MakeFromBackendRenderTarget(GrContext* context, 280 static sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext* context, 309 static sk_sp<SkSurface> MakeFromAHardwareBuffer(GrContext* context, 344 static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, 372 static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, in MakeRenderTarget() 393 static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, in MakeRenderTarget() 433 static sk_sp<SkSurface> MakeFromBackendTexture(GrContext* context,
|
/third_party/flutter/skia/include/gpu/ |
D | GrContext.h | 48 class SK_API GrContext : public GrRecordingContext { 54 static sk_sp<GrContext> MakeGL(sk_sp<const GrGLInterface>, const GrContextOptions&); 55 static sk_sp<GrContext> MakeGL(sk_sp<const GrGLInterface>); 56 static sk_sp<GrContext> MakeGL(const GrContextOptions&); 57 static sk_sp<GrContext> MakeGL(); 59 static sk_sp<GrContext> MakeVulkan(const GrVkBackendContext&, const GrContextOptions&); 60 static sk_sp<GrContext> MakeVulkan(const GrVkBackendContext&); 69 static sk_sp<GrContext> MakeMetal(void* device, void* queue, const GrContextOptions& options); 70 static sk_sp<GrContext> MakeMetal(void* device, void* queue); 74 static sk_sp<GrContext> MakeDawn(const dawn::Device& device, const GrContextOptions& options); [all …]
|
/third_party/flutter/engine/flutter/shell/common/ |
D | shell_io_manager.cc | 13 sk_sp<GrContext> ShellIOManager::CreateCompatibleResourceLoadingContext( in CreateCompatibleResourceLoadingContext() 35 if (auto context = GrContext::MakeGL(gl_interface, options)) { in CreateCompatibleResourceLoadingContext() 46 sk_sp<GrContext> resource_context, in ShellIOManager() 50 resource_context_ ? std::make_unique<fml::WeakPtrFactory<GrContext>>( in ShellIOManager() 73 sk_sp<GrContext> resource_context) { in NotifyResourceContextAvailable() 82 void ShellIOManager::UpdateResourceContext(sk_sp<GrContext> resource_context) { in UpdateResourceContext() 85 resource_context_ ? std::make_unique<fml::WeakPtrFactory<GrContext>>( in UpdateResourceContext() 95 fml::WeakPtr<GrContext> ShellIOManager::GetResourceContext() const { in GetResourceContext() 98 : fml::WeakPtr<GrContext>(); in GetResourceContext()
|
D | shell_io_manager.h | 23 static sk_sp<GrContext> CreateCompatibleResourceLoadingContext( 27 ShellIOManager(sk_sp<GrContext> resource_context, 35 void NotifyResourceContextAvailable(sk_sp<GrContext> resource_context); 41 void UpdateResourceContext(sk_sp<GrContext> resource_context); 49 fml::WeakPtr<GrContext> GetResourceContext() const override; 56 sk_sp<GrContext> resource_context_; 57 std::unique_ptr<fml::WeakPtrFactory<GrContext>>
|
/third_party/flutter/skia/src/image/ |
D | SkImage_GpuBase.h | 23 SkImage_GpuBase(sk_sp<GrContext>, int width, int height, uint32_t uniqueID, SkColorType, 27 GrContext* context() const final { return fContext.get(); } in context() 54 bool onIsValid(GrContext*) const final; 57 void resetContext(sk_sp<GrContext> newContext); 63 static bool MakeTempTextureProxies(GrContext* ctx, const GrBackendTexture yuvaTextures[], 87 GrContext*, int width, int height, GrSurfaceOrigin, GrColorType, GrBackendFormat, 91 static bool RenderYUVAToRGBA(GrContext* ctx, GrRenderTargetContext* renderTargetContext, 97 sk_sp<GrContext> fContext;
|
D | SkImage.cpp | 157 bool SkImage::isValid(GrContext* context) const { in isValid() 164 GrSemaphoresSubmitted SkImage::flush(GrContext* context, const GrFlushInfo& flushInfo) { in flush() 168 void SkImage::flush(GrContext* context) { as_IB(this)->onFlush(context, {}); } in flush() 181 bool SkImage::isValid(GrContext* context) const { in isValid() 188 GrSemaphoresSubmitted SkImage::flush(GrContext*, const GrFlushInfo&) { in flush() argument 192 void SkImage::flush(GrContext*) {} in flush() argument 262 GrContext* context = as_IB(this)->context(); in makeWithFilter() 267 sk_sp<SkImage> SkImage::makeWithFilter(GrContext* grContext, in makeWithFilter() 431 sk_sp<SkImage> SkImage::DecodeToTexture(GrContext*, const void*, size_t, const SkIRect*) { in DecodeToTexture() argument 435 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext* ctx, in MakeFromTexture() [all …]
|
D | SkImage_Base.h | 48 virtual GrContext* context() const { return nullptr; } in context() 51 virtual GrSemaphoresSubmitted onFlush(GrContext* context, const GrFlushInfo&) { in onFlush() 96 virtual bool onIsValid(GrContext*) const = 0; 98 virtual bool onPinAsTexture(GrContext*) const { return false; } in onPinAsTexture() argument 99 virtual void onUnpinAsTexture(GrContext*) const {} in onUnpinAsTexture() argument
|
D | SkImage_Gpu.h | 25 SkImage_Gpu(sk_sp<GrContext>, uint32_t uniqueID, SkAlphaType, sk_sp<GrTextureProxy>, 29 GrSemaphoresSubmitted onFlush(GrContext*, const GrFlushInfo&) override; 48 static sk_sp<SkImage> MakePromiseTexture(GrContext* context, 63 static sk_sp<SkImage> ConvertYUVATexturesToRGB(GrContext*, SkYUVColorSpace yuvColorSpace,
|
D | SkImage_Gpu.cpp | 59 SkImage_Gpu::SkImage_Gpu(sk_sp<GrContext> context, uint32_t uniqueID, SkAlphaType at, in SkImage_Gpu() 67 GrSemaphoresSubmitted SkImage_Gpu::onFlush(GrContext* context, const GrFlushInfo& info) { in onFlush() 122 static sk_sp<SkImage> new_wrapped_texture_common(GrContext* ctx, in new_wrapped_texture_common() 145 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext* ctx, in MakeFromTexture() 168 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext* ctx, in MakeFromAdoptedTexture() 192 sk_sp<SkImage> SkImage::MakeFromCompressed(GrContext* context, sk_sp<SkData> data, in MakeFromCompressed() 206 sk_sp<SkImage> SkImage_Gpu::ConvertYUVATexturesToRGB(GrContext* ctx, SkYUVColorSpace yuvColorSpace, in ConvertYUVATexturesToRGB() 237 sk_sp<SkImage> SkImage::MakeFromYUVATexturesCopy(GrContext* ctx, in MakeFromYUVATexturesCopy() 260 GrContext* ctx, in MakeFromYUVATexturesCopyWithExternalBackend() 297 sk_sp<SkImage> SkImage::MakeFromYUVTexturesCopy(GrContext* ctx, SkYUVColorSpace yuvColorSpace, in MakeFromYUVTexturesCopy() [all …]
|
/third_party/flutter/skia/tools/gpu/ |
D | GrContextFactory.h | 133 ContextInfo getSharedContextInfo(GrContext* shareContext, uint32_t shareIndex = 0); 138 GrContext* get(ContextType type, ContextOverrides overrides = ContextOverrides::kNone); 143 GrContext* shareContext, uint32_t shareIndex); 151 GrContext* fGrContext; 152 GrContext* fShareContext; 170 GrContext* grContext() const { return fGrContext; } in grContext() 182 ContextInfo(GrContextFactory::ContextType type, TestContext* testContext, GrContext* grContext, in ContextInfo() 189 GrContext* fGrContext = nullptr;
|
D | YUVUtils.h | 29 sk_sp<SkImage> refImage(GrContext* context); 31 const SkImage* getImage(GrContext* context); 49 bool ensureYUVImage(GrContext* context);
|
/third_party/flutter/skia/tests/ |
D | MtlBackendAllocationTest.mm | 8 #include "include/gpu/GrContext.h" 16 void test_wrapping(GrContext* context, skiatest::Reporter* reporter, 17 std::function<GrBackendTexture (GrContext*, 22 void test_color_init(GrContext* context, skiatest::Reporter* reporter, 23 std::function<GrBackendTexture (GrContext*, 31 GrContext* context = ctxInfo.grContext(); 114 auto uninitCreateMtd = [format](GrContext* context, 128 auto createWithColorMtd = [format](GrContext* context,
|
D | PathRendererCacheTests.cpp | 31 static void draw_path(GrContext* ctx, in draw_path() 73 std::function<GrPathRenderer*(GrContext*)> createPathRenderer, in test_path() 77 sk_sp<GrContext> ctx = GrContext::MakeMock(nullptr); in test_path() 113 auto createPR = [](GrContext*) { in __anon6500dacc0102() argument 135 auto createPR = [](GrContext* ctx) { in __anon6500dacc0202()
|
D | TraceMemoryDumpTest.cpp | 55 void ValidateMemoryDumps(skiatest::Reporter* reporter, GrContext* context, size_t size, in ValidateMemoryDumps() 75 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 85 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 103 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 124 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 143 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | DeferredDisplayListTest.cpp | 61 SurfaceParameters(GrContext* context) in SurfaceParameters() 144 SkSurfaceCharacterization createCharacterization(GrContext* context) const { in createCharacterization() 167 std::unique_ptr<SkDeferredDisplayList> createDDL(GrContext* context) const { in createDDL() 182 sk_sp<SkSurface> make(GrContext* context, GrBackendTexture* backend) const { in make() 246 void cleanUpBackEnd(GrContext* context, const GrBackendTexture& backend) const { in cleanUpBackEnd() 267 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 313 void DDLSurfaceCharacterizationTestImpl(GrContext* context, skiatest::Reporter* reporter) { in DDLSurfaceCharacterizationTestImpl() 506 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 516 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 561 GrContext* context, in test_make_render_target() [all …]
|
/third_party/flutter/skia/gm/ |
D | image_shader.cpp | 31 class GrContext; 45 typedef sk_sp<SkImage> (*ImageMakerProc)(GrContext*, SkPicture*, const SkImageInfo&); 47 static sk_sp<SkImage> make_raster(GrContext*, SkPicture* pic, const SkImageInfo& info) { in make_raster() argument 54 static sk_sp<SkImage> make_texture(GrContext* ctx, SkPicture* pic, const SkImageInfo& info) { in make_texture() 67 static sk_sp<SkImage> make_pict_gen(GrContext*, SkPicture* pic, const SkImageInfo& info) { in make_pict_gen() argument 73 static sk_sp<SkImage> make_encode_gen(GrContext* ctx, SkPicture* pic, const SkImageInfo& info) { in make_encode_gen()
|
D | gm.h | 21 class GrContext; variable 64 static void SK_MACRO_CONCAT(NAME,_GM_inner)(GrContext*, GrRenderTargetContext*, SkCanvas*); \ 71 GrContext* GR_CONTEXT, GrRenderTargetContext* RENDER_TARGET_CONTEXT, SkCanvas* CANVAS) 79 GrContext*, GrRenderTargetContext*, SkCanvas*, SkString*); \ 83 GrContext* GR_CONTEXT, GrRenderTargetContext* RENDER_TARGET_CONTEXT, SkCanvas* CANVAS, \ 189 virtual DrawResult onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, 191 virtual void onDraw(GrContext*, GrRenderTargetContext*, SkCanvas*); 214 using DrawProc = DrawResult(*)(GrContext*, GrRenderTargetContext*, SkCanvas*, SkString*); 221 DrawResult onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas,
|
/third_party/flutter/skia/experimental/wasm-skp-debugger/ |
D | debugger_bindings.cpp | 238 sk_sp<GrContext> MakeGrContext(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context) in MakeGrContext() 248 sk_sp<GrContext> grContext(GrContext::MakeGL(interface)); in MakeGrContext() 252 sk_sp<SkSurface> MakeOnScreenGLSurface(sk_sp<GrContext> grContext, int width, int height) { in MakeOnScreenGLSurface() 277 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrContext> grContext, int width, int height) { in MakeRenderTarget() 288 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrContext> grContext, SimpleImageInfo sii) { in MakeRenderTarget() 360 class_<GrContext>("GrContext") in EMSCRIPTEN_BINDINGS() 361 .smart_ptr<sk_sp<GrContext>>("sk_sp<GrContext>"); in EMSCRIPTEN_BINDINGS() 367 sk_sp<GrContext>, int, int)>(&MakeRenderTarget)); in EMSCRIPTEN_BINDINGS() 369 sk_sp<GrContext>, SimpleImageInfo)>(&MakeRenderTarget)); in EMSCRIPTEN_BINDINGS()
|
/third_party/flutter/engine/flutter/flow/ |
D | compositor_context.h | 43 GrContext* gr_context, 62 GrContext* gr_context() const { return gr_context_; } in gr_context() 69 GrContext* gr_context_; 84 GrContext* gr_context,
|