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

Side by Side Diff: remoting/client/display/fake_canvas.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 unified diff | Download patch
« no previous file with comments | « remoting/client/client_telemetry_logger.cc ('k') | remoting/client/display/gl_cursor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/client/display/fake_canvas.h" 5 #include "remoting/client/display/fake_canvas.h"
6 6
7 namespace remoting { 7 namespace remoting {
8 8
9 FakeCanvas::FakeCanvas() : weak_factory_(this) {} 9 FakeCanvas::FakeCanvas() : weak_factory_(this) {}
10 10
11 FakeCanvas::~FakeCanvas() {} 11 FakeCanvas::~FakeCanvas() {
12 DCHECK(thread_checker_.CalledOnValidThread());
13 }
12 14
13 void FakeCanvas::Clear() {} 15 void FakeCanvas::Clear() {}
14 16
15 void FakeCanvas::SetTransformationMatrix(const std::array<float, 9>& matrix) {} 17 void FakeCanvas::SetTransformationMatrix(const std::array<float, 9>& matrix) {}
16 18
17 void FakeCanvas::SetViewSize(int width, int height) {} 19 void FakeCanvas::SetViewSize(int width, int height) {}
18 20
19 void FakeCanvas::DrawTexture(int texture_id, 21 void FakeCanvas::DrawTexture(int texture_id,
20 int texture_handle, 22 int texture_handle,
21 int vertex_buffer, 23 int vertex_buffer,
22 float alpha_multiplier) {} 24 float alpha_multiplier) {}
23 25
24 int FakeCanvas::GetVersion() const { 26 int FakeCanvas::GetVersion() const {
25 return 0; 27 return 0;
26 } 28 }
27 29
28 int FakeCanvas::GetMaxTextureSize() const { 30 int FakeCanvas::GetMaxTextureSize() const {
29 return 0; 31 return 0;
30 } 32 }
31 33
32 base::WeakPtr<Canvas> FakeCanvas::GetWeakPtr() { 34 base::WeakPtr<Canvas> FakeCanvas::GetWeakPtr() {
33 DCHECK(thread_checker_.CalledOnValidThread()); 35 DCHECK(thread_checker_.CalledOnValidThread());
34 return weak_factory_.GetWeakPtr(); 36 return weak_factory_.GetWeakPtr();
35 } 37 }
36 38
37 } // namespace remoting 39 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/client_telemetry_logger.cc ('k') | remoting/client/display/gl_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698