| 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 "webkit/common/gpu/webgraphicscontext3d_impl.h" | 5 #include "webkit/common/gpu/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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 WGC3Dintptr offset, | 904 WGC3Dintptr offset, |
| 905 WGC3Dsizei primcount) { | 905 WGC3Dsizei primcount) { |
| 906 gl_->DrawElementsInstancedANGLE( | 906 gl_->DrawElementsInstancedANGLE( |
| 907 mode, count, type, | 907 mode, count, type, |
| 908 reinterpret_cast<void*>(static_cast<intptr_t>(offset)), primcount); | 908 reinterpret_cast<void*>(static_cast<intptr_t>(offset)), primcount); |
| 909 } | 909 } |
| 910 | 910 |
| 911 DELEGATE_TO_GL_2(vertexAttribDivisorANGLE, VertexAttribDivisorANGLE, WGC3Duint, | 911 DELEGATE_TO_GL_2(vertexAttribDivisorANGLE, VertexAttribDivisorANGLE, WGC3Duint, |
| 912 WGC3Duint) | 912 WGC3Duint) |
| 913 | 913 |
| 914 DELEGATE_TO_GL_4R(createImageCHROMIUM, | |
| 915 CreateImageCHROMIUM, | |
| 916 WGC3Dsizei, | |
| 917 WGC3Dsizei, | |
| 918 WGC3Denum, | |
| 919 WGC3Denum, | |
| 920 WGC3Duint); | |
| 921 | |
| 922 DELEGATE_TO_GL_1(destroyImageCHROMIUM, DestroyImageCHROMIUM, WGC3Duint); | |
| 923 | |
| 924 DELEGATE_TO_GL_3(getImageParameterivCHROMIUM, GetImageParameterivCHROMIUM, | |
| 925 WGC3Duint, WGC3Denum, GLint*); | |
| 926 | |
| 927 DELEGATE_TO_GL_1R(mapImageCHROMIUM, MapImageCHROMIUM, WGC3Duint, void*); | |
| 928 | |
| 929 DELEGATE_TO_GL_1(unmapImageCHROMIUM, UnmapImageCHROMIUM, WGC3Duint); | |
| 930 | |
| 931 DELEGATE_TO_GL_4R(createGpuMemoryBufferImageCHROMIUM, | 914 DELEGATE_TO_GL_4R(createGpuMemoryBufferImageCHROMIUM, |
| 932 CreateGpuMemoryBufferImageCHROMIUM, | 915 CreateGpuMemoryBufferImageCHROMIUM, |
| 933 WGC3Dsizei, | 916 WGC3Dsizei, |
| 934 WGC3Dsizei, | 917 WGC3Dsizei, |
| 935 WGC3Denum, | 918 WGC3Denum, |
| 936 WGC3Denum, | 919 WGC3Denum, |
| 937 WGC3Duint); | 920 WGC3Duint); |
| 938 | 921 |
| 922 DELEGATE_TO_GL_1(destroyImageCHROMIUM, DestroyImageCHROMIUM, WGC3Duint); |
| 923 |
| 939 DELEGATE_TO_GL_6(framebufferTexture2DMultisampleEXT, | 924 DELEGATE_TO_GL_6(framebufferTexture2DMultisampleEXT, |
| 940 FramebufferTexture2DMultisampleEXT, | 925 FramebufferTexture2DMultisampleEXT, |
| 941 WGC3Denum, WGC3Denum, WGC3Denum, WebGLId, WGC3Dint, WGC3Dsizei) | 926 WGC3Denum, WGC3Denum, WGC3Denum, WebGLId, WGC3Dint, WGC3Dsizei) |
| 942 | 927 |
| 943 DELEGATE_TO_GL_5(renderbufferStorageMultisampleEXT, | 928 DELEGATE_TO_GL_5(renderbufferStorageMultisampleEXT, |
| 944 RenderbufferStorageMultisampleEXT, WGC3Denum, WGC3Dsizei, | 929 RenderbufferStorageMultisampleEXT, WGC3Denum, WGC3Dsizei, |
| 945 WGC3Denum, WGC3Dsizei, WGC3Dsizei) | 930 WGC3Denum, WGC3Dsizei, WGC3Dsizei) |
| 946 | 931 |
| 947 GrGLInterface* WebGraphicsContext3DImpl::createGrGLInterface() { | 932 GrGLInterface* WebGraphicsContext3DImpl::createGrGLInterface() { |
| 948 return skia_bindings::CreateCommandBufferSkiaGLBinding(); | 933 return skia_bindings::CreateCommandBufferSkiaGLBinding(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 output_attribs->stencil_size = attributes.stencil ? 8 : 0; | 982 output_attribs->stencil_size = attributes.stencil ? 8 : 0; |
| 998 output_attribs->samples = attributes.antialias ? 4 : 0; | 983 output_attribs->samples = attributes.antialias ? 4 : 0; |
| 999 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; | 984 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; |
| 1000 output_attribs->fail_if_major_perf_caveat = | 985 output_attribs->fail_if_major_perf_caveat = |
| 1001 attributes.failIfMajorPerformanceCaveat; | 986 attributes.failIfMajorPerformanceCaveat; |
| 1002 output_attribs->bind_generates_resource = false; | 987 output_attribs->bind_generates_resource = false; |
| 1003 } | 988 } |
| 1004 | 989 |
| 1005 } // namespace gpu | 990 } // namespace gpu |
| 1006 } // namespace webkit | 991 } // namespace webkit |
| OLD | NEW |