Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: remoting/client/gl_desktop.cc

Issue 2148743005: [Remoting Android] Cursor & Cursor Feedback for OpenGL Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swap BGRA to RGBA Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698