| 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_desktop.h" | 5 #include "remoting/client/display/gl_desktop.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "remoting/client/gl_canvas.h" | 9 #include "remoting/client/display/gl_canvas.h" |
| 10 #include "remoting/client/gl_math.h" | 10 #include "remoting/client/display/gl_math.h" |
| 11 #include "remoting/client/gl_render_layer.h" | 11 #include "remoting/client/display/gl_render_layer.h" |
| 12 #include "remoting/client/gl_texture_ids.h" | 12 #include "remoting/client/display/gl_texture_ids.h" |
| 13 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 13 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
| 15 | 15 |
| 16 namespace remoting { | 16 namespace remoting { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 void UpdateDesktopRegion(const webrtc::DesktopFrame& frame, | 20 void UpdateDesktopRegion(const webrtc::DesktopFrame& frame, |
| 21 const webrtc::DesktopRegion& region, | 21 const webrtc::DesktopRegion& region, |
| 22 const webrtc::DesktopRect& texture_rect, | 22 const webrtc::DesktopRect& texture_rect, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 FillRectangleVertexPositions(rect.left(), rect.top(), rect.width(), | 118 FillRectangleVertexPositions(rect.left(), rect.top(), rect.width(), |
| 119 rect.height(), &positions); | 119 rect.height(), &positions); |
| 120 container->layer->SetVertexPositions(positions); | 120 container->layer->SetVertexPositions(positions); |
| 121 textures_.push_back(std::move(container)); | 121 textures_.push_back(std::move(container)); |
| 122 texture_id++; | 122 texture_id++; |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace remoting | 127 } // namespace remoting |
| OLD | NEW |