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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 dstX0, dstY0, dstX1, dstY1, | 251 dstX0, dstY0, dstX1, dstY1, |
252 mask, filter); | 252 mask, filter); |
253 } | 253 } |
254 | 254 |
255 DELEGATE_TO_GL_5(renderbufferStorageMultisampleCHROMIUM, | 255 DELEGATE_TO_GL_5(renderbufferStorageMultisampleCHROMIUM, |
256 RenderbufferStorageMultisampleCHROMIUM, WGC3Denum, WGC3Dsizei, | 256 RenderbufferStorageMultisampleCHROMIUM, WGC3Denum, WGC3Dsizei, |
257 WGC3Denum, WGC3Dsizei, WGC3Dsizei) | 257 WGC3Denum, WGC3Dsizei, WGC3Dsizei) |
258 | 258 |
259 DELEGATE_TO_GL_1(activeTexture, ActiveTexture, WGC3Denum) | 259 DELEGATE_TO_GL_1(activeTexture, ActiveTexture, WGC3Denum) |
260 | 260 |
| 261 DELEGATE_TO_GL(applyScreenSpaceAntialiasingCHROMIUM, |
| 262 ApplyScreenSpaceAntialiasingCHROMIUM); |
| 263 |
261 DELEGATE_TO_GL_2(attachShader, AttachShader, WebGLId, WebGLId) | 264 DELEGATE_TO_GL_2(attachShader, AttachShader, WebGLId, WebGLId) |
262 | 265 |
263 DELEGATE_TO_GL_3(bindAttribLocation, BindAttribLocation, WebGLId, | 266 DELEGATE_TO_GL_3(bindAttribLocation, BindAttribLocation, WebGLId, |
264 WGC3Duint, const WGC3Dchar*) | 267 WGC3Duint, const WGC3Dchar*) |
265 | 268 |
266 DELEGATE_TO_GL_2(bindBuffer, BindBuffer, WGC3Denum, WebGLId) | 269 DELEGATE_TO_GL_2(bindBuffer, BindBuffer, WGC3Denum, WebGLId) |
267 | 270 |
268 DELEGATE_TO_GL_2(bindFramebuffer, BindFramebuffer, WGC3Denum, WebGLId) | 271 DELEGATE_TO_GL_2(bindFramebuffer, BindFramebuffer, WGC3Denum, WebGLId) |
269 | 272 |
270 DELEGATE_TO_GL_2(bindRenderbuffer, BindRenderbuffer, WGC3Denum, WebGLId) | 273 DELEGATE_TO_GL_2(bindRenderbuffer, BindRenderbuffer, WGC3Denum, WebGLId) |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 output_attribs->stencil_size = attributes.stencil ? 8 : 0; | 1251 output_attribs->stencil_size = attributes.stencil ? 8 : 0; |
1249 output_attribs->samples = attributes.antialias ? 4 : 0; | 1252 output_attribs->samples = attributes.antialias ? 4 : 0; |
1250 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; | 1253 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; |
1251 output_attribs->fail_if_major_perf_caveat = | 1254 output_attribs->fail_if_major_perf_caveat = |
1252 attributes.failIfMajorPerformanceCaveat; | 1255 attributes.failIfMajorPerformanceCaveat; |
1253 output_attribs->bind_generates_resource = false; | 1256 output_attribs->bind_generates_resource = false; |
1254 output_attribs->webgl_version = attributes.webGLVersion; | 1257 output_attribs->webgl_version = attributes.webGLVersion; |
1255 } | 1258 } |
1256 | 1259 |
1257 } // namespace gpu_blink | 1260 } // namespace gpu_blink |
OLD | NEW |