Chromium Code Reviews| 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 ~FakeCanvas() override; | |
| 21 | |
| 22 // Drawable implementation | |
|
Sergey Ulanov
2017/01/10 23:24:01
add . at the end
| |
| 23 void Clear() override; | |
| 24 void SetTransformationMatrix(const std::array<float, 9>& matrix) override; | |
| 25 void SetViewSize(int width, int height) override; | |
| 26 void DrawTexture(int texture_id, | |
| 27 GLuint texture_handle, | |
| 28 GLuint vertex_buffer, | |
| 29 float alpha_multiplier) override; | |
| 30 int GetVersion() const override; | |
| 31 int GetMaxTextureSize() const override; | |
| 32 base::WeakPtr<Canvas> GetWeakPtr() override; | |
| 33 | |
| 34 private: | |
| 35 base::ThreadChecker thread_checker_; | |
| 36 base::WeakPtrFactory<Canvas> weak_factory_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(FakeCanvas); | |
| 39 }; | |
| 40 | |
| 41 } // namespace remoting | |
| 42 | |
| 43 #endif // REMOTING_CLIENT_DISPLAY_FAKE_CANVAS_H_ | |
| OLD | NEW |