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

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

Issue 862933005: remove drawtype (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/GrGeometryProcessor.h ('k') | src/gpu/GrGpu.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 "GrGeometryProcessor.h" 8 #include "GrGeometryProcessor.h"
9 9
10 #include "GrCoordTransform.h" 10 #include "GrCoordTransform.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 typedef SkSTArray<8, SeparableVaryingInfo, true> SeparableVaryingInfoArray; 496 typedef SkSTArray<8, SeparableVaryingInfo, true> SeparableVaryingInfoArray;
497 497
498 SeparableVaryingInfoArray fSeparableVaryingInfos; 498 SeparableVaryingInfoArray fSeparableVaryingInfos;
499 499
500 typedef GrGLPathProcessor INHERITED; 500 typedef GrGLPathProcessor INHERITED;
501 }; 501 };
502 502
503 GrPathProcessor::GrPathProcessor(GrColor color, 503 GrPathProcessor::GrPathProcessor(GrColor color,
504 const SkMatrix& viewMatrix, 504 const SkMatrix& viewMatrix,
505 const SkMatrix& localMatrix) 505 const SkMatrix& localMatrix)
506 : INHERITED(viewMatrix, localMatrix) 506 : INHERITED(viewMatrix, localMatrix, true)
507 , fColor(color) { 507 , fColor(color) {
508 this->initClassID<GrPathProcessor>(); 508 this->initClassID<GrPathProcessor>();
509 } 509 }
510 510
511 void GrPathProcessor::getInvariantOutputColor(GrInitInvariantOutput* out) const { 511 void GrPathProcessor::getInvariantOutputColor(GrInitInvariantOutput* out) const {
512 out->setKnownFourComponents(fColor); 512 out->setKnownFourComponents(fColor);
513 } 513 }
514 514
515 void GrPathProcessor::getInvariantOutputCoverage(GrInitInvariantOutput* out) con st { 515 void GrPathProcessor::getInvariantOutputCoverage(GrInitInvariantOutput* out) con st {
516 out->setKnownSingleComponent(0xff); 516 out->setKnownSingleComponent(0xff);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 const GrGLCaps& caps) const { 562 const GrGLCaps& caps) const {
563 SkASSERT(caps.nvprSupport() != GrGLCaps::kNone_NvprSupport); 563 SkASSERT(caps.nvprSupport() != GrGLCaps::kNone_NvprSupport);
564 if (caps.nvprSupport() == GrGLCaps::kLegacy_NvprSupport) { 564 if (caps.nvprSupport() == GrGLCaps::kLegacy_NvprSupport) {
565 return SkNEW_ARGS(GrGLLegacyPathProcessor, (*this, bt, 565 return SkNEW_ARGS(GrGLLegacyPathProcessor, (*this, bt,
566 caps.maxFixedFunctionTexture Coords())); 566 caps.maxFixedFunctionTexture Coords()));
567 } else { 567 } else {
568 return SkNEW_ARGS(GrGLNormalPathProcessor, (*this, bt)); 568 return SkNEW_ARGS(GrGLNormalPathProcessor, (*this, bt));
569 } 569 }
570 } 570 }
571 571
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryProcessor.h ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698