| 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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 WebGLId, WGC3Denum, WGC3Duint*) | 820 WebGLId, WGC3Denum, WGC3Duint*) |
| 821 | 821 |
| 822 DELEGATE_TO_GL_5(copyTextureCHROMIUM, | 822 DELEGATE_TO_GL_5(copyTextureCHROMIUM, |
| 823 CopyTextureCHROMIUM, | 823 CopyTextureCHROMIUM, |
| 824 WGC3Denum, | 824 WGC3Denum, |
| 825 WebGLId, | 825 WebGLId, |
| 826 WebGLId, | 826 WebGLId, |
| 827 WGC3Denum, | 827 WGC3Denum, |
| 828 WGC3Denum); | 828 WGC3Denum); |
| 829 | 829 |
| 830 DELEGATE_TO_GL_5(copySubTextureCHROMIUM, | 830 DELEGATE_TO_GL_9(copySubTextureCHROMIUM, |
| 831 CopySubTextureCHROMIUM, | 831 CopySubTextureCHROMIUM, |
| 832 WGC3Denum, | 832 WGC3Denum, |
| 833 WebGLId, | 833 WebGLId, |
| 834 WebGLId, | 834 WebGLId, |
| 835 WGC3Dint, | 835 WGC3Dint, |
| 836 WGC3Dint); | 836 WGC3Dint, |
| 837 WGC3Dint, |
| 838 WGC3Dint, |
| 839 WGC3Dsizei, |
| 840 WGC3Dsizei); |
| 837 | 841 |
| 838 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, | 842 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, |
| 839 WebGLId, WGC3Dint, const WGC3Dchar*) | 843 WebGLId, WGC3Dint, const WGC3Dchar*) |
| 840 | 844 |
| 841 void WebGraphicsContext3DImpl::shallowFlushCHROMIUM() { | 845 void WebGraphicsContext3DImpl::shallowFlushCHROMIUM() { |
| 842 flush_id_ = GenFlushID(); | 846 flush_id_ = GenFlushID(); |
| 843 gl_->ShallowFlushCHROMIUM(); | 847 gl_->ShallowFlushCHROMIUM(); |
| 844 } | 848 } |
| 845 | 849 |
| 846 void WebGraphicsContext3DImpl::shallowFinishCHROMIUM() { | 850 void WebGraphicsContext3DImpl::shallowFinishCHROMIUM() { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 output_attribs->samples = attributes.antialias ? 4 : 0; | 1228 output_attribs->samples = attributes.antialias ? 4 : 0; |
| 1225 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; | 1229 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; |
| 1226 output_attribs->fail_if_major_perf_caveat = | 1230 output_attribs->fail_if_major_perf_caveat = |
| 1227 attributes.failIfMajorPerformanceCaveat; | 1231 attributes.failIfMajorPerformanceCaveat; |
| 1228 output_attribs->bind_generates_resource = false; | 1232 output_attribs->bind_generates_resource = false; |
| 1229 output_attribs->es3_context_required = | 1233 output_attribs->es3_context_required = |
| 1230 (attributes.webGL && attributes.webGLVersion == 2); | 1234 (attributes.webGL && attributes.webGLVersion == 2); |
| 1231 } | 1235 } |
| 1232 | 1236 |
| 1233 } // namespace gpu_blink | 1237 } // namespace gpu_blink |
| OLD | NEW |