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

Unified Diff: chrome/browser/android/vr_shell/textures/ui_texture.cc

Issue 2878543002: Refactor VR Shell Input. Locks input to click/scroll targets. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698