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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) 1617 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean)
1618 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) 1618 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId)
1619 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) 1619 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum)
1620 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) 1620 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*)
1621 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, 1621 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT,
1622 WebGLId, WGC3Denum, WGC3Duint*) 1622 WebGLId, WGC3Denum, WGC3Duint*)
1623 1623
1624 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, 1624 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum,
1625 WebGLId, WebGLId, WGC3Dint, WGC3Denum) 1625 WebGLId, WebGLId, WGC3Dint, WGC3Denum)
1626 1626
1627 DELEGATE_TO_GL_2(texImagePixmap2DCHROMIUM, TexImagePixmap2DCHROMIUM,
1628 WGC3Denum, WGC3Duint)
1629
1627 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: 1630 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
1628 onCreateGrGLInterface() { 1631 onCreateGrGLInterface() {
1629 return webkit_glue::CreateCommandBufferSkiaGLBinding(); 1632 return webkit_glue::CreateCommandBufferSkiaGLBinding();
1630 } 1633 }
1631 1634
1632 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { 1635 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
1633 // TODO(kbr): improve the precision here. 1636 // TODO(kbr): improve the precision here.
1634 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1637 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1635 if (context_lost_callback_) { 1638 if (context_lost_callback_) {
1636 context_lost_callback_->onContextLost(); 1639 context_lost_callback_->onContextLost();
1637 } 1640 }
1638 } 1641 }
1639 1642
1640 } // namespace gpu 1643 } // namespace gpu
1641 } // namespace webkit 1644 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698