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

Side by Side Diff: src/gpu/gl/GrGLProgramDesc.h

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 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/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | 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 2013 Google Inc. 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED 8 #ifndef GrGLProgramDesc_DEFINED
9 #define GrGLProgramDesc_DEFINED 9 #define GrGLProgramDesc_DEFINED
10 10
(...skipping 24 matching lines...) Expand all
35 // Part 4. 35 // Part 4.
36 // This is the offset into the backenend specific part of the key, which includes 36 // This is the offset into the backenend specific part of the key, which includes
37 // per-processor keys. 37 // per-processor keys.
38 kProcessorKeysOffset = kHeaderOffset + kHeaderSize, 38 kProcessorKeysOffset = kHeaderOffset + kHeaderSize,
39 }; 39 };
40 40
41 /** 41 /**
42 * Builds a GL specific program descriptor 42 * Builds a GL specific program descriptor
43 * 43 *
44 * @param GrPrimitiveProcessor The geometry 44 * @param GrPrimitiveProcessor The geometry
45 * @param GrOptDrawState The optimized drawstate. The descriptor will repr esent a program 45 * @param GrPipeline The optimized drawstate. The descriptor will represen t a program
46 * which this optstate can use to draw with. The opt state contains 46 * which this optstate can use to draw with. The opt state contains
47 * general draw information, as well as the specific color, geometry, 47 * general draw information, as well as the specific color, geometry,
48 * and coverage stages which will be used to generate the GL Program for 48 * and coverage stages which will be used to generate the GL Program for
49 * this optstate. 49 * this optstate.
50 * @param DescInfo A descriptor info struct, generated by the optstate, whi ch contains a number 50 * @param DescInfo A descriptor info struct, generated by the optstate, whi ch contains a number
51 * of important facts about the program the built descripto r will represent 51 * of important facts about the program the built descripto r will represent
52 * @param GrGLGpu A GL Gpu, the caps and Gpu object are used to output proc essor specific 52 * @param GrGLGpu A GL Gpu, the caps and Gpu object are used to output proc essor specific
53 * parts of the descriptor. 53 * parts of the descriptor.
54 * @param GrDeviceCoordTexture A dstCopy texture, which may be null if fram e buffer fetch is 54 * @param GrDeviceCoordTexture A dstCopy texture, which may be null if fram e buffer fetch is
55 * supported 55 * supported
56 * @param GrProgramDesc The built and finalized descriptor 56 * @param GrProgramDesc The built and finalized descriptor
57 **/ 57 **/
58 static bool Build(GrProgramDesc*, 58 static bool Build(GrProgramDesc*,
59 const GrPrimitiveProcessor&, 59 const GrPrimitiveProcessor&,
60 const GrOptDrawState&, 60 const GrPipeline&,
61 const GrProgramDesc::DescInfo&, 61 const GrProgramDesc::DescInfo&,
62 const GrGLGpu*, 62 const GrGLGpu*,
63 const GrBatchTracker&); 63 const GrBatchTracker&);
64 }; 64 };
65 65
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698