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/gl_desktop.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "remoting/client/gl_canvas.h" | 8 #include "remoting/client/gl_canvas.h" |
9 #include "remoting/client/gl_render_layer.h" | 9 #include "remoting/client/gl_render_layer.h" |
10 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 10 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 rect_start, i.rect().left(), i.rect().top(), i.rect().width(), | 47 rect_start, i.rect().left(), i.rect().top(), i.rect().width(), |
48 i.rect().height(), frame->stride()); | 48 i.rect().height(), frame->stride()); |
49 } | 49 } |
50 } | 50 } |
51 } | 51 } |
52 last_frame_ = std::move(frame); | 52 last_frame_ = std::move(frame); |
53 } | 53 } |
54 | 54 |
55 void GlDesktop::Draw() { | 55 void GlDesktop::Draw() { |
56 if (layer_ && last_frame_) { | 56 if (layer_ && last_frame_) { |
57 layer_->Draw(); | 57 layer_->Draw(1.f); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 } // namespace remoting | 61 } // namespace remoting |
OLD | NEW |