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

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: Address comments 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..537d3f2259f6f3f419cbff25efc8db71aa26f5bc 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::SetDrawFlags(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);
« no previous file with comments | « chrome/browser/android/vr_shell/textures/ui_texture.h ('k') | chrome/browser/android/vr_shell/textures/url_bar_texture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698