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

Side by Side Diff: src/gpu/gl/GrGLProgram.cpp

Issue 2036953002: Abandon offset support with texel buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrGLProgram.h" 8 #include "GrGLProgram.h"
9 9
10 #include "GrAllocator.h" 10 #include "GrAllocator.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void GrGLProgram::bindTextures(const GrProcessor& processor, 135 void GrGLProgram::bindTextures(const GrProcessor& processor,
136 bool allowSRGBInputs, 136 bool allowSRGBInputs,
137 int* nextSamplerIdx) { 137 int* nextSamplerIdx) {
138 for (int i = 0; i < processor.numTextures(); ++i) { 138 for (int i = 0; i < processor.numTextures(); ++i) {
139 const GrTextureAccess& access = processor.textureAccess(i); 139 const GrTextureAccess& access = processor.textureAccess(i);
140 fGpu->bindTexture((*nextSamplerIdx)++, access.getParams(), 140 fGpu->bindTexture((*nextSamplerIdx)++, access.getParams(),
141 allowSRGBInputs, static_cast<GrGLTexture*>(access.getT exture())); 141 allowSRGBInputs, static_cast<GrGLTexture*>(access.getT exture()));
142 } 142 }
143 for (int i = 0; i < processor.numBuffers(); ++i) { 143 for (int i = 0; i < processor.numBuffers(); ++i) {
144 const GrBufferAccess& access = processor.bufferAccess(i); 144 const GrBufferAccess& access = processor.bufferAccess(i);
145 fGpu->bindTexelBuffer((*nextSamplerIdx)++, access.offsetInBytes(), acces s.texelConfig(), 145 fGpu->bindTexelBuffer((*nextSamplerIdx)++, access.texelConfig(),
146 static_cast<GrGLBuffer*>(access.buffer())); 146 static_cast<GrGLBuffer*>(access.buffer()));
147 } 147 }
148 } 148 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698