| OLD | NEW |
| 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 "GrConvexPolyEffect.h" | 8 #include "GrConvexPolyEffect.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 "GrTBackendEffectFactory.h" | 13 #include "GrTBackendEffectFactory.h" |
| 13 | 14 |
| 14 #include "SkPath.h" | 15 #include "SkPath.h" |
| 15 | 16 |
| 16 ////////////////////////////////////////////////////////////////////////////// | 17 ////////////////////////////////////////////////////////////////////////////// |
| 17 class GLAARectEffect; | 18 class GLAARectEffect; |
| 18 | 19 |
| 19 class AARectEffect : public GrEffect { | 20 class AARectEffect : public GrEffect { |
| 20 public: | 21 public: |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 367 } |
| 367 | 368 |
| 368 GrEffect* effect; | 369 GrEffect* effect; |
| 369 do { | 370 do { |
| 370 GrEffectEdgeType edgeType = static_cast<GrEffectEdgeType>( | 371 GrEffectEdgeType edgeType = static_cast<GrEffectEdgeType>( |
| 371 random->nextULessThan(kGrEffectEdgeTypeC
nt)); | 372 random->nextULessThan(kGrEffectEdgeTypeC
nt)); |
| 372 effect = GrConvexPolyEffect::Create(edgeType, count, edges); | 373 effect = GrConvexPolyEffect::Create(edgeType, count, edges); |
| 373 } while (NULL == effect); | 374 } while (NULL == effect); |
| 374 return effect; | 375 return effect; |
| 375 } | 376 } |
| OLD | NEW |