Home
last modified time | relevance | path

Searched refs:GrContext (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/external/skia/src/gpu/
DGrContext.cpp40 GrContext* GrContext::Create(GrBackend backend, GrBackendContext backendContext) { in Create()
45 GrContext* GrContext::Create(GrBackend backend, GrBackendContext backendContext, in Create()
47 GrContext* context = new GrContext; in Create()
66 GrContext::GrContext() : fUniqueID(next_id()) { in GrContext() function in GrContext
74 bool GrContext::init(GrBackend backend, GrBackendContext backendContext, in init()
87 void GrContext::initCommon(const GrContextOptions& options) { in initCommon()
111 GrContext::~GrContext() { in ~GrContext()
135 sk_sp<GrContextThreadSafeProxy> GrContext::threadSafeProxy() { in threadSafeProxy()
142 void GrContext::abandonContext() { in abandonContext()
161 void GrContext::releaseResourcesAndAbandonContext() { in releaseResourcesAndAbandonContext()
[all …]
DGrClipStackClip.h31 bool apply(GrContext*, GrRenderTargetContext*, bool useHWAA, bool hasUserStencilSettings,
36 sk_sp<GrTextureProxy> testingOnly_createClipMask(GrContext*) const;
40 static bool PathNeedsSWRenderer(GrContext* context,
50 sk_sp<GrTextureProxy> createAlphaClipMask(GrContext*, const GrReducedClip&) const;
53 sk_sp<GrTextureProxy> createSoftwareClipMask(GrContext*, const GrReducedClip&) const;
55 static bool UseSWOnlyPath(GrContext*,
DSkGr.h26 class GrContext; variable
99 bool SkPaintToGrPaint(GrContext*,
106 bool SkPaintToGrPaintNoShader(GrContext* context,
114 bool SkPaintToGrPaintReplaceShader(GrContext*,
124 bool SkPaintToGrPaintWithXfermode(GrContext* context,
136 inline bool SkPaintToGrPaintWithPrimitiveColor(GrContext* context, GrRenderTargetContext* rtc, in SkPaintToGrPaintWithPrimitiveColor()
144 bool SkPaintToGrPaintWithTexture(GrContext* context,
206 sk_sp<GrTextureProxy> GrRefCachedBitmapTextureProxy(GrContext*,
218 sk_sp<GrTextureProxy> GrGenerateMipMapsAndUploadToTextureProxy(GrContext*, const SkBitmap&,
230 sk_sp<GrTextureProxy> GrUploadMipMapToTextureProxy(GrContext*, const SkImageInfo&,
[all …]
DGrContextPriv.h69 explicit GrContextPriv(GrContext* context) : fContext(context) {} in GrContextPriv()
77 GrContext* fContext;
79 friend class GrContext; // to construct/copy this type. variable
82 inline GrContextPriv GrContext::contextPriv() { return GrContextPriv(this); } in contextPriv()
84 inline const GrContextPriv GrContext::contextPriv () const { in contextPriv()
85 return GrContextPriv(const_cast<GrContext*>(this)); in contextPriv()
DGrDrawingManager.h20 class GrContext; variable
50 GrContext* getContext() { return fContext; } in getContext()
67 static bool ProgramUnitTest(GrContext* context, int maxStages);
74 GrDrawingManager(GrContext* context, in GrDrawingManager()
97 friend class GrContext; // for access to: ctor, abandon, reset & flush variable
103 GrContext* fContext;
DGrDrawOpTest.h16 class GrContext; variable
21 std::unique_ptr<GrMeshDrawOp> GrRandomDrawOp(SkRandom*, GrContext*);
25 std::unique_ptr<GrMeshDrawOp> Op##__Test(SkRandom* random, GrContext* context)
29 friend std::unique_ptr<GrMeshDrawOp> Op##__Test(SkRandom* random, GrContext* context);
DGrBlurUtils.h14 class GrContext; variable
34 void drawPathWithMaskFilter(GrContext* context,
48 void drawPathWithMaskFilter(GrContext*,
DGrTextureMaker.h40 GrTextureMaker(GrContext* context, int width, int height, bool isAlphaOnly) in GrTextureMaker()
71 GrContext* context() const { return fContext; } in context()
74 GrContext* fContext;
/external/skia/include/core/
DSkSurface.h17 class GrContext; variable
87 static sk_sp<SkSurface> MakeFromBackendTexture(GrContext*, const GrBackendTextureDesc&,
95 static sk_sp<SkSurface> MakeFromBackendRenderTarget(GrContext*,
109 GrContext*, const GrBackendTextureDesc&, sk_sp<SkColorSpace>, const SkSurfaceProps*);
115 static sk_sp<SkSurface> MakeFromBackendTexture(GrContext* ctx, const GrBackendTextureDesc& desc, in MakeFromBackendTexture()
120 static sk_sp<SkSurface> MakeFromBackendRenderTarget(GrContext* ctx, in MakeFromBackendRenderTarget()
127 GrContext* ctx, const GrBackendTextureDesc& desc, const SkSurfaceProps* props) { in MakeFromBackendTextureAsRenderTarget()
136 static sk_sp<SkSurface> MakeRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&,
140 static sk_sp<SkSurface> MakeRenderTarget(GrContext* context, SkBudgeted budgeted, in MakeRenderTarget()
147 static sk_sp<SkSurface> MakeRenderTarget(GrContext* gr, SkBudgeted b, const SkImageInfo& info) { in MakeRenderTarget()
DSkImage.h28 class GrContext; variable
94 static sk_sp<SkImage> MakeFromTexture(GrContext* ctx, const GrBackendTextureDesc& desc) { in MakeFromTexture()
98 static sk_sp<SkImage> MakeFromTexture(GrContext* ctx, const GrBackendTextureDesc& de, in MakeFromTexture()
112 static sk_sp<SkImage> MakeFromTexture(GrContext* ctx, const GrBackendTextureDesc& desc, in MakeFromTexture()
125 static sk_sp<SkImage> MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType,
134 static sk_sp<SkImage> MakeFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&,
143 static sk_sp<SkImage> MakeFromYUVTexturesCopy(GrContext*, SkYUVColorSpace,
154 static sk_sp<SkImage> MakeFromNV12TexturesCopy(GrContext*, SkYUVColorSpace,
333 sk_sp<SkImage> makeTextureImage(GrContext*, SkColorSpace* dstColorSpace) const;
340 static sk_sp<SkImage> MakeFromCrossContextImageData(GrContext*,
[all …]
DSkImageGenerator.h17 class GrContext; variable
46 SkData* refEncodedData(GrContext* ctx = nullptr) {
138 sk_sp<GrTextureProxy> generateTexture(GrContext*, const SkImageInfo& info,
168 virtual SkData* onRefEncodedData(GrContext* ctx);
181 virtual sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&,
DSkMaskFilter.h20 class GrContext; variable
118 virtual bool directFilterMaskGPU(GrContext*,
129 virtual bool directFilterRRectMaskGPU(GrContext*,
145 virtual sk_sp<GrTextureProxy> filterMaskGPU(GrContext*,
/external/skia/tools/gpu/
DGrTest.cpp29 void SetupAlwaysEvictAtlas(GrContext* context) { in SetupAlwaysEvictAtlas()
67 void GrContext::setTextBlobCacheLimit_ForTesting(size_t bytes) { in setTextBlobCacheLimit_ForTesting()
71 void GrContext::setTextContextAtlasSizes_ForTesting(const GrDrawOpAtlasConfig* configs) { in setTextContextAtlasSizes_ForTesting()
77 void GrContext::purgeAllUnlockedResources() { in purgeAllUnlockedResources()
81 void GrContext::resetGpuStats() const { in resetGpuStats()
87 void GrContext::dumpCacheStats(SkString* out) const { in dumpCacheStats()
93 void GrContext::dumpCacheStatsKeyValuePairs(SkTArray<SkString>* keys, in dumpCacheStatsKeyValuePairs()
100 void GrContext::printCacheStats() const { in printCacheStats()
106 void GrContext::dumpGpuStats(SkString* out) const { in dumpGpuStats()
112 void GrContext::dumpGpuStatsKeyValuePairs(SkTArray<SkString>* keys, in dumpGpuStatsKeyValuePairs()
[all …]
DGrContextFactory.h29 GrContext* grContext() const { return fGrContext; } in grContext()
46 ContextInfo(GrBackend backend, TestContext* testContext, GrContext* grContext) in ContextInfo()
54 GrContext* fGrContext = nullptr;
141 ContextInfo getSharedContextInfo(GrContext* shareContext, uint32_t shareIndex = 0);
146 GrContext* get(ContextType type, ContextOverrides overrides = ContextOverrides::kNone) {
153 GrContext* shareContext, uint32_t shareIndex);
160 GrContext* fGrContext;
161 GrContext* fShareContext;
/external/skia/src/core/
DSkImageCacherator.h16 class GrContext; variable
52 bool lockAsBitmap(GrContext*, SkBitmap*, const SkImage* client, SkColorSpace* dstColorSpace,
70 sk_sp<GrTextureProxy> lockAsTextureProxy(GrContext*, const GrSamplerParams&,
85 SkData* refEncoded(GrContext*);
139 sk_sp<GrTextureProxy> lockTextureProxy(GrContext*,
148 sk_sp<SkColorSpace> getColorSpace(GrContext*, SkColorSpace* dstColorSpace);
DSkSpecialImage.h18 class GrContext; variable
67 sk_sp<SkSpecialImage> makeTextureImage(GrContext*);
82 static sk_sp<SkSpecialImage> MakeDeferredFromGpu(GrContext*,
131 GrContext* getContext() const;
138 sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*) const;
DSkSpecialImage.cpp49 virtual GrContext* onGetContext() const { return nullptr; } in onGetContext()
54 virtual sk_sp<GrTextureProxy> onAsTextureProxyRef(GrContext* context) const = 0;
84 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { in makeTextureImage()
89 if (GrContext* curContext = as_SIB(this)->onGetContext()) { in makeTextureImage()
141 GrContext* SkSpecialImage::getContext() const { in getContext()
150 sk_sp<GrTextureProxy> SkSpecialImage::asTextureProxyRef(GrContext* context) const { in asTextureProxyRef()
196 GrContext* context = ((SkImage_Gpu*) as_IB(image))->context(); in MakeFromImage()
250 sk_sp<GrTextureProxy> onAsTextureProxyRef(GrContext* context) const override { in onAsTextureProxyRef()
349 static sk_sp<SkImage> wrap_proxy_in_image(GrContext* context, sk_sp<GrTextureProxy> proxy, in wrap_proxy_in_image()
357 SkSpecialImage_Gpu(GrContext* context, const SkIRect& subset, in SkSpecialImage_Gpu()
[all …]
/external/skia/include/gpu/
DGrContext.h47 class SK_API GrContext : public SkRefCnt {
52 static GrContext* Create(GrBackend, GrBackendContext, const GrContextOptions& options);
53 static GrContext* Create(GrBackend, GrBackendContext);
58 static GrContext* CreateMockContext();
60 virtual ~GrContext();
78 typedef void (*PFCleanUpFunc)(const GrContext* context, void* info);
422 GrContext(); // init must be called after the constructor.
465 friend class GrContext; variable
/external/skia/src/image/
DSkImage.cpp135 GrContext* ctx = nullptr; // should we allow the caller to pass in a ctx? in refEncoded()
327 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMipLevel* texels, in MakeTextureFromMipMap() argument
332 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType, in MakeFromTexture() argument
344 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, const void*, in MakeFromDeferredTextureImageData()
349 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&, in MakeFromAdoptedTexture() argument
354 sk_sp<SkImage> SkImage::MakeFromYUVTexturesCopy(GrContext* ctx, SkYUVColorSpace space, in MakeFromYUVTexturesCopy()
362 sk_sp<SkImage> SkImage::makeTextureImage(GrContext*, SkColorSpace* dstColorSpace) const { in makeTextureImage() argument
367 GrContext*, sk_sp<SkData> encoded, SkColorSpace* dstColorSpace) { in MakeFromEncoded() argument
377 GrContext*, std::unique_ptr<SkCrossContextImageData> ccid) { in MakeFromCrossContextImageData() argument
389 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMipLevel* texels, in MakeTextureFromMipMap() argument
[all …]
DSkImage_Gpu.h25 SkImage_Gpu(GrContext*, uint32_t uniqueID, SkAlphaType, sk_sp<GrTextureProxy>,
44 sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*, const GrSamplerParams&, SkColorSpace*,
62 GrContext* context() { return fContext; } in context()
68 GrContext* fContext;
DSkImage_Base.h55 virtual sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*, const GrSamplerParams&,
77 virtual SkData* onRefEncoded(GrContext*) const { return nullptr; } in onRefEncoded() argument
92 virtual bool onPinAsTexture(GrContext*) const { return false; } in onPinAsTexture() argument
93 virtual void onUnpinAsTexture(GrContext*) const {} in onUnpinAsTexture() argument
/external/skia/gm/
Dimage_shader.cpp27 typedef sk_sp<SkImage> (*ImageMakerProc)(GrContext*, SkPicture*, const SkImageInfo&);
29 static sk_sp<SkImage> make_raster(GrContext*, SkPicture* pic, const SkImageInfo& info) { in make_raster() argument
36 static sk_sp<SkImage> make_texture(GrContext* ctx, SkPicture* pic, const SkImageInfo& info) { in make_texture()
49 static sk_sp<SkImage> make_pict_gen(GrContext*, SkPicture* pic, const SkImageInfo& info) { in make_pict_gen() argument
55 static sk_sp<SkImage> make_encode_gen(GrContext* ctx, SkPicture* pic, const SkImageInfo& info) { in make_encode_gen()
Dimage_pict.cpp111 static std::unique_ptr<SkImageGenerator> make_pic_generator(GrContext*, sk_sp<SkPicture> pic) {
154 static std::unique_ptr<SkImageGenerator> make_ras_generator(GrContext*, sk_sp<SkPicture> pic) { in make_ras_generator() argument
185 static std::unique_ptr<SkImageGenerator> make_ctable_generator(GrContext*, sk_sp<SkPicture> pic) { in make_ctable_generator() argument
220 TextureGenerator(GrContext* ctx, const SkImageInfo& info, sk_sp<SkPicture> pic) in TextureGenerator()
234 sk_sp<GrTextureProxy> onGenerateTexture(GrContext* ctx, const SkImageInfo& info, in onGenerateTexture()
272 sk_sp<GrContext> fCtx;
276 static std::unique_ptr<SkImageGenerator> make_tex_generator(GrContext* ctx, sk_sp<SkPicture> pic) { in make_tex_generator()
288 std::unique_ptr<SkImageGenerator> (*fFactory)(GrContext*, sk_sp<SkPicture>);
295 std::unique_ptr<SkImageGenerator> (*factory)(GrContext*, sk_sp<SkPicture>)) in ImageCacheratorGM() argument
317 void makeCaches(GrContext* ctx) { in makeCaches()
/external/skia/src/gpu/text/
DGrStencilAndCoverTextContext.h34 void drawText(GrContext*, GrRenderTargetContext* rtc, const GrClip&, const SkPaint&,
37 void drawPosText(GrContext*, GrRenderTargetContext*, const GrClip&, const SkPaint&,
41 void drawTextBlob(GrContext*, GrRenderTargetContext*, const GrClip&, const SkPaint&,
57 void uncachedDrawTextBlob(GrContext*, GrRenderTargetContext* rtc,
78 void draw(GrContext*, GrRenderTargetContext*, const GrClip&, const SkMatrix&,
/external/skia/tools/viewer/sk_app/
DWindowContext.h15 class GrContext; variable
47 GrContext* getGrContext() const { return fContext; } in getGrContext()
57 GrContext* fContext;

12345678910>>...12