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

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

Issue 2877133002: VR: Add a loading indicator to the scene. (Closed)
Patch Set: Rebase onto render text change. 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 9fb0b0fc62df173d490893ad754aac5d176877c0..5154cd720a1211640b8cda6e0d2e34998c402a62 100644
--- a/chrome/browser/android/vr_shell/textures/ui_texture.h
+++ b/chrome/browser/android/vr_shell/textures/ui_texture.h
@@ -44,6 +44,7 @@ class UiTexture {
// Returns true if the state changed.
virtual bool SetDrawFlags(int draw_flags);
int GetDrawFlags() { return draw_flags_; }
+ bool dirty() const { return dirty_; }
protected:
virtual void Draw(SkCanvas* canvas, const gfx::Size& texture_size) = 0;
@@ -61,12 +62,15 @@ class UiTexture {
gfx::Rect* bounds,
int flags);
+ void set_dirty() { dirty_ = true; }
+
static bool IsRTL();
static gfx::FontList GetDefaultFontList(int size);
static gfx::FontList GetFontList(int size, base::string16 text);
private:
int draw_flags_ = 0;
+ bool dirty_ = false;
};
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698