Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698