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

Unified Diff: chrome/browser/android/vr_shell/ui_elements/textured_element.cc

Issue 2864903002: Add tracing to TexturedElement (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_elements/textured_element.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements/textured_element.cc b/chrome/browser/android/vr_shell/ui_elements/textured_element.cc
index 3623c1e4529105dbc6381f1d1d13b609bc2b1fbb..f0235fe41eb7b28808b4a3c4d5e802007a2e5126 100644
--- a/chrome/browser/android/vr_shell/ui_elements/textured_element.cc
+++ b/chrome/browser/android/vr_shell/ui_elements/textured_element.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/android/vr_shell/ui_elements/textured_element.h"
+#include "base/trace_event/trace_event.h"
#include "cc/paint/skia_paint_canvas.h"
#include "chrome/browser/android/vr_shell/textures/ui_texture.h"
#include "chrome/browser/android/vr_shell/vr_shell_renderer.h"
@@ -17,6 +18,7 @@ TexturedElement::TexturedElement(int maximum_width)
TexturedElement::~TexturedElement() = default;
void TexturedElement::Initialize() {
+ TRACE_EVENT0("gpu", "TexturedElement::Initialize");
glGenTextures(1, &texture_handle_);
DCHECK(GetTexture() != nullptr);
texture_size_ = GetTexture()->GetPreferredTextureSize(maximum_width_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698