| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/debug/fake_web_graphics_context_3d.h" | 5 #include "cc/debug/fake_web_graphics_context_3d.h" |
| 6 | 6 |
| 7 #include "third_party/khronos/GLES2/gl2.h" | 7 #include "third_party/khronos/GLES2/gl2.h" |
| 8 | 8 |
| 9 using WebKit::WGC3Dboolean; | 9 using WebKit::WGC3Dboolean; |
| 10 using WebKit::WGC3Denum; | 10 using WebKit::WGC3Denum; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 WebKit::WGC3Dint* value) { | 145 WebKit::WGC3Dint* value) { |
| 146 if (pname == GL_COMPILE_STATUS) | 146 if (pname == GL_COMPILE_STATUS) |
| 147 *value = 1; | 147 *value = 1; |
| 148 } | 148 } |
| 149 | 149 |
| 150 WebKit::WebString FakeWebGraphicsContext3D::getShaderInfoLog( | 150 WebKit::WebString FakeWebGraphicsContext3D::getShaderInfoLog( |
| 151 WebGLId shader) { | 151 WebGLId shader) { |
| 152 return WebKit::WebString(); | 152 return WebKit::WebString(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void FakeWebGraphicsContext3D::getShaderPrecisionFormat( |
| 156 WebKit::WGC3Denum shadertype, |
| 157 WebKit::WGC3Denum precisiontype, |
| 158 WebKit::WGC3Dint* range, |
| 159 WebKit::WGC3Dint* precision) { |
| 160 range[0] = 0; |
| 161 range[1] = 0; |
| 162 *precision = 0; |
| 163 } |
| 164 |
| 155 WebKit::WebString FakeWebGraphicsContext3D::getShaderSource( | 165 WebKit::WebString FakeWebGraphicsContext3D::getShaderSource( |
| 156 WebGLId shader) { | 166 WebGLId shader) { |
| 157 return WebKit::WebString(); | 167 return WebKit::WebString(); |
| 158 } | 168 } |
| 159 | 169 |
| 160 WebKit::WebString FakeWebGraphicsContext3D::getString(WGC3Denum name) { | 170 WebKit::WebString FakeWebGraphicsContext3D::getString(WGC3Denum name) { |
| 161 return WebKit::WebString(); | 171 return WebKit::WebString(); |
| 162 } | 172 } |
| 163 | 173 |
| 164 WebKit::WGC3Dint FakeWebGraphicsContext3D::getUniformLocation( | 174 WebKit::WGC3Dint FakeWebGraphicsContext3D::getUniformLocation( |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 300 |
| 291 void FakeWebGraphicsContext3D::setContextLostCallback( | 301 void FakeWebGraphicsContext3D::setContextLostCallback( |
| 292 WebGraphicsContextLostCallback* callback) { | 302 WebGraphicsContextLostCallback* callback) { |
| 293 } | 303 } |
| 294 | 304 |
| 295 void FakeWebGraphicsContext3D::loseContextCHROMIUM(WGC3Denum current, | 305 void FakeWebGraphicsContext3D::loseContextCHROMIUM(WGC3Denum current, |
| 296 WGC3Denum other) { | 306 WGC3Denum other) { |
| 297 } | 307 } |
| 298 | 308 |
| 299 } // namespace cc | 309 } // namespace cc |
| OLD | NEW |