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

Side by Side Diff: webkit/common/gpu/webgraphicscontext3d_impl.cc

Issue 659903002: Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review + merge uniform_subscription_manager with program_manager Created 6 years, 1 month 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
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/common/gpu/webgraphicscontext3d_impl.h" 5 #include "webkit/common/gpu/webgraphicscontext3d_impl.h"
6 6
7 #include "base/atomicops.h" 7 #include "base/atomicops.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "gpu/GLES2/gl2extchromium.h" 10 #include "gpu/GLES2/gl2extchromium.h"
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM, 839 DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM,
840 WGC3Denum, const WGC3Dbyte*) 840 WGC3Denum, const WGC3Dbyte*)
841 DELEGATE_TO_GL_3(produceTextureDirectCHROMIUM, ProduceTextureDirectCHROMIUM, 841 DELEGATE_TO_GL_3(produceTextureDirectCHROMIUM, ProduceTextureDirectCHROMIUM,
842 WebGLId, WGC3Denum, const WGC3Dbyte*) 842 WebGLId, WGC3Denum, const WGC3Dbyte*)
843 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM, 843 DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM,
844 WGC3Denum, const WGC3Dbyte*) 844 WGC3Denum, const WGC3Dbyte*)
845 DELEGATE_TO_GL_2R(createAndConsumeTextureCHROMIUM, 845 DELEGATE_TO_GL_2R(createAndConsumeTextureCHROMIUM,
846 CreateAndConsumeTextureCHROMIUM, 846 CreateAndConsumeTextureCHROMIUM,
847 WGC3Denum, const WGC3Dbyte*, WebGLId) 847 WGC3Denum, const WGC3Dbyte*, WebGLId)
848 848
849 DELEGATE_TO_GL_2(subscribeUniformCHROMIUM,
850 SubscribeUniformCHROMIUM,
851 WGC3Dint,
852 WGC3Denum)
853 DELEGATE_TO_GL_1(unsubscribeUniformCHROMIUM,
854 UnsubscribeUniformCHROMIUM,
855 WGC3Dint)
856 void WebGraphicsContext3DImpl::populateSubscribedUniformsCHROMIUM() {
857 gl_->PopulateSubscribedUniformsCHROMIUM();
858 }
859
849 void WebGraphicsContext3DImpl::insertEventMarkerEXT( 860 void WebGraphicsContext3DImpl::insertEventMarkerEXT(
850 const WGC3Dchar* marker) { 861 const WGC3Dchar* marker) {
851 gl_->InsertEventMarkerEXT(0, marker); 862 gl_->InsertEventMarkerEXT(0, marker);
852 } 863 }
853 864
854 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( 865 void WebGraphicsContext3DImpl::pushGroupMarkerEXT(
855 const WGC3Dchar* marker) { 866 const WGC3Dchar* marker) {
856 gl_->PushGroupMarkerEXT(0, marker); 867 gl_->PushGroupMarkerEXT(0, marker);
857 } 868 }
858 869
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 output_attribs->stencil_size = attributes.stencil ? 8 : 0; 993 output_attribs->stencil_size = attributes.stencil ? 8 : 0;
983 output_attribs->samples = attributes.antialias ? 4 : 0; 994 output_attribs->samples = attributes.antialias ? 4 : 0;
984 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; 995 output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
985 output_attribs->fail_if_major_perf_caveat = 996 output_attribs->fail_if_major_perf_caveat =
986 attributes.failIfMajorPerformanceCaveat; 997 attributes.failIfMajorPerformanceCaveat;
987 output_attribs->bind_generates_resource = false; 998 output_attribs->bind_generates_resource = false;
988 } 999 }
989 1000
990 } // namespace gpu 1001 } // namespace gpu
991 } // namespace webkit 1002 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698