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

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

Issue 643743003: Create helper functions to use in computeInvariantOutput calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update blurMaskFilter Created 6 years, 2 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/effects/gradients/SkGradientShader.cpp ('k') | src/gpu/GrAARectRenderer.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrAAConvexPathRenderer.h" 9 #include "GrAAConvexPathRenderer.h"
10 10
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge", 582 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge",
583 kVec4f_GrSLType, 583 kVec4f_GrSLType,
584 GrShaderVar::kAttribute_ TypeModifier))) { 584 GrShaderVar::kAttribute_ TypeModifier))) {
585 } 585 }
586 586
587 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE { 587 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE {
588 return true; 588 return true;
589 } 589 }
590 590
591 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE { 591 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE {
592 inout->fValidFlags = 0; 592 inout->mulByUnknownAlpha();
593 inout->fIsSingleComponent = false;
594 } 593 }
595 594
596 const GrShaderVar& fInQuadEdge; 595 const GrShaderVar& fInQuadEdge;
597 596
598 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 597 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
599 598
600 typedef GrFragmentProcessor INHERITED; 599 typedef GrFragmentProcessor INHERITED;
601 }; 600 };
602 601
603 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(QuadEdgeEffect); 602 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(QuadEdgeEffect);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 vOffset, // start vertex 712 vOffset, // start vertex
714 0, // start index 713 0, // start index
715 draw.fVertexCnt, 714 draw.fVertexCnt,
716 draw.fIndexCnt, 715 draw.fIndexCnt,
717 &devBounds); 716 &devBounds);
718 vOffset += draw.fVertexCnt; 717 vOffset += draw.fVertexCnt;
719 } 718 }
720 719
721 return true; 720 return true;
722 } 721 }
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698