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

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

Issue 2877673005: VR: Avoiding regeneration of RenderText objects for texture rendering (Closed)
Patch Set: removing unnecessary comment 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.h
diff --git a/chrome/browser/android/vr_shell/textures/url_bar_texture.h b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
index 81630ead6d5444734938978feec9465871978240..2e3c08ae75f52bd94d4456d6a13a8eb86ccd5947 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -5,10 +5,16 @@
#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
#define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
-#include "chrome/browser/android/vr_shell/textures/ui_texture.h"
+#include <memory>
+#include <vector>
+#include "chrome/browser/android/vr_shell/textures/ui_texture.h"
#include "url/gurl.h"
+namespace gfx {
+class RenderText;
+} // namespace gfx
+
namespace vr_shell {
class UrlBarTexture : public UiTexture {
@@ -30,6 +36,8 @@ class UrlBarTexture : public UiTexture {
bool hover_ = false;
int security_level_;
GURL gurl_;
+ GURL last_drawn_gurl_;
+ std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_;
};
} // namespace vr_shell
« no previous file with comments | « chrome/browser/android/vr_shell/textures/ui_texture.cc ('k') | chrome/browser/android/vr_shell/textures/url_bar_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698