/external/skia/src/gpu/ganesh/effects/ |
D | GrPorterDuffXferProcessor.cpp | 47 skgpu::BlendEquation equation, in BlendFormula() 48 skgpu::BlendCoeff srcCoeff, in BlendFormula() 49 skgpu::BlendCoeff dstCoeff) in BlendFormula() 90 skgpu::BlendEquation equation() const { in equation() 91 return static_cast<skgpu::BlendEquation>(fBlendEquation); in equation() 94 skgpu::BlendCoeff srcCoeff() const { in srcCoeff() 95 return static_cast<skgpu::BlendCoeff>(fSrcCoeff); in srcCoeff() 98 skgpu::BlendCoeff dstCoeff() const { in dstCoeff() 99 return static_cast<skgpu::BlendCoeff>(fDstCoeff); in dstCoeff() 127 skgpu::BlendEquation BlendEquation, [all …]
|
D | GrCustomXfermode.cpp | 32 static constexpr skgpu::BlendEquation hw_blend_equation(SkBlendMode mode) { in hw_blend_equation() 33 constexpr int kEqOffset = ((int)skgpu::BlendEquation::kOverlay - (int)SkBlendMode::kOverlay); in hw_blend_equation() 34 static_assert((int)skgpu::BlendEquation::kOverlay == (int)SkBlendMode::kOverlay + kEqOffset); in hw_blend_equation() 35 static_assert((int)skgpu::BlendEquation::kDarken == (int)SkBlendMode::kDarken + kEqOffset); in hw_blend_equation() 36 static_assert((int)skgpu::BlendEquation::kLighten == (int)SkBlendMode::kLighten + kEqOffset); in hw_blend_equation() 37 …static_assert((int)skgpu::BlendEquation::kColorDodge == (int)SkBlendMode::kColorDodge + kEqOffset); in hw_blend_equation() 38 … static_assert((int)skgpu::BlendEquation::kColorBurn == (int)SkBlendMode::kColorBurn + kEqOffset); in hw_blend_equation() 39 … static_assert((int)skgpu::BlendEquation::kHardLight == (int)SkBlendMode::kHardLight + kEqOffset); in hw_blend_equation() 40 … static_assert((int)skgpu::BlendEquation::kSoftLight == (int)SkBlendMode::kSoftLight + kEqOffset); in hw_blend_equation() 41 …static_assert((int)skgpu::BlendEquation::kDifference == (int)SkBlendMode::kDifference + kEqOffset); in hw_blend_equation() [all …]
|
D | GrCoverageSetOpXP.cpp | 31 void onAddToKey(const GrShaderCaps&, skgpu::KeyBuilder*) const override; 33 void onGetBlendInfo(skgpu::BlendInfo* blendInfo) const override; 47 void CoverageSetOpXP::onAddToKey(const GrShaderCaps& caps, skgpu::KeyBuilder* b) const { in onAddToKey() 67 void CoverageSetOpXP::onGetBlendInfo(skgpu::BlendInfo* blendInfo) const { in onGetBlendInfo() 70 blendInfo->fSrcBlend = skgpu::BlendCoeff::kOne; in onGetBlendInfo() 71 blendInfo->fDstBlend = skgpu::BlendCoeff::kZero; in onGetBlendInfo() 74 blendInfo->fSrcBlend = skgpu::BlendCoeff::kDC; in onGetBlendInfo() 75 blendInfo->fDstBlend = skgpu::BlendCoeff::kZero; in onGetBlendInfo() 78 blendInfo->fSrcBlend = skgpu::BlendCoeff::kOne; in onGetBlendInfo() 79 blendInfo->fDstBlend = skgpu::BlendCoeff::kISC; in onGetBlendInfo() [all …]
|
/external/skia/src/gpu/ |
D | Blend.cpp | 16 namespace skgpu { namespace 132 const char *equation_string(skgpu::BlendEquation eq) { in equation_string() 134 case skgpu::BlendEquation::kAdd: return "add"; in equation_string() 135 case skgpu::BlendEquation::kSubtract: return "subtract"; in equation_string() 136 case skgpu::BlendEquation::kReverseSubtract: return "reverse_subtract"; in equation_string() 137 case skgpu::BlendEquation::kScreen: return "screen"; in equation_string() 138 case skgpu::BlendEquation::kOverlay: return "overlay"; in equation_string() 139 case skgpu::BlendEquation::kDarken: return "darken"; in equation_string() 140 case skgpu::BlendEquation::kLighten: return "lighten"; in equation_string() 141 case skgpu::BlendEquation::kColorDodge: return "color_dodge"; in equation_string() [all …]
|
/external/skia/tests/ |
D | GrPorterDuffTest.cpp | 132 skgpu::BlendCoeffRefsSrc2(fBlendInfo.fDstBlend)); in XPInfo() 140 skgpu::BlendInfo fBlendInfo; 162 TEST_ASSERT(skgpu::BlendEquation::kAdd == xpi.fBlendInfo.fEquation); in test_lcd_coverage() 163 TEST_ASSERT(skgpu::BlendCoeff::kOne == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage() 164 TEST_ASSERT(skgpu::BlendCoeff::kZero == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage() 173 TEST_ASSERT(skgpu::BlendEquation::kAdd == xpi.fBlendInfo.fEquation); in test_lcd_coverage() 174 TEST_ASSERT(skgpu::BlendCoeff::kOne == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage() 175 TEST_ASSERT(skgpu::BlendCoeff::kZero == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage() 184 TEST_ASSERT(skgpu::BlendEquation::kAdd == xpi.fBlendInfo.fEquation); in test_lcd_coverage() 185 TEST_ASSERT(skgpu::BlendCoeff::kOne == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage() [all …]
|
/external/skia/src/gpu/ganesh/text/ |
D | GrAtlasManager.h | 30 class GrAtlasManager : public GrOnFlushCallbackObject, public skgpu::AtlasGenerationCounter { 42 const GrSurfaceProxyView* getViews(skgpu::MaskFormat format, unsigned int* numActiveProxies) { in getViews() 54 bool hasGlyph(skgpu::MaskFormat, sktext::gpu::Glyph*); 67 void addGlyphToBulkAndSetUseToken(skgpu::BulkUsePlotUpdater*, skgpu::MaskFormat, 68 sktext::gpu::Glyph*, skgpu::AtlasToken); 70 void setUseTokenBulk(const skgpu::BulkUsePlotUpdater& updater, in setUseTokenBulk() 71 skgpu::AtlasToken token, in setUseTokenBulk() 72 skgpu::MaskFormat format) { in setUseTokenBulk() 78 skgpu::MaskFormat, int width, int height, const void* image, 79 skgpu::AtlasLocator*); [all …]
|
/external/skia/src/gpu/ganesh/ |
D | GrDrawOpAtlas.h | 82 skgpu::AtlasGenerationCounter* generationCounter, 84 skgpu::PlotEvictionCallback* evictor, 110 int width, int height, const void* image, skgpu::AtlasLocator*); 116 bool hasID(const skgpu::PlotLocator& plotLocator) { in hasID() 129 void setLastUseToken(const skgpu::AtlasLocator& atlasLocator, skgpu::AtlasToken token) { in setLastUseToken() 135 skgpu::Plot* plot = fPages[pageIdx].fPlotArray[plotIdx].get(); in setLastUseToken() 142 void setLastUseTokenBulk(const skgpu::BulkUsePlotUpdater& updater, in setLastUseTokenBulk() 143 skgpu::AtlasToken token) { in setLastUseTokenBulk() 146 const skgpu::BulkUsePlotUpdater::PlotData& pd = updater.plotData(i); in setLastUseTokenBulk() 150 skgpu::Plot* plot = fPages[pd.fPageIndex].fPlotArray[pd.fPlotIndex].get(); in setLastUseTokenBulk() [all …]
|
D | GrRecordingContextPriv.cpp | 24 sk_sp<skgpu::v1::Device> GrRecordingContextPriv::createDevice(GrColorType colorType, in createDevice() 29 … skgpu::v1::Device::InitContents init) { in createDevice() 30 return skgpu::v1::Device::Make(this->context(), colorType, std::move(proxy), in createDevice() 34 sk_sp<skgpu::v1::Device> GrRecordingContextPriv::createDevice( in createDevice() 35 skgpu::Budgeted budgeted, in createDevice() 43 skgpu::v1::Device::InitContents init) { in createDevice() 44 return skgpu::v1::Device::Make(this->context(), budgeted, ii, fit, sampleCount, in createDevice() 65 std::unique_ptr<skgpu::v1::SurfaceContext> GrRecordingContextPriv::makeSC( in makeSC() 78 std::unique_ptr<skgpu::v1::SurfaceContext> sc; in makeSC() 82 skgpu::Swizzle writeSwizzle; in makeSC() [all …]
|
D | GrRecordingContextPriv.h | 21 namespace skgpu { 24 namespace skgpu::v1 { 121 sk_sp<skgpu::v1::Device> createDevice(GrColorType, 126 skgpu::v1::Device::InitContents); 127 sk_sp<skgpu::v1::Device> createDevice(skgpu::Budgeted, 135 skgpu::v1::Device::InitContents); 139 std::unique_ptr<skgpu::v1::SurfaceContext> makeSC(GrSurfaceProxyView readView, 144 std::unique_ptr<skgpu::v1::SurfaceContext> makeSC(const GrImageInfo&, 153 skgpu::Budgeted = skgpu::Budgeted::kYes); 159 std::unique_ptr<skgpu::v1::SurfaceFillContext> makeSFC( [all …]
|
D | GrProxyProvider.h | 38 bool assignUniqueKeyToProxy(const skgpu::UniqueKey&, GrTextureProxy*); 55 sk_sp<GrTextureProxy> findProxyByUniqueKey(const skgpu::UniqueKey&); 61 sk_sp<GrTextureProxy> findOrCreateProxyByUniqueKey(const skgpu::UniqueKey&, 70 GrSurfaceProxyView findCachedProxyWithColorTypeFallback(const skgpu::UniqueKey&, 82 skgpu::Budgeted); 93 skgpu::Budgeted, 103 skgpu::Budgeted, 121 sk_sp<skgpu::RefCntedCallback> = nullptr); 126 sk_sp<skgpu::RefCntedCallback>); 135 … sk_sp<skgpu::RefCntedCallback> releaseHelper); [all …]
|
D | SkGr.h | 46 namespace skgpu { class UniqueKey; } 123 static_assert((int)skgpu::BlendCoeff::kZero == (int)SkBlendModeCoeff::kZero); 124 static_assert((int)skgpu::BlendCoeff::kOne == (int)SkBlendModeCoeff::kOne); 125 static_assert((int)skgpu::BlendCoeff::kSC == (int)SkBlendModeCoeff::kSC); 126 static_assert((int)skgpu::BlendCoeff::kISC == (int)SkBlendModeCoeff::kISC); 127 static_assert((int)skgpu::BlendCoeff::kDC == (int)SkBlendModeCoeff::kDC); 128 static_assert((int)skgpu::BlendCoeff::kIDC == (int)SkBlendModeCoeff::kIDC); 129 static_assert((int)skgpu::BlendCoeff::kSA == (int)SkBlendModeCoeff::kSA); 130 static_assert((int)skgpu::BlendCoeff::kISA == (int)SkBlendModeCoeff::kISA); 131 static_assert((int)skgpu::BlendCoeff::kDA == (int)SkBlendModeCoeff::kDA); [all …]
|
D | GrThreadSafeCache.h | 86 SkDEBUGCODE(bool has(const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock);) 88 GrSurfaceProxyView find(const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock); 90 const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock); 93 const skgpu::UniqueKey&, const GrSurfaceProxyView&) SK_EXCLUDES(fSpinLock); 95 const skgpu::UniqueKey&, const GrSurfaceProxyView&) SK_EXCLUDES(fSpinLock); 97 GrSurfaceProxyView findOrAdd(const skgpu::UniqueKey&, 100 const skgpu::UniqueKey&, const GrSurfaceProxyView&) SK_EXCLUDES(fSpinLock); 167 const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock); 172 const skgpu::UniqueKey&, 176 void remove(const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock); [all …]
|
D | GrResourceProvider.h | 48 namespace skgpu { 61 GrResourceProvider(GrGpu*, GrResourceCache*, skgpu::SingleOwner*); 70 findByUniqueKey(const skgpu::UniqueKey& key) { in findByUniqueKey() 97 skgpu::Mipmapped mipmapped, 98 skgpu::Budgeted budgeted, 113 skgpu::Budgeted budgeted, 114 skgpu::Mipmapped mipmapped, 130 skgpu::Budgeted, 140 sk_sp<GrTexture> findAndRefScratchTexture(const skgpu::ScratchKey&, std::string_view label); 146 skgpu::Mipmapped, [all …]
|
D | GrTextureProxy.h | 48 skgpu::Mipmapped mipmapped() const; 51 SkASSERT((skgpu::Mipmapped::kNo == fMipmapped) == in mipmapsAreDirty() 53 return skgpu::Mipmapped::kYes == fMipmapped && GrMipmapStatus::kValid != fMipmapStatus; in mipmapsAreDirty() 56 SkASSERT(skgpu::Mipmapped::kYes == fMipmapped); in markMipmapsDirty() 60 SkASSERT(skgpu::Mipmapped::kYes == fMipmapped); in markMipmapsClean() 66 skgpu::Mipmapped proxyMipmapped() const { return fMipmapped; } in proxyMipmapped() 85 const skgpu::UniqueKey& getUniqueKey() const override { in getUniqueKey() 127 skgpu::Mipmapped, 130 skgpu::Budgeted, 150 skgpu::Mipmapped, [all …]
|
D | GrSurfaceProxyView.h | 29 namespace skgpu { 38 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, skgpu::Swizzle swizzle) in GrSurfaceProxyView() 60 skgpu::Mipmapped mipmapped() const; 72 skgpu::Swizzle swizzle() const { return fSwizzle; } in swizzle() 74 void concatSwizzle(skgpu::Swizzle swizzle); 76 GrSurfaceProxyView makeSwizzle(skgpu::Swizzle swizzle) const&; 78 GrSurfaceProxyView makeSwizzle(skgpu::Swizzle swizzle) &&; 86 skgpu::Mipmapped mipmapped, 89 skgpu::Budgeted budgeted, 94 skgpu::Mipmapped mipmapped, [all …]
|
D | GrSurfaceProxyView.cpp | 20 skgpu::Mipmapped GrSurfaceProxyView::mipmapped() const { in mipmapped() 49 void GrSurfaceProxyView::concatSwizzle(skgpu::Swizzle swizzle) { in concatSwizzle() 50 fSwizzle = skgpu::Swizzle::Concat(fSwizzle, swizzle); in concatSwizzle() 53 GrSurfaceProxyView GrSurfaceProxyView::makeSwizzle(skgpu::Swizzle swizzle) const& { in makeSwizzle() 54 return {fProxy, fOrigin, skgpu::Swizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle() 57 GrSurfaceProxyView GrSurfaceProxyView::makeSwizzle(skgpu::Swizzle swizzle) && { in makeSwizzle() 58 return {std::move(fProxy), fOrigin, skgpu::Swizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle() 65 skgpu::Mipmapped mipmapped, in Copy() 68 skgpu::Budgeted budgeted, in Copy() 77 skgpu::Mipmapped mipmapped, in Copy() [all …]
|
/external/skia/src/gpu/ganesh/vk/ |
D | GrVkPipeline.cpp | 281 SkAssertResult(skgpu::SampleCountToVkSampleCount(numSamples, in setup_multisample_state() 290 static VkBlendFactor blend_coeff_to_vk_blend(skgpu::BlendCoeff coeff) { in blend_coeff_to_vk_blend() 292 case skgpu::BlendCoeff::kZero: in blend_coeff_to_vk_blend() 294 case skgpu::BlendCoeff::kOne: in blend_coeff_to_vk_blend() 296 case skgpu::BlendCoeff::kSC: in blend_coeff_to_vk_blend() 298 case skgpu::BlendCoeff::kISC: in blend_coeff_to_vk_blend() 300 case skgpu::BlendCoeff::kDC: in blend_coeff_to_vk_blend() 302 case skgpu::BlendCoeff::kIDC: in blend_coeff_to_vk_blend() 304 case skgpu::BlendCoeff::kSA: in blend_coeff_to_vk_blend() 306 case skgpu::BlendCoeff::kISA: in blend_coeff_to_vk_blend() [all …]
|
D | GrVkGpu.h | 35 namespace skgpu { struct VulkanInterface; } 37 namespace skgpu { class VulkanMemoryAllocator; } 55 const skgpu::VulkanInterface* vkInterface() const { return fInterface.get(); } in vkInterface() 63 skgpu::VulkanMemoryAllocator* memoryAllocator() const { return fMemoryAllocator.get(); } in memoryAllocator() 85 const skgpu::MutableTextureState&, 86 skgpu::MutableTextureState* previousState, 87 sk_sp<skgpu::RefCntedCallback> finishedCallback) override; 90 const skgpu::MutableTextureState&, 91 skgpu::MutableTextureState* previousState, 92 sk_sp<skgpu::RefCntedCallback> finishedCallback) override; [all …]
|
/external/skia/include/gpu/vk/ |
D | VulkanMemoryAllocator.h | 15 namespace skgpu { 57 skgpu::VulkanBackendMemory* memory) = 0; 62 skgpu::VulkanBackendMemory* memory) = 0; 66 virtual void getAllocInfo(const skgpu::VulkanBackendMemory&, skgpu::VulkanAlloc*) const = 0; 71 virtual void* mapMemory(const skgpu::VulkanBackendMemory&) { return nullptr; } in mapMemory() 72 virtual VkResult mapMemory(const skgpu::VulkanBackendMemory& memory, void** data) { in mapMemory() 80 virtual void unmapMemory(const skgpu::VulkanBackendMemory&) = 0; 87 virtual void flushMappedMemory(const skgpu::VulkanBackendMemory&, VkDeviceSize, VkDeviceSize) {} in flushMappedMemory() 88 virtual VkResult flushMemory(const skgpu::VulkanBackendMemory& memory, in flushMemory() 94 virtual void invalidateMappedMemory(const skgpu::VulkanBackendMemory&, in invalidateMappedMemory() [all …]
|
/external/skia/src/gpu/graphite/mtl/ |
D | MtlGraphicsPipeline.mm | 17 namespace skgpu::graphite { 149 static MTLBlendFactor blend_coeff_to_mtl_blend(skgpu::BlendCoeff coeff) { 151 case skgpu::BlendCoeff::kZero: 153 case skgpu::BlendCoeff::kOne: 155 case skgpu::BlendCoeff::kSC: 157 case skgpu::BlendCoeff::kISC: 159 case skgpu::BlendCoeff::kDC: 161 case skgpu::BlendCoeff::kIDC: 163 case skgpu::BlendCoeff::kSA: 165 case skgpu::BlendCoeff::kISA: [all …]
|
/external/skia/tools/graphite/vk/ |
D | VulkanTestContext.h | 23 skgpu::BackendApi backend() override { return skgpu::BackendApi::kVulkan; } in backend() 25 std::unique_ptr<skgpu::graphite::Context> makeContext() override; 27 const skgpu::VulkanBackendContext& getBackendContext() const { in getBackendContext() 32 VulkanTestContext(const skgpu::VulkanBackendContext& vulkan, in VulkanTestContext() 33 const skgpu::VulkanExtensions* extensions, in VulkanTestContext() 43 skgpu::VulkanBackendContext fVulkan; 44 const skgpu::VulkanExtensions* fExtensions;
|
/external/skia/src/gpu/graphite/ |
D | Log.h | 11 namespace skgpu::graphite { 22 #define SKGPU_LOWEST_ACTIVE_PRIORITY skgpu::graphite::Priority::kWarning 24 #define SKGPU_LOWEST_ACTIVE_PRIORITY skgpu::graphite::Priority::kError 31 if (priority == skgpu::graphite::Priority::kFatal) { \ 36 #define SKGPU_LOG_F(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kFatal, "** ERROR ** " fmt, \ 38 #define SKGPU_LOG_E(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kError, "** ERROR ** " fmt, \ 40 #define SKGPU_LOG_W(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kWarning, "WARNING - " fmt, \ 42 #define SKGPU_LOG_D(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kDebug, fmt, \
|
D | KeyHelpers.cpp | 35 namespace skgpu::graphite { namespace 603 constexpr skgpu::BlendInfo make_simple_blendInfo(skgpu::BlendCoeff srcCoeff, in make_simple_blendInfo() 604 skgpu::BlendCoeff dstCoeff) { in make_simple_blendInfo() 605 return { skgpu::BlendEquation::kAdd, in make_simple_blendInfo() 609 skgpu::BlendModifiesDst(skgpu::BlendEquation::kAdd, srcCoeff, dstCoeff) }; in make_simple_blendInfo() 614 static constexpr skgpu::BlendInfo gBlendTable[kNumCoeffModes] = { 615 /* clear */ make_simple_blendInfo(skgpu::BlendCoeff::kZero, skgpu::BlendCoeff::kZero), 616 /* src */ make_simple_blendInfo(skgpu::BlendCoeff::kOne, skgpu::BlendCoeff::kZero), 617 /* dst */ make_simple_blendInfo(skgpu::BlendCoeff::kZero, skgpu::BlendCoeff::kOne), 618 /* src-over */ make_simple_blendInfo(skgpu::BlendCoeff::kOne, skgpu::BlendCoeff::kISA), [all …]
|
/external/skia/src/gpu/ganesh/d3d/ |
D | GrD3DPipelineStateBuilder.cpp | 270 static D3D12_BLEND blend_coeff_to_d3d_blend(skgpu::BlendCoeff coeff) { in blend_coeff_to_d3d_blend() 272 case skgpu::BlendCoeff::kZero: in blend_coeff_to_d3d_blend() 274 case skgpu::BlendCoeff::kOne: in blend_coeff_to_d3d_blend() 276 case skgpu::BlendCoeff::kSC: in blend_coeff_to_d3d_blend() 278 case skgpu::BlendCoeff::kISC: in blend_coeff_to_d3d_blend() 280 case skgpu::BlendCoeff::kDC: in blend_coeff_to_d3d_blend() 282 case skgpu::BlendCoeff::kIDC: in blend_coeff_to_d3d_blend() 284 case skgpu::BlendCoeff::kSA: in blend_coeff_to_d3d_blend() 286 case skgpu::BlendCoeff::kISA: in blend_coeff_to_d3d_blend() 288 case skgpu::BlendCoeff::kDA: in blend_coeff_to_d3d_blend() [all …]
|
/external/skia/src/text/gpu/ |
D | SubRunContainer.h | 41 namespace skgpu::v1 { class SurfaceDrawContext; } 49 namespace skgpu { 53 namespace skgpu::graphite { 81 virtual skgpu::MaskFormat maskFormat() const = 0; 93 skgpu::v1::SurfaceDrawContext*) const = 0; 110 int begin, int end, skgpu::graphite::Recorder*) const = 0; 113 virtual std::tuple<skgpu::graphite::Rect, skgpu::graphite::Transform> boundsAndDeviceMatrix( 114 const skgpu::graphite::Transform& localToDevice, SkPoint drawOrigin) const = 0; 116 virtual const skgpu::graphite::Renderer* renderer( 117 const skgpu::graphite::RendererProvider*) const = 0; [all …]
|