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

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

Issue 735363003: dstCopy on optdrawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
« 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 * @param GrGpuGL A GL Gpu, the caps and Gpu object are used to output proc essor specific 55 * @param GrGpuGL A GL Gpu, the caps and Gpu object are used to output proc essor specific
56 * parts of the descriptor. 56 * parts of the descriptor.
57 * @param GrDeviceCoordTexture A dstCopy texture, which may be null if fram e buffer fetch is 57 * @param GrDeviceCoordTexture A dstCopy texture, which may be null if fram e buffer fetch is
58 * supported 58 * supported
59 * @param GrProgramDesc The built and finalized descriptor 59 * @param GrProgramDesc The built and finalized descriptor
60 **/ 60 **/
61 static bool Build(const GrOptDrawState&, 61 static bool Build(const GrOptDrawState&,
62 const GrProgramDesc::DescInfo&, 62 const GrProgramDesc::DescInfo&,
63 GrGpu::DrawType, 63 GrGpu::DrawType,
64 GrGpuGL*, 64 GrGpuGL*,
65 const GrDeviceCoordTexture*,
66 GrProgramDesc*); 65 GrProgramDesc*);
67 66
68 static const GLKeyHeader& GetHeader(const GrProgramDesc& desc) { 67 static const GLKeyHeader& GetHeader(const GrProgramDesc& desc) {
69 return *desc.atOffset<GLKeyHeader, kHeaderOffset>(); 68 return *desc.atOffset<GLKeyHeader, kHeaderOffset>();
70 } 69 }
71 70
72 private: 71 private:
73 template <class ProcessorKeyBuilder> 72 template <class ProcessorKeyBuilder>
74 static bool BuildStagedProcessorKey(const typename ProcessorKeyBuilder::Stag edProcessor& stage, 73 static bool BuildStagedProcessorKey(const typename ProcessorKeyBuilder::Stag edProcessor& stage,
75 const GrGLCaps& caps, 74 const GrGLCaps& caps,
76 bool requiresLocalCoordAttrib, 75 bool requiresLocalCoordAttrib,
77 GrProgramDesc* desc, 76 GrProgramDesc* desc,
78 int* offsetAndSizeIndex); 77 int* offsetAndSizeIndex);
79 }; 78 };
80 79
81 #endif 80 #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