OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/ios/display/gl_demo_screen.h" | 5 #include "remoting/ios/display/gl_demo_screen.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "remoting/client/display/canvas.h" | 8 #include "remoting/client/display/canvas.h" |
9 #include "remoting/client/display/gl_math.h" | 9 #include "remoting/client/display/gl_math.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const GLfloat square[] = {-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0}; | 15 const GLfloat square[] = {-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0}; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 106 } |
107 return false; | 107 return false; |
108 } | 108 } |
109 | 109 |
110 base::WeakPtr<Drawable> GlDemoScreen::GetWeakPtr() { | 110 base::WeakPtr<Drawable> GlDemoScreen::GetWeakPtr() { |
111 DCHECK(thread_checker_.CalledOnValidThread()); | 111 DCHECK(thread_checker_.CalledOnValidThread()); |
112 return weak_factory_.GetWeakPtr(); | 112 return weak_factory_.GetWeakPtr(); |
113 } | 113 } |
114 | 114 |
115 } // namespace remoting | 115 } // namespace remoting |
OLD | NEW |