Commit dd4aa0b2 authored by Greg Daniel's avatar Greg Daniel Committed by Commit Bot

Additional skia flush updates to new api.

These spots were missed on the original update CL.

Change-Id: I83563b18df9ebe7bb4e10668ba210b7712d8c547
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209533Reviewed-by: default avatarVasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Cr-Commit-Position: refs/heads/master@{#770578}
parent 18a90eed
......@@ -627,7 +627,7 @@ AwDrawFnImpl::InFlightInteropDraw::~InFlightInteropDraw() {
// to flush before the vkQueueWaitIdle below.
if (ahb_skimage) {
ahb_skimage.reset();
vk_context_provider->gr_context()->flush();
vk_context_provider->gr_context()->flushAndSubmit();
}
// We encountered an error and are not sure when our Vk objects are safe to
// delete. VkQueueWaitIdle to ensure safety.
......
......@@ -215,7 +215,7 @@ void Blur::Run(double sigma_x,
}
if (gr_context_) {
gr_context_->flush();
gr_context_->flushAndSubmit();
glFinish();
}
......
......@@ -88,7 +88,7 @@ void ExplicitSynchronizationClient::Run() {
.toSkColor());
// Create an EGLSyncKHR object to signal when rendering is done.
gr_context_->flush();
gr_context_->flushAndSubmit();
buffer->egl_sync.reset(new ScopedEglSync(
eglCreateSyncKHR(eglGetCurrentDisplay(), egl_sync_type_, nullptr)));
DCHECK(buffer->egl_sync->is_valid());
......
......@@ -112,7 +112,7 @@ void FullscreenClient::Paint(const wl_callback_listener& frame_listener) {
canvas->drawRect(rect, paint);
if (gr_context_) {
gr_context_->flush();
gr_context_->flushAndSubmit();
glFinish();
}
......
......@@ -140,7 +140,7 @@ void Simple::Run(int frames,
canvas->clear(kColors[++frame_count % base::size(kColors)]);
if (gr_context_) {
gr_context_->flush();
gr_context_->flushAndSubmit();
glFinish();
}
......
......@@ -98,7 +98,7 @@ void SubSurfaceClient::Run(const ClientBase::InitParams& params) {
canvas->drawIRect(rect, paint);
canvas->restore();
if (gr_context_) {
gr_context_->flush();
gr_context_->flushAndSubmit();
glFinish();
}
wl_surface_damage(child_surface.get(), 0, 0, kSubsurfaceWidth,
......@@ -114,7 +114,7 @@ void SubSurfaceClient::Run(const ClientBase::InitParams& params) {
static const SkColor kColors[] = {SK_ColorRED, SK_ColorBLACK};
canvas->clear(kColors[frame_count % base::size(kColors)]);
if (gr_context_) {
gr_context_->flush();
gr_context_->flushAndSubmit();
glFinish();
}
wl_surface_set_buffer_scale(surface_.get(), scale_);
......
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