Index: remoting/client/gl_cursor_feedback.cc |
diff --git a/remoting/client/gl_cursor_feedback.cc b/remoting/client/gl_cursor_feedback.cc |
index c3fcbb49805bcdcd450b2acb02c78e7b644059e9..3bbe936b5f809fbda09136ec25dea25a7e1c40c5 100644 |
--- a/remoting/client/gl_cursor_feedback.cc |
+++ b/remoting/client/gl_cursor_feedback.cc |
@@ -43,7 +43,9 @@ float GetExpansionCoefficient(float progress) { |
namespace remoting { |
-GlCursorFeedback::GlCursorFeedback() {} |
+GlCursorFeedback::GlCursorFeedback() : weak_factory_(this) { |
+ SetZIndex(DrawableZIndex::CURSOR_FEEDBACK); |
+} |
GlCursorFeedback::~GlCursorFeedback() {} |
@@ -89,4 +91,8 @@ bool GlCursorFeedback::Draw() { |
return true; |
} |
+base::WeakPtr<GlDrawable> GlCursorFeedback::GetWeakPtr() { |
+ return weak_factory_.GetWeakPtr(); |
+} |
+ |
} // namespace remoting |