• Home
  • Raw
  • Download

Lines Matching refs:dContext

63 GrBackendFormat GetBackendFormat(GrDirectContext* dContext, AHardwareBuffer* hardwareBuffer,  in GetBackendFormat()  argument
65 GrBackendApi backend = dContext->backend(); in GetBackendFormat()
107 GrVkGpu* gpu = static_cast<GrVkGpu*>(dContext->priv().getGpu()); in GetBackendFormat()
181 void GLTextureHelper::rebind(GrDirectContext* dContext) { in rebind() argument
194 dContext->resetContext(kTextureBinding_GrGLBackendState); in rebind()
202 void update_gl_texture(void* context, GrDirectContext* dContext) { in update_gl_texture() argument
204 cleanupHelper->rebind(dContext); in update_gl_texture()
208 GrDirectContext* dContext, AHardwareBuffer* hardwareBuffer, in make_gl_backend_texture() argument
256 dContext->resetContext(kTextureBinding_GrGLBackendState); in make_gl_backend_texture()
297 void update_vk_image(void* context, GrDirectContext* dContext) { in update_vk_image() argument
302 GrDirectContext* dContext, AHardwareBuffer* hardwareBuffer, in make_vk_backend_texture() argument
310 SkASSERT(dContext->backend() == GrBackendApi::kVulkan); in make_vk_backend_texture()
311 GrVkGpu* gpu = static_cast<GrVkGpu*>(dContext->priv().getGpu()); in make_vk_backend_texture()
523 static bool can_import_protected_content(GrDirectContext* dContext) { in can_import_protected_content() argument
524 if (GrBackendApi::kOpenGL == dContext->backend()) { in can_import_protected_content()
529 } else if (GrBackendApi::kVulkan == dContext->backend()) { in can_import_protected_content()
531 return static_cast<GrVkGpu*>(dContext->priv().getGpu())->protectedContext(); in can_import_protected_content()
537 GrBackendTexture MakeBackendTexture(GrDirectContext* dContext, AHardwareBuffer* hardwareBuffer, in MakeBackendTexture() argument
545 SkASSERT(dContext); in MakeBackendTexture()
546 if (!dContext || dContext->abandoned()) { in MakeBackendTexture()
549 bool createProtectedImage = isProtectedContent && can_import_protected_content(dContext); in MakeBackendTexture()
551 if (GrBackendApi::kOpenGL == dContext->backend()) { in MakeBackendTexture()
552 return make_gl_backend_texture(dContext, hardwareBuffer, width, height, deleteProc, in MakeBackendTexture()
556 SkASSERT(GrBackendApi::kVulkan == dContext->backend()); in MakeBackendTexture()
558 return make_vk_backend_texture(dContext, hardwareBuffer, width, height, deleteProc, in MakeBackendTexture()