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

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

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Adding deps restriction on r/c/display; Moving sys_opengl.h Created 3 years, 11 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
« no previous file with comments | « remoting/client/display/gl_desktop.h ('k') | remoting/client/display/gl_helpers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « remoting/client/display/gl_desktop.h ('k') | remoting/client/display/gl_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698