Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1608)

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 1608313003: Only validate CommandBufferProxyImpl flush if channel exists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/command_buffer_proxy_impl.cc
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index 0c95666546a7d7aabd2fd62db5709ca3d3b3a370..1b5d14b2ff4f66ba8120dd806a27e16f0f09763c 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -530,7 +530,8 @@ bool CommandBufferProxyImpl::IsGpuChannelLost() {
}
void CommandBufferProxyImpl::EnsureWorkVisible() {
- channel_->ValidateFlushIDReachedServer(stream_id_, true);
+ if (channel_)
+ channel_->ValidateFlushIDReachedServer(stream_id_, true);
}
gpu::CommandBufferNamespace CommandBufferProxyImpl::GetNamespaceID() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698