| OLD | NEW |
| 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 #ifndef REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ | 5 #ifndef REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ |
| 6 #define REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ | 6 #define REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ |
| 7 | 7 |
| 8 #include <array> |
| 9 #include <memory> |
| 10 |
| 8 #include "base/macros.h" | 11 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 10 #include "remoting/client/sys_opengl.h" | 13 #include "remoting/client/sys_opengl.h" |
| 11 | 14 |
| 12 namespace remoting { | 15 namespace remoting { |
| 13 class GlCanvas; | 16 class GlCanvas; |
| 14 | 17 |
| 15 // This class is for drawing a texture on the canvas. Must be deleted before the | 18 // This class is for drawing a texture on the canvas. Must be deleted before the |
| 16 // canvas is deleted. | 19 // canvas is deleted. |
| 17 class GlRenderLayer { | 20 class GlRenderLayer { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // tightly pack dirty regions before sending them to GPU. | 91 // tightly pack dirty regions before sending them to GPU. |
| 89 std::unique_ptr<uint8_t[]> update_buffer_; | 92 std::unique_ptr<uint8_t[]> update_buffer_; |
| 90 int update_buffer_size_ = 0; | 93 int update_buffer_size_ = 0; |
| 91 | 94 |
| 92 base::ThreadChecker thread_checker_; | 95 base::ThreadChecker thread_checker_; |
| 93 DISALLOW_COPY_AND_ASSIGN(GlRenderLayer); | 96 DISALLOW_COPY_AND_ASSIGN(GlRenderLayer); |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 } // namespace remoting | 99 } // namespace remoting |
| 97 #endif // REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ | 100 #endif // REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ |
| OLD | NEW |