Skip to content

Commit

Permalink
Changes bool to and instead of or.
Browse files Browse the repository at this point in the history
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/1200363
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#588190}(cherry picked from commit 2008c6b)
Reviewed-on: https://chromium-review.googlesource.com/1208133
Reviewed-by: Abdul Syed <abdulsyed@google.com>
Cr-Commit-Position: refs/branch-heads/3538@{#65}
Cr-Branched-From: 79f7c91-refs/heads/master@{#587811}
  • Loading branch information
CJ DiMeglio authored and Abdul Syed committed Sep 5, 2018
1 parent cd5baaa commit ee2046e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ee2046e

Please sign in to comment.