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

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

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/url_bar_texture.cc
diff --git a/chrome/browser/android/vr_shell/textures/url_bar_texture.cc b/chrome/browser/android/vr_shell/textures/url_bar_texture.cc
index 18269127ed6935878534aec010af51729de62618..57ca3d2f6b89ef975e5d51d8dbf2b2e039e9f98f 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.cc
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.cc
@@ -63,13 +63,13 @@ UrlBarTexture::~UrlBarTexture() = default;
void UrlBarTexture::SetURL(const GURL& gurl) {
if (gurl_ != gurl)
- dirty_ = true;
+ set_dirty();
gurl_ = gurl;
}
void UrlBarTexture::SetSecurityLevel(int level) {
if (&getSecurityIcon(security_level_) != &getSecurityIcon(level))
- dirty_ = true;
+ set_dirty();
security_level_ = level;
}
@@ -166,7 +166,7 @@ gfx::SizeF UrlBarTexture::GetDrawnSize() const {
bool UrlBarTexture::SetDrawFlags(int draw_flags) {
if (draw_flags != GetDrawFlags())
- dirty_ = true;
+ set_dirty();
return UiTexture::SetDrawFlags(draw_flags);
}

Powered by Google App Engine
This is Rietveld 408576698