| 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 #include "remoting/client/gl_renderer.h" | 5 #include "remoting/client/display/gl_renderer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "remoting/client/gl_canvas.h" | 10 #include "remoting/client/display/gl_canvas.h" |
| 11 #include "remoting/client/gl_math.h" | 11 #include "remoting/client/display/gl_math.h" |
| 12 #include "remoting/client/gl_renderer_delegate.h" | 12 #include "remoting/client/display/gl_renderer_delegate.h" |
| 13 #include "remoting/client/sys_opengl.h" | 13 #include "remoting/client/display/sys_opengl.h" |
| 14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 15 | 15 |
| 16 namespace remoting { | 16 namespace remoting { |
| 17 | 17 |
| 18 GlRenderer::GlRenderer() : | 18 GlRenderer::GlRenderer() : |
| 19 weak_factory_(this) { | 19 weak_factory_(this) { |
| 20 weak_ptr_ = weak_factory_.GetWeakPtr(); | 20 weak_ptr_ = weak_factory_.GetWeakPtr(); |
| 21 thread_checker_.DetachFromThread(); | 21 thread_checker_.DetachFromThread(); |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 delegate_->OnFrameRendered(); | 162 delegate_->OnFrameRendered(); |
| 163 | 163 |
| 164 while (!pending_done_callbacks_.empty()) { | 164 while (!pending_done_callbacks_.empty()) { |
| 165 pending_done_callbacks_.front().Run(); | 165 pending_done_callbacks_.front().Run(); |
| 166 pending_done_callbacks_.pop(); | 166 pending_done_callbacks_.pop(); |
| 167 } | 167 } |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace remoting | 170 } // namespace remoting |
| OLD | NEW |