| 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_render_layer.h" | 5 #include "remoting/client/display/gl_render_layer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "remoting/client/gl_canvas.h" | 8 #include "remoting/client/display/gl_canvas.h" |
| 9 #include "remoting/client/gl_helpers.h" | 9 #include "remoting/client/display/gl_helpers.h" |
| 10 | |
| 11 | 10 |
| 12 namespace remoting { | 11 namespace remoting { |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 | 14 |
| 16 // Assign texture coordinates to buffers for use in shader program. | 15 // Assign texture coordinates to buffers for use in shader program. |
| 17 const float kVertices[] = { | 16 const float kVertices[] = { |
| 18 // Points order: upper-left, bottom-left, upper-right, bottom-right. | 17 // Points order: upper-left, bottom-left, upper-right, bottom-right. |
| 19 | 18 |
| 20 // Positions to draw the texture on the normalized canvas coordinate. | 19 // Positions to draw the texture on the normalized canvas coordinate. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } else { | 161 } else { |
| 163 update_buffer_size_ = required_size; | 162 update_buffer_size_ = required_size; |
| 164 } | 163 } |
| 165 update_buffer_.reset(new uint8_t[update_buffer_size_]); | 164 update_buffer_.reset(new uint8_t[update_buffer_size_]); |
| 166 } | 165 } |
| 167 PackDirtyRegion(update_buffer_.get(), data, width, height, stride); | 166 PackDirtyRegion(update_buffer_.get(), data, width, height, stride); |
| 168 return update_buffer_.get(); | 167 return update_buffer_.get(); |
| 169 } | 168 } |
| 170 | 169 |
| 171 } // namespace remoting | 170 } // namespace remoting |
| OLD | NEW |