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

Unified Diff: remoting/client/gl_cursor_feedback.cc

Issue 2591363002: Adding drawable to CRD andorid and iOS gl rendering pipeline. (Closed)
Patch Set: Minor cleanup of an unused const. Created 4 years 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: 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

Powered by Google App Engine
This is Rietveld 408576698