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/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 5 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
8 #ifndef GL_GLEXT_PROTOTYPES | 8 #ifndef GL_GLEXT_PROTOTYPES |
9 #define GL_GLEXT_PROTOTYPES 1 | 9 #define GL_GLEXT_PROTOTYPES 1 |
10 #endif | 10 #endif |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 const void* mem) { | 803 const void* mem) { |
804 ClearContext(); | 804 ClearContext(); |
805 gl_->UnmapTexSubImage2DCHROMIUM(mem); | 805 gl_->UnmapTexSubImage2DCHROMIUM(mem); |
806 } | 806 } |
807 | 807 |
808 void WebGraphicsContext3DInProcessCommandBufferImpl::setVisibilityCHROMIUM( | 808 void WebGraphicsContext3DInProcessCommandBufferImpl::setVisibilityCHROMIUM( |
809 bool visible) { | 809 bool visible) { |
810 } | 810 } |
811 | 811 |
812 void WebGraphicsContext3DInProcessCommandBufferImpl:: | 812 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
| 813 setMemoryAllocationChangedCallbackCHROMIUM( |
| 814 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { |
| 815 } |
| 816 |
| 817 void WebGraphicsContext3DInProcessCommandBufferImpl::discardFramebufferEXT( |
| 818 WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) { |
| 819 } |
| 820 |
| 821 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
| 822 ensureFramebufferCHROMIUM() { |
| 823 } |
| 824 |
| 825 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
813 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { | 826 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { |
814 NOTIMPLEMENTED(); | 827 NOTIMPLEMENTED(); |
815 } | 828 } |
816 | 829 |
817 void WebGraphicsContext3DInProcessCommandBufferImpl:: | 830 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
818 rateLimitOffscreenContextCHROMIUM() { | 831 rateLimitOffscreenContextCHROMIUM() { |
819 // TODO(gmam): See if we can comment this in. | 832 // TODO(gmam): See if we can comment this in. |
820 // ClearContext(); | 833 // ClearContext(); |
821 gl_->RateLimitOffscreenContextCHROMIUM(); | 834 gl_->RateLimitOffscreenContextCHROMIUM(); |
822 } | 835 } |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { | 1597 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { |
1585 // TODO(kbr): improve the precision here. | 1598 // TODO(kbr): improve the precision here. |
1586 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; | 1599 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; |
1587 if (context_lost_callback_) { | 1600 if (context_lost_callback_) { |
1588 context_lost_callback_->onContextLost(); | 1601 context_lost_callback_->onContextLost(); |
1589 } | 1602 } |
1590 } | 1603 } |
1591 | 1604 |
1592 } // namespace gpu | 1605 } // namespace gpu |
1593 } // namespace webkit | 1606 } // namespace webkit |
OLD | NEW |