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

Side by Side Diff: src/gpu/effects/GrRRectEffect.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 "GrRRectEffect.h" 8 #include "GrRRectEffect.h"
9 9
10 #include "gl/GrGLEffect.h" 10 #include "gl/GrGLEffect.h"
11 #include "gl/GrGLShaderBuilder.h"
11 #include "gl/GrGLSL.h" 12 #include "gl/GrGLSL.h"
12 #include "GrConvexPolyEffect.h" 13 #include "GrConvexPolyEffect.h"
13 #include "GrOvalEffect.h" 14 #include "GrOvalEffect.h"
14 #include "GrTBackendEffectFactory.h" 15 #include "GrTBackendEffectFactory.h"
15 16
16 #include "SkRRect.h" 17 #include "SkRRect.h"
17 18
18 // The effects defined here only handle rrect radii >= kRadiusMin. 19 // The effects defined here only handle rrect radii >= kRadiusMin.
19 static const SkScalar kRadiusMin = SK_ScalarHalf; 20 static const SkScalar kRadiusMin = SK_ScalarHalf;
20 21
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 if (rrect.isNinePatch()) { 721 if (rrect.isNinePatch()) {
721 return EllipticalRRectEffect::Create(edgeType, rrect); 722 return EllipticalRRectEffect::Create(edgeType, rrect);
722 } 723 }
723 return NULL; 724 return NULL;
724 } 725 }
725 } 726 }
726 } 727 }
727 728
728 return NULL; 729 return NULL;
729 } 730 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698