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

Side by Side Diff: src/gpu/effects/GrDashingEffect.cpp

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment Created 6 years, 5 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
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 "GrDashingEffect.h" 8 #include "GrDashingEffect.h"
9 9
10 #include "../GrAARectRenderer.h" 10 #include "../GrAARectRenderer.h"
11 11
12 #include "effects/GrVertexEffect.h" 12 #include "effects/GrVertexEffect.h"
13 #include "gl/GrGLEffect.h" 13 #include "gl/GrGLEffect.h"
14 #include "gl/GrGLVertexEffect.h" 14 #include "gl/GrGLVertexEffect.h"
15 #include "gl/GrGLShaderBuilder.h"
15 #include "gl/GrGLSL.h" 16 #include "gl/GrGLSL.h"
16 #include "GrContext.h" 17 #include "GrContext.h"
17 #include "GrCoordTransform.h" 18 #include "GrCoordTransform.h"
18 #include "GrDrawTarget.h" 19 #include "GrDrawTarget.h"
19 #include "GrDrawTargetCaps.h" 20 #include "GrDrawTargetCaps.h"
20 #include "GrEffect.h" 21 #include "GrEffect.h"
21 #include "GrGpu.h" 22 #include "GrGpu.h"
22 #include "GrStrokeInfo.h" 23 #include "GrStrokeInfo.h"
23 #include "GrTBackendEffectFactory.h" 24 #include "GrTBackendEffectFactory.h"
24 #include "SkGr.h" 25 #include "SkGr.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 switch (cap) { 842 switch (cap) {
842 case GrDashingEffect::kRound_DashCap: 843 case GrDashingEffect::kRound_DashCap:
843 return DashingCircleEffect::Create(edgeType, info, SkScalarHalf(stro keWidth)); 844 return DashingCircleEffect::Create(edgeType, info, SkScalarHalf(stro keWidth));
844 case GrDashingEffect::kNonRound_DashCap: 845 case GrDashingEffect::kNonRound_DashCap:
845 return DashingLineEffect::Create(edgeType, info, strokeWidth); 846 return DashingLineEffect::Create(edgeType, info, strokeWidth);
846 default: 847 default:
847 SkFAIL("Unexpected dashed cap."); 848 SkFAIL("Unexpected dashed cap.");
848 } 849 }
849 return NULL; 850 return NULL;
850 } 851 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698