| Index: chrome/browser/android/vr_shell/textures/ui_texture.cc
|
| diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.cc b/chrome/browser/android/vr_shell/textures/ui_texture.cc
|
| index 4c68b42b6b057299a96ff3cf5d60b91d913f5536..f45e73094e01dcab2d74f82cebd8d29f60e6d68d 100644
|
| --- a/chrome/browser/android/vr_shell/textures/ui_texture.cc
|
| +++ b/chrome/browser/android/vr_shell/textures/ui_texture.cc
|
| @@ -31,6 +31,13 @@ UiTexture::UiTexture() = default;
|
|
|
| UiTexture::~UiTexture() = default;
|
|
|
| +bool UiTexture::Update(int draw_flags) {
|
| + if (draw_flags == draw_flags_)
|
| + return false;
|
| + draw_flags_ = draw_flags;
|
| + return true;
|
| +}
|
| +
|
| void UiTexture::DrawAndLayout(SkCanvas* canvas, const gfx::Size& texture_size) {
|
| canvas->drawColor(SK_ColorTRANSPARENT);
|
| Draw(canvas, texture_size);
|
|
|