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

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

Issue 10535174: Addition of unpremultiply setting to GL_CHROMIUM_copy_texture. (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_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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 } 1665 }
1666 1666
1667 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryARB, WebGLId, WGC3Dboolean) 1667 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryARB, WebGLId, WGC3Dboolean)
1668 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryARB, WGC3Denum, WebGLId) 1668 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryARB, WGC3Denum, WebGLId)
1669 DELEGATE_TO_GL_1(endQueryEXT, EndQueryARB, WGC3Denum) 1669 DELEGATE_TO_GL_1(endQueryEXT, EndQueryARB, WGC3Denum)
1670 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivARB, WGC3Denum, WGC3Denum, WGC3Dint*) 1670 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivARB, WGC3Denum, WGC3Denum, WGC3Dint*)
1671 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivARB, 1671 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivARB,
1672 WebGLId, WGC3Denum, WGC3Duint*) 1672 WebGLId, WGC3Denum, WGC3Duint*)
1673 1673
1674 void WebGraphicsContext3DInProcessImpl::copyTextureCHROMIUM( 1674 void WebGraphicsContext3DInProcessImpl::copyTextureCHROMIUM(
1675 WGC3Denum, WebGLId, WebGLId, WGC3Dint, WGC3Denum) 1675 WGC3Denum, WGC3Duint, WGC3Duint, WGC3Dint, WGC3Denum)
1676 { 1676 {
greggman 2012/06/15 00:11:45 Does this function need an ASSERT_NOT_REACHED(); ?
Jeff Timanus 2012/06/18 14:50:24 Following in the example of WebGraphicsContext3DIn
1677 } 1677 }
1678 1678
1679 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() { 1679 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() {
1680 return gfx::CreateInProcessSkiaGLBinding(); 1680 return gfx::CreateInProcessSkiaGLBinding();
1681 } 1681 }
1682 1682
1683 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() { 1683 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() {
1684 if (!ShInitialize()) 1684 if (!ShInitialize())
1685 return false; 1685 return false;
1686 1686
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 if (length > 1) { 1753 if (length > 1) {
1754 entry->translated_source.reset(new char[length]); 1754 entry->translated_source.reset(new char[length]);
1755 ShGetObjectCode(compiler, entry->translated_source.get()); 1755 ShGetObjectCode(compiler, entry->translated_source.get());
1756 } 1756 }
1757 entry->is_valid = true; 1757 entry->is_valid = true;
1758 return true; 1758 return true;
1759 } 1759 }
1760 1760
1761 } // namespace gpu 1761 } // namespace gpu
1762 } // namespace webkit 1762 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698