Commit 95638f00 authored by Adlai Holler's avatar Adlai Holler Committed by Commit Bot

GrContext -> GrDirectContext in service/skia_utils.cc

Just a rename to latest API. No functional change.

Change-Id: I0073320d0467b9d516f4dcdb0de3476940573be1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2466523
Auto-Submit: Adlai Holler <adlai@google.com>
Commit-Queue: Khushal <khushalsagar@chromium.org>
Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816697}
parent 5f264f08
......@@ -61,7 +61,7 @@ void DeleteSkObject(SharedContextState* context_state, sk_sp<T> sk_object) {
auto* fence_helper =
context_state->vk_context_provider()->GetDeviceQueue()->GetFenceHelper();
fence_helper->EnqueueCleanupTaskForSubmittedWork(base::BindOnce(
[](const sk_sp<GrContext>& gr_context, sk_sp<T> sk_object,
[](const sk_sp<GrDirectContext>& gr_context, sk_sp<T> sk_object,
gpu::VulkanDeviceQueue* device_queue, bool is_lost) {},
sk_ref_sp(context_state->gr_context()), std::move(sk_object)));
#endif
......@@ -180,8 +180,9 @@ void DeleteGrBackendTexture(SharedContextState* context_state,
auto* fence_helper =
context_state->vk_context_provider()->GetDeviceQueue()->GetFenceHelper();
fence_helper->EnqueueCleanupTaskForSubmittedWork(base::BindOnce(
[](const sk_sp<GrContext>& gr_context, GrBackendTexture backend_texture,
gpu::VulkanDeviceQueue* device_queue, bool is_lost) {
[](const sk_sp<GrDirectContext>& gr_context,
GrBackendTexture backend_texture, gpu::VulkanDeviceQueue* device_queue,
bool is_lost) {
if (!gr_context->abandoned())
gr_context->deleteBackendTexture(std::move(backend_texture));
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment