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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, | 839 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, |
840 WGC3Denum, const WGC3Dbyte*) | 840 WGC3Denum, const WGC3Dbyte*) |
841 DELEGATE_TO_GL_3(produceTextureDirectCHROMIUM, ProduceTextureDirectCHROMIUM, | 841 DELEGATE_TO_GL_3(produceTextureDirectCHROMIUM, ProduceTextureDirectCHROMIUM, |
842 WebGLId, WGC3Denum, const WGC3Dbyte*) | 842 WebGLId, WGC3Denum, const WGC3Dbyte*) |
843 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, | 843 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, |
844 WGC3Denum, const WGC3Dbyte*) | 844 WGC3Denum, const WGC3Dbyte*) |
845 DELEGATE_TO_GL_2R(createAndConsumeTextureCHROMIUM, | 845 DELEGATE_TO_GL_2R(createAndConsumeTextureCHROMIUM, |
846 CreateAndConsumeTextureCHROMIUM, | 846 CreateAndConsumeTextureCHROMIUM, |
847 WGC3Denum, const WGC3Dbyte*, WebGLId) | 847 WGC3Denum, const WGC3Dbyte*, WebGLId) |
848 | 848 |
| 849 DELEGATE_TO_GL_2(subscribeUniformCHROMIUM, |
| 850 SubscribeUniformCHROMIUM, |
| 851 WGC3Denum, |
| 852 const WGC3Dchar*) |
| 853 |
849 void WebGraphicsContext3DImpl::insertEventMarkerEXT( | 854 void WebGraphicsContext3DImpl::insertEventMarkerEXT( |
850 const WGC3Dchar* marker) { | 855 const WGC3Dchar* marker) { |
851 gl_->InsertEventMarkerEXT(0, marker); | 856 gl_->InsertEventMarkerEXT(0, marker); |
852 } | 857 } |
853 | 858 |
854 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( | 859 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( |
855 const WGC3Dchar* marker) { | 860 const WGC3Dchar* marker) { |
856 gl_->PushGroupMarkerEXT(0, marker); | 861 gl_->PushGroupMarkerEXT(0, marker); |
857 } | 862 } |
858 | 863 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 output_attribs->stencil_size = attributes.stencil ? 8 : 0; | 987 output_attribs->stencil_size = attributes.stencil ? 8 : 0; |
983 output_attribs->samples = attributes.antialias ? 4 : 0; | 988 output_attribs->samples = attributes.antialias ? 4 : 0; |
984 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; | 989 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; |
985 output_attribs->fail_if_major_perf_caveat = | 990 output_attribs->fail_if_major_perf_caveat = |
986 attributes.failIfMajorPerformanceCaveat; | 991 attributes.failIfMajorPerformanceCaveat; |
987 output_attribs->bind_generates_resource = false; | 992 output_attribs->bind_generates_resource = false; |
988 } | 993 } |
989 | 994 |
990 } // namespace gpu | 995 } // namespace gpu |
991 } // namespace webkit | 996 } // namespace webkit |
OLD | NEW |