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

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

Issue 699943003: Move GrInvariantOutput out of GrProcessor and into its own class. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Cleanup Created 6 years, 1 month 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/SkGradientShaderPriv.h ('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
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "GrDrawState.h" 12 #include "GrDrawState.h"
13 #include "GrDrawTargetCaps.h" 13 #include "GrDrawTargetCaps.h"
14 #include "GrInvariantOutput.h"
14 #include "GrProcessor.h" 15 #include "GrProcessor.h"
15 #include "GrPathUtils.h" 16 #include "GrPathUtils.h"
16 #include "GrTBackendProcessorFactory.h" 17 #include "GrTBackendProcessorFactory.h"
17 #include "SkString.h" 18 #include "SkString.h"
18 #include "SkStrokeRec.h" 19 #include "SkStrokeRec.h"
19 #include "SkTraceEvent.h" 20 #include "SkTraceEvent.h"
20 21
21 #include "gl/builders/GrGLProgramBuilder.h" 22 #include "gl/builders/GrGLProgramBuilder.h"
22 #include "gl/GrGLProcessor.h" 23 #include "gl/GrGLProcessor.h"
23 #include "gl/GrGLSL.h" 24 #include "gl/GrGLSL.h"
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 QuadEdgeEffect() 580 QuadEdgeEffect()
580 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge", 581 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge",
581 kVec4f_GrSLType, 582 kVec4f_GrSLType,
582 GrShaderVar::kAttribute_ TypeModifier))) { 583 GrShaderVar::kAttribute_ TypeModifier))) {
583 } 584 }
584 585
585 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE { 586 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE {
586 return true; 587 return true;
587 } 588 }
588 589
589 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE { 590 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVE RRIDE {
590 inout->mulByUnknownAlpha(); 591 inout->mulByUnknownAlpha();
591 } 592 }
592 593
593 const GrShaderVar& fInQuadEdge; 594 const GrShaderVar& fInQuadEdge;
594 595
595 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 596 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
596 597
597 typedef GrFragmentProcessor INHERITED; 598 typedef GrFragmentProcessor INHERITED;
598 }; 599 };
599 600
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 vOffset, // start vertex 711 vOffset, // start vertex
711 0, // start index 712 0, // start index
712 draw.fVertexCnt, 713 draw.fVertexCnt,
713 draw.fIndexCnt, 714 draw.fIndexCnt,
714 &devBounds); 715 &devBounds);
715 vOffset += draw.fVertexCnt; 716 vOffset += draw.fVertexCnt;
716 } 717 }
717 718
718 return true; 719 return true;
719 } 720 }
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShaderPriv.h ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698