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

Side by Side Diff: gpu/blink/webgraphicscontext3d_impl.cc

Issue 1439913005: fix the bugs of getSyncParameter in gl-object-get-calls.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: coding style Created 5 years, 1 month 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 | « gpu/blink/webgraphicscontext3d_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698