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

Unified Diff: remoting/client/display/gl_cursor.cc

Issue 2886453004: Adding ThreadChecker validation to d'tors for client classes (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 | « remoting/client/display/fake_canvas.cc ('k') | remoting/client/display/gl_cursor_feedback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/display/gl_cursor.cc
diff --git a/remoting/client/display/gl_cursor.cc b/remoting/client/display/gl_cursor.cc
index 113de2566533260551eaa8a19fdf55053f091cd8..cabb758ec2ceca4307b8c4045218684d48fe4392 100644
--- a/remoting/client/display/gl_cursor.cc
+++ b/remoting/client/display/gl_cursor.cc
@@ -20,7 +20,9 @@ const int kDefaultCursorDataSize = 32 * 32 * GlRenderLayer::kBytesPerPixel;
GlCursor::GlCursor() : weak_factory_(this) {}
-GlCursor::~GlCursor() {}
+GlCursor::~GlCursor() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
void GlCursor::SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) {
int data_size = cursor_shape.width() * cursor_shape.height() *
« no previous file with comments | « remoting/client/display/fake_canvas.cc ('k') | remoting/client/display/gl_cursor_feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698