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

Side by Side Diff: remoting/client/display/gl_render_layer.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_render_layer.h ('k') | remoting/client/display/gl_renderer.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_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
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
OLDNEW
« no previous file with comments | « remoting/client/display/gl_render_layer.h ('k') | remoting/client/display/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698