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

Side by Side Diff: src/gpu/GrDefaultGeoProcFactory.cpp

Issue 1133123009: rename GrDrawTargetCaps to GrCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix gypi filename Created 5 years, 7 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/GrCommandBuilder.cpp ('k') | src/gpu/GrDrawTarget.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 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 #include "GrDefaultGeoProcFactory.h" 8 #include "GrDefaultGeoProcFactory.h"
9 9
10 #include "GrInvariantOutput.h" 10 #include "GrInvariantOutput.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 223 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
224 224
225 typedef GrGeometryProcessor INHERITED; 225 typedef GrGeometryProcessor INHERITED;
226 }; 226 };
227 227
228 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(DefaultGeoProc); 228 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(DefaultGeoProc);
229 229
230 GrGeometryProcessor* DefaultGeoProc::TestCreate(SkRandom* random, 230 GrGeometryProcessor* DefaultGeoProc::TestCreate(SkRandom* random,
231 GrContext*, 231 GrContext*,
232 const GrDrawTargetCaps& caps, 232 const GrCaps& caps,
233 GrTexture*[]) { 233 GrTexture*[]) {
234 uint32_t flags = 0; 234 uint32_t flags = 0;
235 if (random->nextBool()) { 235 if (random->nextBool()) {
236 flags |= GrDefaultGeoProcFactory::kColor_GPType; 236 flags |= GrDefaultGeoProcFactory::kColor_GPType;
237 } 237 }
238 if (random->nextBool()) { 238 if (random->nextBool()) {
239 flags |= GrDefaultGeoProcFactory::kCoverage_GPType; 239 flags |= GrDefaultGeoProcFactory::kCoverage_GPType;
240 } 240 }
241 if (random->nextBool()) { 241 if (random->nextBool()) {
242 flags |= GrDefaultGeoProcFactory::kLocalCoord_GPType; 242 flags |= GrDefaultGeoProcFactory::kLocalCoord_GPType;
(...skipping 16 matching lines...) Expand all
259 const SkMatrix& local Matrix, 259 const SkMatrix& local Matrix,
260 uint8_t coverage) { 260 uint8_t coverage) {
261 return DefaultGeoProc::Create(gpTypeFlags, 261 return DefaultGeoProc::Create(gpTypeFlags,
262 color, 262 color,
263 viewMatrix, 263 viewMatrix,
264 localMatrix, 264 localMatrix,
265 usesLocalCoords, 265 usesLocalCoords,
266 coverageIgnored, 266 coverageIgnored,
267 coverage); 267 coverage);
268 } 268 }
OLDNEW
« no previous file with comments | « src/gpu/GrCommandBuilder.cpp ('k') | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698