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