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

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

Issue 1101663007: Make non-AA hairline stroke rects snap to pixels centers so they close. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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/GrProgramDesc.h ('k') | src/gpu/gl/builders/GrGLVertexShaderBuilder.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 #include "GrGLProgramDesc.h" 7 #include "GrGLProgramDesc.h"
8 8
9 #include "GrGLProcessor.h" 9 #include "GrGLProcessor.h"
10 #include "GrProcessor.h" 10 #include "GrProcessor.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // make sure any padding in the header is zeroed. 136 // make sure any padding in the header is zeroed.
137 memset(header, 0, kHeaderSize); 137 memset(header, 0, kHeaderSize);
138 138
139 if (pipeline.readsFragPosition()) { 139 if (pipeline.readsFragPosition()) {
140 header->fFragPosKey = 140 header->fFragPosKey =
141 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe nderTarget(), 141 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe nderTarget(),
142 gpu->glCaps()) ; 142 gpu->glCaps()) ;
143 } else { 143 } else {
144 header->fFragPosKey = 0; 144 header->fFragPosKey = 0;
145 } 145 }
146 146 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters();
147 header->fColorEffectCnt = pipeline.numColorFragmentStages(); 147 header->fColorEffectCnt = pipeline.numColorFragmentStages();
148 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); 148 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages();
149 glDesc->finalize(); 149 glDesc->finalize();
150 return true; 150 return true;
151 } 151 }
OLDNEW
« no previous file with comments | « src/gpu/GrProgramDesc.h ('k') | src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698