OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
10 #include "ui/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 // These two functions take single precision float rather than double | 123 // These two functions take single precision float rather than double |
124 // precision float parameters in GLES. | 124 // precision float parameters in GLES. |
125 ::gfx::g_driver_gl.fn.glClearDepthFn = MarshalClearDepthToClearDepthf; | 125 ::gfx::g_driver_gl.fn.glClearDepthFn = MarshalClearDepthToClearDepthf; |
126 ::gfx::g_driver_gl.fn.glDepthRangeFn = MarshalDepthRangeToDepthRangef; | 126 ::gfx::g_driver_gl.fn.glDepthRangeFn = MarshalDepthRangeToDepthRangef; |
127 break; | 127 break; |
128 } | 128 } |
129 case kGLImplementationMockGL: { | 129 case kGLImplementationMockGL: { |
130 SetGLImplementation(kGLImplementationMockGL); | 130 SetGLImplementation(kGLImplementationMockGL); |
131 InitializeStaticGLBindingsGL(); | 131 InitializeStaticGLBindingsGL(); |
| 132 InitializeStaticGLBindingsEGL(); |
132 break; | 133 break; |
133 } | 134 } |
134 default: | 135 default: |
135 return false; | 136 return false; |
136 } | 137 } |
137 | 138 |
138 | 139 |
139 return true; | 140 return true; |
140 } | 141 } |
141 | 142 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 return GetGLWindowSystemBindingInfoGLX(info); | 194 return GetGLWindowSystemBindingInfoGLX(info); |
194 case kGLImplementationEGLGLES2: | 195 case kGLImplementationEGLGLES2: |
195 return GetGLWindowSystemBindingInfoEGL(info); | 196 return GetGLWindowSystemBindingInfoEGL(info); |
196 default: | 197 default: |
197 return false; | 198 return false; |
198 } | 199 } |
199 return false; | 200 return false; |
200 } | 201 } |
201 | 202 |
202 } // namespace gfx | 203 } // namespace gfx |
OLD | NEW |