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

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

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update 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 "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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698