Home
last modified time | relevance | path

Searched refs:BackendTexture (Results 1 – 25 of 52) sorted by relevance

123

/external/skia/src/gpu/graphite/
DBackendTexture.cpp15 BackendTexture::BackendTexture() = default;
17 BackendTexture::~BackendTexture() = default;
19 BackendTexture::BackendTexture(const BackendTexture& that) { in BackendTexture() function in skgpu::graphite::BackendTexture
29 BackendTexture& BackendTexture::operator=(const BackendTexture& that) { in operator =()
46 bool BackendTexture::operator==(const BackendTexture& that) const { in operator ==()
DBackendTexturePriv.h29 using AnyBackendTextureData = BackendTexture::AnyBackendTextureData;
32 friend class BackendTexture;
41 static BackendTexture Make(SkISize dimensions, in Make()
44 return BackendTexture(dimensions, info, textureData); in Make()
47 static const BackendTextureData* GetData(const BackendTexture& info) { in GetData()
51 static BackendTextureData* GetData(BackendTexture* info) { in GetData()
DResourceProvider.h34 class BackendTexture; variable
73 sk_sp<Texture> createWrappedTexture(const BackendTexture&, std::string_view label);
88 BackendTexture createBackendTexture(SkISize dimensions, const TextureInfo&);
89 void deleteBackendTexture(const BackendTexture&);
116 virtual BackendTexture createBackendTexture(AHardwareBuffer*,
154 virtual sk_sp<Texture> onCreateWrappedTexture(const BackendTexture&) = 0;
156 virtual BackendTexture onCreateBackendTexture(SkISize dimensions, const TextureInfo&) = 0;
158 virtual BackendTexture onCreateBackendTexture(AHardwareBuffer*,
164 virtual void onDeleteBackendTexture(const BackendTexture&) = 0;
DResourceProvider.cpp210 sk_sp<Texture> ResourceProvider::createWrappedTexture(const BackendTexture& backendTexture, in createWrappedTexture()
314 BackendTexture ResourceProvider::createBackendTexture(SkISize dimensions, const TextureInfo& info) { in createBackendTexture()
322 BackendTexture ResourceProvider::createBackendTexture(AHardwareBuffer* hardwareBuffer, in createBackendTexture()
337 BackendTexture ResourceProvider::onCreateBackendTexture(AHardwareBuffer*, in onCreateBackendTexture()
346 void ResourceProvider::deleteBackendTexture(const BackendTexture& texture) { in deleteBackendTexture()
/external/skia/include/gpu/graphite/
DBackendTexture.h21 class SK_API BackendTexture {
23 BackendTexture();
24 BackendTexture(const BackendTexture&);
26 ~BackendTexture();
28 BackendTexture& operator=(const BackendTexture&);
30 bool operator==(const BackendTexture&) const;
31 bool operator!=(const BackendTexture& that) const { return !(*this == that); }
50 BackendTexture(SkISize dimensions, TextureInfo info, const SomeBackendTextureData& textureData) in BackendTexture() function
DYUVABackendTextures.h104 SkSpan<const BackendTexture>);
108 SkSpan<const BackendTexture> textures) in YUVABackendTextures()
111 SkSpan<const BackendTexture> planeTextures() const { in planeTextures()
112 return SkSpan<const BackendTexture>(fPlaneTextures); in planeTextures()
116 BackendTexture planeTexture(int i) const { in planeTexture()
142 std::array<BackendTexture, kMaxPlanes> fPlaneTextures;
DRecorder.h39 class BackendTexture; variable
107 BackendTexture createBackendTexture(SkISize dimensions, const TextureInfo&);
110 BackendTexture createBackendTexture(AHardwareBuffer*,
134 bool updateBackendTexture(const BackendTexture&,
152 bool updateCompressedBackendTexture(const BackendTexture&,
167 void deleteBackendTexture(const BackendTexture&);
DImage.h25 class BackendTexture; variable
47 std::tuple<skgpu::graphite::BackendTexture, GraphitePromiseTextureReleaseContext> (*)(
78 const skgpu::graphite::BackendTexture&,
89 const skgpu::graphite::BackendTexture&,
99 const skgpu::graphite::BackendTexture&,
DSurface.h21 class BackendTexture; variable
81 const skgpu::graphite::BackendTexture&,
/external/skia/src/gpu/graphite/vk/
DVulkanBackendTexture.cpp52 static const VulkanBackendTextureData* get_and_cast_data(const BackendTexture& tex) { in get_and_cast_data()
58 static VulkanBackendTextureData* get_and_cast_data(BackendTexture* tex) { in get_and_cast_data()
65 BackendTexture MakeVulkan(SkISize dimensions, in MakeVulkan()
81 VkImage GetVkImage(const BackendTexture& tex) { in GetVkImage()
90 VkImageLayout GetVkImageLayout(const BackendTexture& tex) { in GetVkImageLayout()
99 uint32_t GetVkQueueFamilyIndex(const BackendTexture& tex) { in GetVkQueueFamilyIndex()
108 VulkanAlloc GetMemoryAlloc(const BackendTexture& tex) { in GetMemoryAlloc()
117 sk_sp<skgpu::MutableTextureState> GetMutableState(const BackendTexture& tex) { in GetMutableState()
126 void SetMutableState(BackendTexture* tex, const skgpu::MutableTextureState& newState) { in SetMutableState()
DVulkanGraphiteUtils.h76 VkImage GetVkImage(const BackendTexture&);
77 VkImageLayout GetVkImageLayout(const BackendTexture&);
78 uint32_t GetVkQueueFamilyIndex(const BackendTexture&);
79 VulkanAlloc GetMemoryAlloc(const BackendTexture&);
81 void SetMutableState(BackendTexture*, const skgpu::MutableTextureState&);
82 sk_sp<skgpu::MutableTextureState> GetMutableState(const BackendTexture&);
DVulkanResourceProvider.h73 sk_sp<Texture> onCreateWrappedTexture(const BackendTexture&) override;
87 BackendTexture onCreateBackendTexture(SkISize dimensions, const TextureInfo&) override;
89 BackendTexture onCreateBackendTexture(AHardwareBuffer*,
95 void onDeleteBackendTexture(const BackendTexture&) override;
/external/skia/src/gpu/graphite/dawn/
DDawnBackendTexture.cpp48 static const DawnBackendTextureData* get_and_cast_data(const BackendTexture& tex) { in get_and_cast_data()
63 BackendTexture MakeDawn(WGPUTexture texture) { in MakeDawn()
73 BackendTexture MakeDawn(SkISize planeDimensions, const DawnTextureInfo& info, WGPUTexture texture) { in MakeDawn()
87 BackendTexture MakeDawn(SkISize dimensions, in MakeDawn()
95 WGPUTexture GetDawnTexturePtr(const BackendTexture& tex) { in GetDawnTexturePtr()
104 WGPUTextureView GetDawnTextureViewPtr(const BackendTexture& tex) { in GetDawnTextureViewPtr()
DDawnResourceProvider.h82 sk_sp<Texture> onCreateWrappedTexture(const BackendTexture&) override;
86 BackendTexture onCreateBackendTexture(SkISize dimensions, const TextureInfo&) override;
87 void onDeleteBackendTexture(const BackendTexture&) override;
DDawnGraphiteUtils.h85 WGPUTexture GetDawnTexturePtr(const BackendTexture&);
86 WGPUTextureView GetDawnTextureViewPtr(const BackendTexture&);
/external/skia/src/gpu/graphite/mtl/
DMtlResourceProvider.h48 sk_sp<Texture> onCreateWrappedTexture(const BackendTexture&) override;
52 BackendTexture onCreateBackendTexture(SkISize dimensions, const TextureInfo&) override;
53 void onDeleteBackendTexture(const BackendTexture&) override;
DMtlBackendTexture.mm48 static const MtlBackendTextureData* get_and_cast_data(const BackendTexture& tex) {
55 BackendTexture MakeMetal(SkISize dimensions, CFTypeRef mtlTexture) {
60 CFTypeRef GetMtlTexture(const BackendTexture& tex) {
DMtlResourceProvider.mm11 #include "include/gpu/graphite/BackendTexture.h"
82 sk_sp<Texture> MtlResourceProvider::onCreateWrappedTexture(const BackendTexture& texture) {
185 BackendTexture MtlResourceProvider::onCreateBackendTexture(SkISize dimensions,
196 void MtlResourceProvider::onDeleteBackendTexture(const BackendTexture& texture) {
/external/skia/include/gpu/graphite/dawn/
DDawnGraphiteTypes.h22 class BackendTexture; variable
134 SK_API BackendTexture MakeDawn(WGPUTexture);
144 SK_API BackendTexture MakeDawn(SkISize planeDimensions, const DawnTextureInfo&, WGPUTexture);
159 SK_API BackendTexture MakeDawn(SkISize dimensions,
/external/skia/tests/graphite/
DUpdateBackendTextureTest.cpp71 const BackendTexture& backendTex, in update_backend_texture()
89 BackendTexture create_backend_texture(skiatest::Reporter* reporter, in create_backend_texture()
105 BackendTexture backendTex = recorder->createBackendTexture(kSize, info); in create_backend_texture()
115 const skgpu::graphite::BackendTexture& backendTex, in wrap_backend_texture()
199 BackendTexture backendTex = create_backend_texture(reporter, caps, recorder.get(), in DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS()
259 BackendTexture backendTex = create_backend_texture(reporter, in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
DTextureProxyTest.cpp41 BackendTexture backendTexture = recorder->createBackendTexture(kValidSize, textureInfo); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
175 BackendTexture largerBackendTexture = in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
227 FulfillContext(BackendTexture backendTexture) : fBackendTexture(backendTexture) {} in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
229 static std::tuple<BackendTexture, void*> Fulfill(void* ctx) { in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
234 BackendTexture fBackendTexture; in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
252 BackendTexture backendTexture = in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
DDawnBackendTextureTest.cpp60 BackendTexture beTexture = in DEF_GRAPHITE_TEST_FOR_DAWN_CONTEXT()
64 BackendTexture beTexture2; in DEF_GRAPHITE_TEST_FOR_DAWN_CONTEXT()
DVulkanBackendTextureTest.cpp66 BackendTexture beTexture = in DEF_GRAPHITE_TEST_FOR_VULKAN_CONTEXT()
70 BackendTexture beTexture2; in DEF_GRAPHITE_TEST_FOR_VULKAN_CONTEXT()
/external/skia/include/gpu/graphite/mtl/
DMtlGraphiteTypes_cpp.h35 SK_API BackendTexture MakeMetal(SkISize dimensions, CFTypeRef mtlTexture);
37 SK_API CFTypeRef GetMtlTexture(const BackendTexture&);
/external/skia/tools/gpu/vk/
DVkYcbcrSamplerHelper.h44 const skgpu::graphite::BackendTexture& backendTexture() const { return fTexture; } in backendTexture()
64 skgpu::graphite::BackendTexture fTexture;

123