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

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: Clear dirty flags after drawing. This yields a mysterious performance boost. 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 3c6bd3ba327986c0b0b3e7de151b1a8c59b0d42a..897f74bc7fc57cf3a88fab722246128ee6ddcb8d 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.cc
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.cc
@@ -78,6 +78,8 @@ float UrlBarTexture::ToPixels(float meters) const {
}
void UrlBarTexture::Draw(SkCanvas* canvas, const gfx::Size& texture_size) {
+ dirty_ = false;
+
size_.set_height(texture_size.height());
size_.set_width(texture_size.width());

Powered by Google App Engine
This is Rietveld 408576698