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

Side by Side Diff: src/gpu/gl/builders/GrGLProgramBuilder.h

Issue 885923002: Move DstCopy on gpu into the GrXferProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Back to bool Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrGLProgramBuilder_DEFINED 8 #ifndef GrGLProgramBuilder_DEFINED
9 #define GrGLProgramBuilder_DEFINED 9 #define GrGLProgramBuilder_DEFINED
10 10
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 const char* output) SK_OVERRIDE; 260 const char* output) SK_OVERRIDE;
261 261
262 262
263 // Handles for program uniforms (other than per-effect uniforms) 263 // Handles for program uniforms (other than per-effect uniforms)
264 struct BuiltinUniformHandles { 264 struct BuiltinUniformHandles {
265 UniformHandle fRTAdjustmentUni; 265 UniformHandle fRTAdjustmentUni;
266 266
267 // We use the render target height to provide a y-down frag coord when s pecifying 267 // We use the render target height to provide a y-down frag coord when s pecifying
268 // origin_upper_left is not supported. 268 // origin_upper_left is not supported.
269 UniformHandle fRTHeightUni; 269 UniformHandle fRTHeightUni;
270
271 // Uniforms for computing texture coords to do the dst-copy lookup
272 UniformHandle fDstCopyTopLeftUni;
273 UniformHandle fDstCopyScaleUni;
274 UniformHandle fDstCopySamplerUni;
275 }; 270 };
276 271
277 protected: 272 protected:
278 typedef GrGLProgramDataManager::UniformInfo UniformInfo; 273 typedef GrGLProgramDataManager::UniformInfo UniformInfo;
279 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; 274 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray;
280 275
281 static GrGLProgramBuilder* CreateProgramBuilder(const DrawArgs&, GrGLGpu*); 276 static GrGLProgramBuilder* CreateProgramBuilder(const DrawArgs&, GrGLGpu*);
282 277
283 GrGLProgramBuilder(GrGLGpu*, const DrawArgs&); 278 GrGLProgramBuilder(GrGLGpu*, const DrawArgs&);
284 279
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 UniformInfoArray fUniforms; 386 UniformInfoArray fUniforms;
392 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; 387 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms;
393 GrGLPrimitiveProcessor::TransformsOut fOutCoords; 388 GrGLPrimitiveProcessor::TransformsOut fOutCoords;
394 389
395 friend class GrGLShaderBuilder; 390 friend class GrGLShaderBuilder;
396 friend class GrGLVertexBuilder; 391 friend class GrGLVertexBuilder;
397 friend class GrGLFragmentShaderBuilder; 392 friend class GrGLFragmentShaderBuilder;
398 friend class GrGLGeometryBuilder; 393 friend class GrGLGeometryBuilder;
399 }; 394 };
400 #endif 395 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698