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

Side by Side Diff: remoting/client/display/gl_render_layer.h

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_math.cc ('k') | remoting/client/display/gl_render_layer.cc » ('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 #ifndef REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_RENDER_LAYER_H_
6 #define REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ 6 #define REMOTING_CLIENT_DISPLAY_GL_RENDER_LAYER_H_
7 7
8 #include <array> 8 #include <array>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "remoting/client/sys_opengl.h" 13 #include "remoting/client/display/sys_opengl.h"
14 14
15 namespace remoting { 15 namespace remoting {
16 class GlCanvas; 16 class GlCanvas;
17 17
18 // This class is for drawing a texture on the canvas. Must be deleted before the 18 // This class is for drawing a texture on the canvas. Must be deleted before the
19 // canvas is deleted. 19 // canvas is deleted.
20 class GlRenderLayer { 20 class GlRenderLayer {
21 public: 21 public:
22 static const int kBytesPerPixel = 4; 22 static const int kBytesPerPixel = 4;
23 23
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Used in OpenGL ES 2 context which doesn't support GL_UNPACK_ROW_LENGTH to 90 // Used in OpenGL ES 2 context which doesn't support GL_UNPACK_ROW_LENGTH to
91 // tightly pack dirty regions before sending them to GPU. 91 // tightly pack dirty regions before sending them to GPU.
92 std::unique_ptr<uint8_t[]> update_buffer_; 92 std::unique_ptr<uint8_t[]> update_buffer_;
93 int update_buffer_size_ = 0; 93 int update_buffer_size_ = 0;
94 94
95 base::ThreadChecker thread_checker_; 95 base::ThreadChecker thread_checker_;
96 DISALLOW_COPY_AND_ASSIGN(GlRenderLayer); 96 DISALLOW_COPY_AND_ASSIGN(GlRenderLayer);
97 }; 97 };
98 98
99 } // namespace remoting 99 } // namespace remoting
100 #endif // REMOTING_CLIENT_OPENGL_GL_RENDER_LAYER_H_ 100 #endif // REMOTING_CLIENT_DISPLAY_GL_RENDER_LAYER_H_
OLDNEW
« no previous file with comments | « remoting/client/display/gl_math.cc ('k') | remoting/client/display/gl_render_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698