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

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

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.h
diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.h b/chrome/browser/android/vr_shell/textures/ui_texture.h
index f1529b3dd8ccc4de94ff1d78fe2854354c8f5a1e..ab6e06d0cb9425d383ddce4c485f11634a344d42 100644
--- a/chrome/browser/android/vr_shell/textures/ui_texture.h
+++ b/chrome/browser/android/vr_shell/textures/ui_texture.h
@@ -27,6 +27,8 @@ class UiTexture {
void DrawAndLayout(SkCanvas* canvas, const gfx::Size& texture_size);
virtual gfx::Size GetPreferredTextureSize(int maximum_width) const = 0;
virtual gfx::SizeF GetDrawnSize() const = 0;
+ // Returns true if the state changed.
cjgrant 2017/05/10 20:16:25 Are you adding this here as a general purpose mean
mthiesse 2017/05/10 21:09:08 Changed to SetDrawFlags, missing getter was an ove
+ bool Update(int draw_flags);
protected:
virtual void Draw(SkCanvas* canvas, const gfx::Size& texture_size) = 0;
@@ -34,6 +36,8 @@ class UiTexture {
static bool IsRTL();
static gfx::FontList GetDefaultFontList(int size);
static gfx::FontList GetFontList(int size, base::string16 text);
+
+ int draw_flags_ = 0;
};
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698