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

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

Issue 8680002: Added minimal support to command buffer for GL_ARB_texture_rectangle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #ifndef GL_GLEXT_PROTOTYPES 10 #ifndef GL_GLEXT_PROTOTYPES
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 void WebGraphicsContext3DInProcessCommandBufferImpl::setContextLostCallback( 1656 void WebGraphicsContext3DInProcessCommandBufferImpl::setContextLostCallback(
1657 WebGraphicsContext3D::WebGraphicsContextLostCallback* cb) { 1657 WebGraphicsContext3D::WebGraphicsContextLostCallback* cb) {
1658 context_lost_callback_ = cb; 1658 context_lost_callback_ = cb;
1659 } 1659 }
1660 1660
1661 WGC3Denum WebGraphicsContext3DInProcessCommandBufferImpl:: 1661 WGC3Denum WebGraphicsContext3DInProcessCommandBufferImpl::
1662 getGraphicsResetStatusARB() { 1662 getGraphicsResetStatusARB() {
1663 return context_lost_reason_; 1663 return context_lost_reason_;
1664 } 1664 }
1665 1665
1666 DELEGATE_TO_GL_5(texImageIOSurface2DCHROMIUM, TexImageIOSurface2DCHROMIUM,
1667 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Duint, WGC3Duint)
1668
1666 #if WEBKIT_USING_SKIA 1669 #if WEBKIT_USING_SKIA
1667 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: 1670 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
1668 onCreateGrGLInterface() { 1671 onCreateGrGLInterface() {
1669 return webkit_glue::CreateCommandBufferSkiaGLBinding(); 1672 return webkit_glue::CreateCommandBufferSkiaGLBinding();
1670 } 1673 }
1671 #endif 1674 #endif
1672 1675
1673 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { 1676 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
1674 // TODO(kbr): improve the precision here. 1677 // TODO(kbr): improve the precision here.
1675 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1678 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1676 if (context_lost_callback_) { 1679 if (context_lost_callback_) {
1677 context_lost_callback_->onContextLost(); 1680 context_lost_callback_->onContextLost();
1678 } 1681 }
1679 } 1682 }
1680 1683
1681 } // namespace gpu 1684 } // namespace gpu
1682 } // namespace webkit 1685 } // namespace webkit
1683 1686
1684 #endif // defined(ENABLE_GPU) 1687 #endif // defined(ENABLE_GPU)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698