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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_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 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 5 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 void WebGraphicsContext3DInProcessImpl::deleteTexture(WebGLId texture) { 1604 void WebGraphicsContext3DInProcessImpl::deleteTexture(WebGLId texture) {
1605 makeContextCurrent(); 1605 makeContextCurrent();
1606 glDeleteTextures(1, &texture); 1606 glDeleteTextures(1, &texture);
1607 } 1607 }
1608 1608
1609 WGC3Denum WebGraphicsContext3DInProcessImpl::getGraphicsResetStatusARB() { 1609 WGC3Denum WebGraphicsContext3DInProcessImpl::getGraphicsResetStatusARB() {
1610 // TODO(kbr): this implementation doesn't support lost contexts yet. 1610 // TODO(kbr): this implementation doesn't support lost contexts yet.
1611 return GL_NO_ERROR; 1611 return GL_NO_ERROR;
1612 } 1612 }
1613 1613
1614 void WebGraphicsContext3DInProcessImpl::texImageIOSurface2DCHROMIUM(
1615 WGC3Denum target, WGC3Dint width, WGC3Dint height,
1616 WGC3Duint ioSurfaceId, WGC3Duint plane) {
1617 }
1618
1614 #if WEBKIT_USING_SKIA 1619 #if WEBKIT_USING_SKIA
1615 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() { 1620 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() {
1616 return gfx::CreateInProcessSkiaGLBinding(); 1621 return gfx::CreateInProcessSkiaGLBinding();
1617 } 1622 }
1618 #endif 1623 #endif
1619 1624
1620 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() { 1625 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() {
1621 if (!ShInitialize()) 1626 if (!ShInitialize())
1622 return false; 1627 return false;
1623 1628
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 if (length > 1) { 1695 if (length > 1) {
1691 entry->translated_source.reset(new char[length]); 1696 entry->translated_source.reset(new char[length]);
1692 ShGetObjectCode(compiler, entry->translated_source.get()); 1697 ShGetObjectCode(compiler, entry->translated_source.get());
1693 } 1698 }
1694 entry->is_valid = true; 1699 entry->is_valid = true;
1695 return true; 1700 return true;
1696 } 1701 }
1697 1702
1698 } // namespace gpu 1703 } // namespace gpu
1699 } // namespace webkit 1704 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698