OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_CLIENT_DISPLAY_FAKE_CANVAS_H_ | |
6 #define REMOTING_CLIENT_DISPLAY_FAKE_CANVAS_H_ | |
7 | |
8 #include <array> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/threading/thread_checker.h" | |
12 #include "remoting/client/display/gl_canvas.h" | |
13 #include "remoting/client/display/sys_opengl.h" | |
14 | |
15 namespace remoting { | |
16 | |
17 class FakeCanvas : public Canvas { | |
18 public: | |
19 FakeCanvas() {} | |
20 | |
joedow
2017/01/10 00:19:43
nit: rmeove this newline to squeeze the c'tor and
nicholss
2017/01/10 21:43:10
Done.
| |
21 ~FakeCanvas() override {} | |
22 | |
23 void Clear() override {} | |
24 | |
joedow
2017/01/10 00:19:43
common practice is to remove the newlines for the
nicholss
2017/01/10 21:43:10
Done.
| |
25 void SetTransformationMatrix(const std::array<float, 9>& matrix) override {} | |
26 | |
27 void SetViewSize(int width, int height) override {} | |
joedow
2017/01/10 00:19:43
Since you have a cc file, the impls for all of the
nicholss
2017/01/10 16:58:34
Given this is a test file, does it matter?
joedow
2017/01/10 18:49:27
Test code should beheld to the same (or very simil
nicholss
2017/01/10 21:43:10
Done.
| |
28 | |
29 void DrawTexture(int texture_id, | |
30 GLuint texture_handle, | |
31 GLuint vertex_buffer, | |
32 float alpha_multiplier) override {} | |
33 | |
34 int GetVersion() const override; | |
35 | |
36 int GetMaxTextureSize() const override; | |
37 | |
joedow
2017/01/10 00:19:43
add private:
nicholss
2017/01/10 21:43:10
Done.
| |
38 DISALLOW_COPY_AND_ASSIGN(FakeCanvas); | |
39 }; | |
40 | |
41 } // namespace remoting | |
42 | |
43 #endif // REMOTING_CLIENT_DISPLAY_FAKE_CANVAS_H_ | |
OLD | NEW |