| Index: chrome/browser/android/vr_shell/ui_elements/textured_element.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_elements/textured_element.cc b/chrome/browser/android/vr_shell/ui_elements/textured_element.cc
|
| index afe2ae824dc6da6300f8d5e8ba66e44a5f0e91f0..e0a7a168f9546b1038c3694e415be72bc2e78a3c 100644
|
| --- a/chrome/browser/android/vr_shell/ui_elements/textured_element.cc
|
| +++ b/chrome/browser/android/vr_shell/ui_elements/textured_element.cc
|
| @@ -29,7 +29,7 @@
|
| }
|
|
|
| void TexturedElement::UpdateTexture() {
|
| - if (!initialized_ || !GetTexture()->dirty() || !IsVisible())
|
| + if (!initialized_ || !GetTexture()->dirty())
|
| return;
|
| sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(
|
| texture_size_.width(), texture_size_.height());
|
| @@ -50,7 +50,6 @@
|
| gfx::Transform view_proj_matrix) const {
|
| if (!initialized_)
|
| return;
|
| - DCHECK(!GetTexture()->dirty());
|
| gfx::SizeF drawn_size = GetTexture()->GetDrawnSize();
|
| gfx::RectF copy_rect(0, 0, drawn_size.width() / texture_size_.width(),
|
| drawn_size.height() / texture_size_.height());
|
| @@ -78,8 +77,4 @@
|
| UpdateTexture();
|
| }
|
|
|
| -void TexturedElement::OnBeginFrame(const base::TimeTicks& begin_frame_time) {
|
| - UpdateTexture();
|
| -}
|
| -
|
| } // namespace vr_shell
|
|
|