OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
6 | 6 |
7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
8 | 8 |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #ifndef GL_GLEXT_PROTOTYPES | 10 #ifndef GL_GLEXT_PROTOTYPES |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 return gl_->MapTexSubImage2DCHROMIUM( | 919 return gl_->MapTexSubImage2DCHROMIUM( |
920 target, level, xoffset, yoffset, width, height, format, type, access); | 920 target, level, xoffset, yoffset, width, height, format, type, access); |
921 } | 921 } |
922 | 922 |
923 void WebGraphicsContext3DInProcessCommandBufferImpl::unmapTexSubImage2DCHROMIUM( | 923 void WebGraphicsContext3DInProcessCommandBufferImpl::unmapTexSubImage2DCHROMIUM( |
924 const void* mem) { | 924 const void* mem) { |
925 ClearContext(); | 925 ClearContext(); |
926 gl_->UnmapTexSubImage2DCHROMIUM(mem); | 926 gl_->UnmapTexSubImage2DCHROMIUM(mem); |
927 } | 927 } |
928 | 928 |
929 void WebGraphicsContext3DInProcessCommandBufferImpl::setVisibilityCHROMIUM( | 929 void WebGraphicsContext3DInProcessCommandBufferImpl::setResourceUsageCHROMIUM( |
930 bool visible) { | 930 ResourceUsage resourceUsage) { |
931 } | 931 } |
932 | 932 |
933 void WebGraphicsContext3DInProcessCommandBufferImpl:: | 933 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
934 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { | 934 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { |
935 NOTIMPLEMENTED(); | 935 NOTIMPLEMENTED(); |
936 } | 936 } |
937 | 937 |
938 void WebGraphicsContext3DInProcessCommandBufferImpl:: | 938 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
939 rateLimitOffscreenContextCHROMIUM() { | 939 rateLimitOffscreenContextCHROMIUM() { |
940 // TODO(gmam): See if we can comment this in. | 940 // TODO(gmam): See if we can comment this in. |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; | 1689 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; |
1690 if (context_lost_callback_) { | 1690 if (context_lost_callback_) { |
1691 context_lost_callback_->onContextLost(); | 1691 context_lost_callback_->onContextLost(); |
1692 } | 1692 } |
1693 } | 1693 } |
1694 | 1694 |
1695 } // namespace gpu | 1695 } // namespace gpu |
1696 } // namespace webkit | 1696 } // namespace webkit |
1697 | 1697 |
1698 #endif // defined(ENABLE_GPU) | 1698 #endif // defined(ENABLE_GPU) |
OLD | NEW |