summaryrefslogtreecommitdiff
path: root/chromium/ppapi/proxy
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-23 10:34:49 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-04 20:05:08 +0000
commit830c9e163d31a9180fadca926b3e1d7dfffb5021 (patch)
tree1b96d45c67492b297e725932935d96d6efc91f37 /chromium/ppapi/proxy
parent818d9aed569afd192f6d4f6d9b28b72912df8b93 (diff)
downloadqtwebengine-chromium-830c9e163d31a9180fadca926b3e1d7dfffb5021.tar.gz
BASELINE: Update Chromium to 65.0.3325.230
Change-Id: Ied18ccfc9872b6a5c441218dec17debf93732ea1 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/ppapi/proxy')
-rw-r--r--chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc b/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc
index c518f944a02..665a2d2bb3b 100644
--- a/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc
+++ b/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc
@@ -170,6 +170,11 @@ void PpapiCommandBufferProxy::SetLock(base::Lock*) {
}
void PpapiCommandBufferProxy::EnsureWorkVisible() {
+ if (last_state_.error != gpu::error::kNoError)
+ return;
+
+ if (flush_info_->flush_pending)
+ FlushInternal();
DCHECK_GE(flushed_fence_sync_release_, validated_fence_sync_release_);
Send(new PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible(
ppapi::API_ID_PPB_GRAPHICS_3D, resource_));