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

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

Issue 10828328: Expose EXT_debug_marker to webkit (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) 1618 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean)
1619 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) 1619 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId)
1620 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) 1620 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum)
1621 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) 1621 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*)
1622 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, 1622 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT,
1623 WebGLId, WGC3Denum, WGC3Duint*) 1623 WebGLId, WGC3Denum, WGC3Duint*)
1624 1624
1625 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, WGC3Duint, 1625 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, WGC3Duint,
1626 WGC3Duint, WGC3Dint, WGC3Denum) 1626 WGC3Duint, WGC3Dint, WGC3Denum)
1627 1627
1628 void WebGraphicsContext3DInProcessCommandBufferImpl::insertEventMarkerEXT(
1629 const WGC3Dchar* marker) {
1630 gl_->InsertEventMarkerEXT(0, marker);
1631 }
1632
1633 void WebGraphicsContext3DInProcessCommandBufferImpl::pushGroupMarkerEXT(
1634 const WGC3Dchar* marker) {
1635 gl_->PushGroupMarkerEXT(0, marker);
1636 }
1637
1638 DELEGATE_TO_GL(popGroupMarkerEXT, PopGroupMarkerEXT);
1639
1628 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: 1640 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
1629 onCreateGrGLInterface() { 1641 onCreateGrGLInterface() {
1630 return webkit_glue::CreateCommandBufferSkiaGLBinding(); 1642 return webkit_glue::CreateCommandBufferSkiaGLBinding();
1631 } 1643 }
1632 1644
1633 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { 1645 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
1634 // TODO(kbr): improve the precision here. 1646 // TODO(kbr): improve the precision here.
1635 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1647 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1636 if (context_lost_callback_) { 1648 if (context_lost_callback_) {
1637 context_lost_callback_->onContextLost(); 1649 context_lost_callback_->onContextLost();
1638 } 1650 }
1639 } 1651 }
1640 1652
1641 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, 1653 DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM,
1642 WebGLId, WGC3Dint, const WGC3Dchar*) 1654 WebGLId, WGC3Dint, const WGC3Dchar*)
1643 1655
1644 DELEGATE_TO_GL(shallowFlushCHROMIUM, ShallowFlushCHROMIUM) 1656 DELEGATE_TO_GL(shallowFlushCHROMIUM, ShallowFlushCHROMIUM)
1645 1657
1646 DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*) 1658 DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*)
1647 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, 1659 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM,
1648 WGC3Denum, const WGC3Dbyte*) 1660 WGC3Denum, const WGC3Dbyte*)
1649 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, 1661 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM,
1650 WGC3Denum, const WGC3Dbyte*) 1662 WGC3Denum, const WGC3Dbyte*)
1651 1663
1652 } // namespace gpu 1664 } // namespace gpu
1653 } // namespace webkit 1665 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698