| 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 gl_->DeleteQueriesEXT(1, &query); | 819 gl_->DeleteQueriesEXT(1, &query); |
| 820 } | 820 } |
| 821 | 821 |
| 822 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) | 822 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) |
| 823 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) | 823 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) |
| 824 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) | 824 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) |
| 825 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) | 825 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) |
| 826 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, | 826 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, |
| 827 WebGLId, WGC3Denum, WGC3Duint*) | 827 WebGLId, WGC3Denum, WGC3Duint*) |
| 828 | 828 |
| 829 void WebGraphicsContext3DImpl::copyTextureCHROMIUM(WGC3Denum target, | |
| 830 WebGLId source_id, | |
| 831 WebGLId dest_id, | |
| 832 WGC3Dint level, | |
| 833 WGC3Denum internal_format, | |
| 834 WGC3Denum dest_type) { | |
| 835 copyTextureCHROMIUM(target, source_id, dest_id, internal_format, dest_type); | |
| 836 } | |
| 837 | |
| 838 void WebGraphicsContext3DImpl::copySubTextureCHROMIUM(WGC3Denum target, | |
| 839 WebGLId source_id, | |
| 840 WebGLId dest_id, | |
| 841 WGC3Dint level, | |
| 842 WGC3Dint xoffset, | |
| 843 WGC3Dint yoffset) { | |
| 844 copySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset); | |
| 845 } | |
| 846 | |
| 847 DELEGATE_TO_GL_5(copyTextureCHROMIUM, | 829 DELEGATE_TO_GL_5(copyTextureCHROMIUM, |
| 848 CopyTextureCHROMIUM, | 830 CopyTextureCHROMIUM, |
| 849 WGC3Denum, | 831 WGC3Denum, |
| 850 WebGLId, | 832 WebGLId, |
| 851 WebGLId, | 833 WebGLId, |
| 852 WGC3Denum, | 834 WGC3Denum, |
| 853 WGC3Denum); | 835 WGC3Denum); |
| 854 | 836 |
| 855 DELEGATE_TO_GL_5(copySubTextureCHROMIUM, | 837 DELEGATE_TO_GL_5(copySubTextureCHROMIUM, |
| 856 CopySubTextureCHROMIUM, | 838 CopySubTextureCHROMIUM, |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 output_attribs->samples = attributes.antialias ? 4 : 0; | 1211 output_attribs->samples = attributes.antialias ? 4 : 0; |
| 1230 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; | 1212 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; |
| 1231 output_attribs->fail_if_major_perf_caveat = | 1213 output_attribs->fail_if_major_perf_caveat = |
| 1232 attributes.failIfMajorPerformanceCaveat; | 1214 attributes.failIfMajorPerformanceCaveat; |
| 1233 output_attribs->bind_generates_resource = false; | 1215 output_attribs->bind_generates_resource = false; |
| 1234 output_attribs->es3_context_required = | 1216 output_attribs->es3_context_required = |
| 1235 (attributes.webGL && attributes.webGLVersion == 2); | 1217 (attributes.webGL && attributes.webGLVersion == 2); |
| 1236 } | 1218 } |
| 1237 | 1219 |
| 1238 } // namespace gpu_blink | 1220 } // namespace gpu_blink |
| OLD | NEW |