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

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

Issue 23576015: Change old PRG to be SkLCGRandom; change new one to SkRandom (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix some spurious SkMWCRandoms Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/effects/gradients/SkTwoPointRadialGradient.cpp ('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
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 return true; 586 return true;
587 } 587 }
588 588
589 GR_DECLARE_EFFECT_TEST; 589 GR_DECLARE_EFFECT_TEST;
590 590
591 typedef GrEffect INHERITED; 591 typedef GrEffect INHERITED;
592 }; 592 };
593 593
594 GR_DEFINE_EFFECT_TEST(QuadEdgeEffect); 594 GR_DEFINE_EFFECT_TEST(QuadEdgeEffect);
595 595
596 GrEffectRef* QuadEdgeEffect::TestCreate(SkMWCRandom* random, 596 GrEffectRef* QuadEdgeEffect::TestCreate(SkRandom* random,
597 GrContext*, 597 GrContext*,
598 const GrDrawTargetCaps& caps, 598 const GrDrawTargetCaps& caps,
599 GrTexture*[]) { 599 GrTexture*[]) {
600 // Doesn't work without derivative instructions. 600 // Doesn't work without derivative instructions.
601 return caps.shaderDerivativeSupport() ? QuadEdgeEffect::Create() : NULL; 601 return caps.shaderDerivativeSupport() ? QuadEdgeEffect::Create() : NULL;
602 } 602 }
603 603
604 /////////////////////////////////////////////////////////////////////////////// 604 ///////////////////////////////////////////////////////////////////////////////
605 605
606 bool GrAAConvexPathRenderer::canDrawPath(const SkPath& path, 606 bool GrAAConvexPathRenderer::canDrawPath(const SkPath& path,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 vOffset, // start vertex 706 vOffset, // start vertex
707 0, // start index 707 0, // start index
708 draw.fVertexCnt, 708 draw.fVertexCnt,
709 draw.fIndexCnt, 709 draw.fIndexCnt,
710 &devBounds); 710 &devBounds);
711 vOffset += draw.fVertexCnt; 711 vOffset += draw.fVertexCnt;
712 } 712 }
713 713
714 return true; 714 return true;
715 } 715 }
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointRadialGradient.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698