| 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 "gpu/blink/webgraphicscontext3d_impl.h" | 5 #include "gpu/blink/webgraphicscontext3d_impl.h" |
| 6 | 6 |
| 7 #include "base/atomicops.h" | 7 #include "base/atomicops.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "gpu/GLES2/gl2extchromium.h" | 10 #include "gpu/GLES2/gl2extchromium.h" |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 blink::WebString::fromUTF8(log.get(), returnedLogLength); | 567 blink::WebString::fromUTF8(log.get(), returnedLogLength); |
| 568 return res; | 568 return res; |
| 569 } | 569 } |
| 570 | 570 |
| 571 blink::WebString WebGraphicsContext3DImpl::getString( | 571 blink::WebString WebGraphicsContext3DImpl::getString( |
| 572 WGC3Denum name) { | 572 WGC3Denum name) { |
| 573 return blink::WebString::fromUTF8( | 573 return blink::WebString::fromUTF8( |
| 574 reinterpret_cast<const char*>(gl_->GetString(name))); | 574 reinterpret_cast<const char*>(gl_->GetString(name))); |
| 575 } | 575 } |
| 576 | 576 |
| 577 void WebGraphicsContext3DImpl::getSynciv(blink::WGC3Dsync sync, |
| 578 blink::WGC3Denum pname, |
| 579 blink::WGC3Dsizei bufSize, |
| 580 blink::WGC3Dsizei *length, |
| 581 blink::WGC3Dint *params) { |
| 582 return gl_->GetSynciv( |
| 583 reinterpret_cast<GLsync>(sync), pname, bufSize, length, params); |
| 584 } |
| 585 |
| 577 DELEGATE_TO_GL_3(getTexParameterfv, GetTexParameterfv, | 586 DELEGATE_TO_GL_3(getTexParameterfv, GetTexParameterfv, |
| 578 WGC3Denum, WGC3Denum, WGC3Dfloat*) | 587 WGC3Denum, WGC3Denum, WGC3Dfloat*) |
| 579 | 588 |
| 580 DELEGATE_TO_GL_3(getTexParameteriv, GetTexParameteriv, | 589 DELEGATE_TO_GL_3(getTexParameteriv, GetTexParameteriv, |
| 581 WGC3Denum, WGC3Denum, WGC3Dint*) | 590 WGC3Denum, WGC3Denum, WGC3Dint*) |
| 582 | 591 |
| 583 DELEGATE_TO_GL_3(getUniformfv, GetUniformfv, WebGLId, WGC3Dint, WGC3Dfloat*) | 592 DELEGATE_TO_GL_3(getUniformfv, GetUniformfv, WebGLId, WGC3Dint, WGC3Dfloat*) |
| 584 | 593 |
| 585 DELEGATE_TO_GL_3(getUniformiv, GetUniformiv, WebGLId, WGC3Dint, WGC3Dint*) | 594 DELEGATE_TO_GL_3(getUniformiv, GetUniformiv, WebGLId, WGC3Dint, WGC3Dint*) |
| 586 | 595 |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2; | 1288 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2; |
| 1280 break; | 1289 break; |
| 1281 default: | 1290 default: |
| 1282 NOTREACHED(); | 1291 NOTREACHED(); |
| 1283 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; | 1292 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; |
| 1284 break; | 1293 break; |
| 1285 } | 1294 } |
| 1286 } | 1295 } |
| 1287 | 1296 |
| 1288 } // namespace gpu_blink | 1297 } // namespace gpu_blink |
| OLD | NEW |