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

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

Issue 862823004: Revert of GrBatchPrototype (Closed) Base URL: https://skia.googlesource.com/skia.git@lc2
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/GrInOrderDrawBuffer.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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
517 } 517 }
518 518
519 void GrPathProcessor::initBatchTracker(GrBatchTracker* bt, const GrPipelineInfo& init) const { 519 void GrPathProcessor::initBatchTracker(GrBatchTracker* bt, const InitBT& init) c onst {
520 PathBatchTracker* local = bt->cast<PathBatchTracker>(); 520 PathBatchTracker* local = bt->cast<PathBatchTracker>();
521 if (init.fColorIgnored) { 521 if (init.fColorIgnored) {
522 local->fInputColorType = kIgnored_GrGPInput; 522 local->fInputColorType = kIgnored_GrGPInput;
523 local->fColor = GrColor_ILLEGAL; 523 local->fColor = GrColor_ILLEGAL;
524 } else { 524 } else {
525 local->fInputColorType = kUniform_GrGPInput; 525 local->fInputColorType = kUniform_GrGPInput;
526 local->fColor = GrColor_ILLEGAL == init.fOverrideColor ? this->color() : 526 local->fColor = GrColor_ILLEGAL == init.fOverrideColor ? this->color() :
527 init.fOverrideC olor; 527 init.fOverrideC olor;
528 } 528 }
529 529
(...skipping 32 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/GrInOrderDrawBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698