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

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

Issue 10391041: remove WEBKIT_USING_SKIA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 7 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 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) 1590 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean)
1591 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) 1591 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId)
1592 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) 1592 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum)
1593 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) 1593 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*)
1594 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, 1594 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT,
1595 WebGLId, WGC3Denum, WGC3Duint*) 1595 WebGLId, WGC3Denum, WGC3Duint*)
1596 1596
1597 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, 1597 DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum,
1598 WebGLId, WebGLId, WGC3Dint, WGC3Denum) 1598 WebGLId, WebGLId, WGC3Dint, WGC3Denum)
1599 1599
1600 #if WEBKIT_USING_SKIA
1601 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: 1600 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
1602 onCreateGrGLInterface() { 1601 onCreateGrGLInterface() {
1603 return webkit_glue::CreateCommandBufferSkiaGLBinding(); 1602 return webkit_glue::CreateCommandBufferSkiaGLBinding();
1604 } 1603 }
1605 #endif
1606 1604
1607 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { 1605 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
1608 // TODO(kbr): improve the precision here. 1606 // TODO(kbr): improve the precision here.
1609 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1607 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1610 if (context_lost_callback_) { 1608 if (context_lost_callback_) {
1611 context_lost_callback_->onContextLost(); 1609 context_lost_callback_->onContextLost();
1612 } 1610 }
1613 } 1611 }
1614 1612
1615 } // namespace gpu 1613 } // namespace gpu
1616 } // namespace webkit 1614 } // 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