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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 | 838 |
839 void WebGraphicsContext3DImpl::loseContextCHROMIUM( | 839 void WebGraphicsContext3DImpl::loseContextCHROMIUM( |
840 WGC3Denum current, WGC3Denum other) { | 840 WGC3Denum current, WGC3Denum other) { |
841 gl_->LoseContextCHROMIUM(current, other); | 841 gl_->LoseContextCHROMIUM(current, other); |
842 gl_->Flush(); | 842 gl_->Flush(); |
843 } | 843 } |
844 | 844 |
845 DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*) | 845 DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*) |
846 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, | 846 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, |
847 WGC3Denum, const WGC3Dbyte*) | 847 WGC3Denum, const WGC3Dbyte*) |
| 848 DELEGATE_TO_GL_3(produceTextureDirectCHROMIUM, ProduceTextureDirectCHROMIUM, |
| 849 WebGLId, WGC3Denum, const WGC3Dbyte*) |
848 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, | 850 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, |
849 WGC3Denum, const WGC3Dbyte*) | 851 WGC3Denum, const WGC3Dbyte*) |
| 852 DELEGATE_TO_GL_2R(createAndConsumeTextureCHROMIUM, |
| 853 CreateAndConsumeTextureCHROMIUM, |
| 854 WGC3Denum, const WGC3Dbyte*, WebGLId) |
850 | 855 |
851 void WebGraphicsContext3DImpl::insertEventMarkerEXT( | 856 void WebGraphicsContext3DImpl::insertEventMarkerEXT( |
852 const WGC3Dchar* marker) { | 857 const WGC3Dchar* marker) { |
853 gl_->InsertEventMarkerEXT(0, marker); | 858 gl_->InsertEventMarkerEXT(0, marker); |
854 } | 859 } |
855 | 860 |
856 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( | 861 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( |
857 const WGC3Dchar* marker) { | 862 const WGC3Dchar* marker) { |
858 gl_->PushGroupMarkerEXT(0, marker); | 863 gl_->PushGroupMarkerEXT(0, marker); |
859 } | 864 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 | 982 |
978 void WebGraphicsContext3DImpl::copyTextureToParentTextureCHROMIUM( | 983 void WebGraphicsContext3DImpl::copyTextureToParentTextureCHROMIUM( |
979 WebGLId texture, WebGLId parentTexture) { | 984 WebGLId texture, WebGLId parentTexture) { |
980 NOTIMPLEMENTED(); | 985 NOTIMPLEMENTED(); |
981 } | 986 } |
982 | 987 |
983 void WebGraphicsContext3DImpl::releaseShaderCompiler() { | 988 void WebGraphicsContext3DImpl::releaseShaderCompiler() { |
984 } | 989 } |
985 | 990 |
986 } // namespace content | 991 } // namespace content |
OLD | NEW |