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

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

Issue 10440019: Add support for GL_CHROMIUM_pixel_transfer_buffer_object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 gl_->PushGroupMarkerEXT(0, marker); 1636 gl_->PushGroupMarkerEXT(0, marker);
1637 } 1637 }
1638 1638
1639 DELEGATE_TO_GL(popGroupMarkerEXT, PopGroupMarkerEXT); 1639 DELEGATE_TO_GL(popGroupMarkerEXT, PopGroupMarkerEXT);
1640 1640
1641 DELEGATE_TO_GL_2(bindTexImage2DCHROMIUM, BindTexImage2DCHROMIUM, 1641 DELEGATE_TO_GL_2(bindTexImage2DCHROMIUM, BindTexImage2DCHROMIUM,
1642 WGC3Denum, WGC3Dint) 1642 WGC3Denum, WGC3Dint)
1643 DELEGATE_TO_GL_2(releaseTexImage2DCHROMIUM, ReleaseTexImage2DCHROMIUM, 1643 DELEGATE_TO_GL_2(releaseTexImage2DCHROMIUM, ReleaseTexImage2DCHROMIUM,
1644 WGC3Denum, WGC3Dint) 1644 WGC3Denum, WGC3Dint)
1645 1645
1646 void* WebGraphicsContext3DInProcessCommandBufferImpl::mapBufferCHROMIUM(
1647 WGC3Denum target, WGC3Denum access) {
1648 ClearContext();
1649 return gl_->MapBufferCHROMIUM(target, access);
1650 }
1651
1652 WGC3Dboolean WebGraphicsContext3DInProcessCommandBufferImpl::
1653 unmapBufferCHROMIUM(WGC3Denum target) {
1654 ClearContext();
1655 return gl_->UnmapBufferCHROMIUM(target);
1656 }
1657
1646 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: 1658 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
1647 onCreateGrGLInterface() { 1659 onCreateGrGLInterface() {
1648 return webkit_glue::CreateCommandBufferSkiaGLBinding(); 1660 return webkit_glue::CreateCommandBufferSkiaGLBinding();
1649 } 1661 }
1650 1662
1651 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { 1663 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
1652 // TODO(kbr): improve the precision here. 1664 // TODO(kbr): improve the precision here.
1653 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1665 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1654 if (context_lost_callback_) { 1666 if (context_lost_callback_) {
1655 context_lost_callback_->onContextLost(); 1667 context_lost_callback_->onContextLost();
1656 } 1668 }
1657 } 1669 }
1658 1670
1659 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, 1671 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM,
1660 WebGLId, WGC3Dint, const WGC3Dchar*) 1672 WebGLId, WGC3Dint, const WGC3Dchar*)
1661 1673
1662 DELEGATE_TO_GL(shallowFlushCHROMIUM, ShallowFlushCHROMIUM) 1674 DELEGATE_TO_GL(shallowFlushCHROMIUM, ShallowFlushCHROMIUM)
1663 1675
1664 DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*) 1676 DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*)
1665 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, 1677 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM,
1666 WGC3Denum, const WGC3Dbyte*) 1678 WGC3Denum, const WGC3Dbyte*)
1667 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, 1679 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM,
1668 WGC3Denum, const WGC3Dbyte*) 1680 WGC3Denum, const WGC3Dbyte*)
1669 1681
1670 } // namespace gpu 1682 } // namespace gpu
1671 } // namespace webkit 1683 } // 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