Lines Matching defs:const

25     GrMtlCaps(const GrContextOptions& contextOptions, id<MTLDevice> device);
27 bool isFormatSRGB(const GrBackendFormat&) const override;
29 bool isFormatTexturable(const GrBackendFormat&, GrTextureType) const override;
30 bool isFormatTexturable(MTLPixelFormat) const;
32 bool isFormatCopyable(const GrBackendFormat&) const override { return true; }
34 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format,
35 int sampleCount = 1) const override;
36 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override;
37 bool isFormatRenderable(MTLPixelFormat, int sampleCount) const;
39 int getRenderTargetSampleCount(int requestedCount, const GrBackendFormat&) const override;
40 int getRenderTargetSampleCount(int requestedCount, MTLPixelFormat) const;
42 int maxRenderTargetSampleCount(const GrBackendFormat&) const override;
43 int maxRenderTargetSampleCount(MTLPixelFormat) const;
46 const GrBackendFormat& surfaceFormat,
47 GrColorType srcColorType) const override;
49 SurfaceReadPixelsSupport surfaceSupportsReadPixels(const GrSurface*) const override;
51 DstCopyRestrictions getDstCopyRestrictions(const GrRenderTargetProxy* src,
52 GrColorType ct) const override;
57 MTLPixelFormat preferredStencilFormat() const {
63 const SkIRect& srcRect, const SkIPoint& dstPoint,
64 bool areDstSrcSameObj) const;
68 bool srcIsRenderTarget, const SkISize srcDimensions,
69 const SkIRect& srcRect,
70 const SkIPoint& dstPoint,
71 bool areDstSrcSameObj) const;
73 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override;
75 MTLPixelFormat getFormatFromColorType(GrColorType colorType) const {
80 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
82 uint64_t computeFormatKey(const GrBackendFormat&) const override;
85 const GrProgramInfo&,
86 ProgramDescOverrideFlags) const override;
87 MTLPixelFormat getStencilPixelFormat(const GrProgramDesc& desc);
89 bool isMac() const { return fGPUFamily == GPUFamily::kMac; }
90 bool isApple() const { return fGPUFamily == GPUFamily::kApple; }
92 size_t getMinBufferAlignment() const { return this->isMac() ? 4 : 1; }
95 bool storeAndMultisampleResolveSupport() const { return fStoreAndMultisampleResolveSupport; }
102 bool preferDiscardableMSAAAttachment() const { return fPreferDiscardableMSAAAttachment; }
103 bool renderTargetSupportsDiscardableMSAA(const GrMtlRenderTarget*) const;
106 std::vector<TestFormatColorTypeCombination> getTestingCombinations() const override;
108 void onDumpJSON(SkJSONWriter*) const override;
118 void applyDriverCorrectnessWorkarounds(const GrContextOptions&, const id<MTLDevice>);
122 bool onSurfaceSupportsWritePixels(const GrSurface*) const override;
123 bool onCanCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src,
124 const SkIRect& srcRect, const SkIPoint& dstPoint) const override;
125 GrBackendFormat onGetDefaultBackendFormat(GrColorType) const override;
126 bool onAreColorTypeAndFormatCompatible(GrColorType, const GrBackendFormat&) const override;
128 SupportedRead onSupportedReadPixelsColorType(GrColorType, const GrBackendFormat&,
129 GrColorType) const override;
131 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
149 uint32_t colorTypeFlags(GrColorType colorType) const {
164 static const uint16_t kAllFlags = kTexturable_Flag | kRenderable_Flag |
180 const FormatInfo& getFormatInfo(const MTLPixelFormat pixelFormat) const {