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

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

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/GrGLProcessor.h ('k') | src/gpu/gl/GrGLXferProcessor.h » ('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 #include "GrGLProgramDesc.h" 7 #include "GrGLProgramDesc.h"
8 8
9 #include "GrGLProcessor.h" 9 #include "GrGLFragmentProcessor.h"
10 #include "GrProcessor.h" 10 #include "GrProcessor.h"
11 #include "GrGLGpu.h" 11 #include "GrGLGpu.h"
12 #include "GrPipeline.h" 12 #include "GrPipeline.h"
13 #include "SkChecksum.h" 13 #include "SkChecksum.h"
14 #include "gl/builders/GrGLFragmentShaderBuilder.h" 14 #include "gl/builders/GrGLFragmentShaderBuilder.h"
15 15
16 /** 16 /**
17 * Do we need to either map r,g,b->a or a->r. configComponentMask indicates whic h channels are 17 * Do we need to either map r,g,b->a or a->r. configComponentMask indicates whic h channels are
18 * present in the texture's config. swizzleComponentMask indicates the channels present in the 18 * present in the texture's config. swizzleComponentMask indicates the channels present in the
19 * shader swizzle. 19 * shader swizzle.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 gpu->glCaps()) ; 145 gpu->glCaps()) ;
146 } else { 146 } else {
147 header->fFragPosKey = 0; 147 header->fFragPosKey = 0;
148 } 148 }
149 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); 149 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters();
150 header->fColorEffectCnt = pipeline.numColorFragmentStages(); 150 header->fColorEffectCnt = pipeline.numColorFragmentStages();
151 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); 151 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages();
152 glDesc->finalize(); 152 glDesc->finalize();
153 return true; 153 return true;
154 } 154 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProcessor.h ('k') | src/gpu/gl/GrGLXferProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698