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

Issue 2969023003: [vr] Ensure that textured elements never draw with a dirty texture (Closed)

Created:
3 years, 5 months ago by Ian Vollick
Modified:
3 years, 5 months ago
Reviewers:
cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[vr] Ensure that textured elements never draw with a dirty texture This should never be possible, so I've made UpdateTexture a part of OnBeginFrame. It will usually early out (because the texture won't be dirty), but will ensure that we never again draw with a dirty texture. I've also added a DCHECK to ensure that we don't change this. NB: this has no impact on the the update throttling done by the URL bar since it has its own overridden implementation of OnBeginFrame. BUG=None Review-Url: https://codereview.chromium.org/2969023003 Cr-Commit-Position: refs/heads/master@{#484142} Committed: https://chromium.googlesource.com/chromium/src/+/286a6b8e56a7bd0b7ac58d8b9ba933e0c3dc2405

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M chrome/browser/android/vr_shell/ui_elements/textured_element.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/textured_element.cc View 1 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
Ian Vollick
3 years, 5 months ago (2017-07-04 16:25:11 UTC) #2
cjgrant
https://codereview.chromium.org/2969023003/diff/1/chrome/browser/android/vr_shell/ui_elements/textured_element.cc File chrome/browser/android/vr_shell/ui_elements/textured_element.cc (right): https://codereview.chromium.org/2969023003/diff/1/chrome/browser/android/vr_shell/ui_elements/textured_element.cc#newcode32 chrome/browser/android/vr_shell/ui_elements/textured_element.cc:32: if (!initialized_ || !GetTexture()->dirty()) Now that we call this ...
3 years, 5 months ago (2017-07-04 16:29:16 UTC) #3
Ian Vollick
https://codereview.chromium.org/2969023003/diff/1/chrome/browser/android/vr_shell/ui_elements/textured_element.cc File chrome/browser/android/vr_shell/ui_elements/textured_element.cc (right): https://codereview.chromium.org/2969023003/diff/1/chrome/browser/android/vr_shell/ui_elements/textured_element.cc#newcode32 chrome/browser/android/vr_shell/ui_elements/textured_element.cc:32: if (!initialized_ || !GetTexture()->dirty()) On 2017/07/04 16:29:16, cjgrant wrote: ...
3 years, 5 months ago (2017-07-04 16:40:53 UTC) #4
cjgrant
lgtm
3 years, 5 months ago (2017-07-04 17:52:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2969023003/20001
3 years, 5 months ago (2017-07-04 17:56:06 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/286a6b8e56a7bd0b7ac58d8b9ba933e0c3dc2405
3 years, 5 months ago (2017-07-04 19:01:16 UTC) #10
bsheedy
3 years, 5 months ago (2017-07-05 17:29:42 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2972843002/ by bsheedy@chromium.org.

The reason for reverting is: Breaks some VR browser navigation tests due to
failing DCHECK
https://build.chromium.org/p/chromium.fyi/builders/Android%20VR%20Tests?numbu....

Powered by Google App Engine
This is Rietveld 408576698