Commit 2008c6b2 authored by CJ DiMeglio's avatar CJ DiMeglio Committed by Commit Bot

Changes bool to and instead of or.

We were moving onto to checking ContextGL if binding failed. This is bad,
because we should not touch ContextGL if we haven't been bound.

Bug: 879438
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I7898adf7af963216c388adaa35c5c2c287802fed
Reviewed-on: https://chromium-review.googlesource.com/1200363Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588190}
parent af7877a7
......@@ -196,7 +196,7 @@ void VideoFrameSubmitter::OnReceivedContextProvider(
auto result = context_provider_->BindToCurrentThread();
has_good_context =
result == gpu::ContextResult::kSuccess ||
result == gpu::ContextResult::kSuccess &&
context_provider_->ContextGL()->GetGraphicsResetStatusKHR() ==
GL_NO_ERROR;
}
......
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