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

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

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 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
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | src/gpu/effects/GrDitherEffect.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "GrDistanceFieldGeoProc.h" 8 #include "GrDistanceFieldGeoProc.h"
9 #include "GrFontAtlasSizes.h" 9 #include "GrFontAtlasSizes.h"
10 #include "GrInvariantOutput.h" 10 #include "GrInvariantOutput.h"
11 #include "GrTexture.h" 11 #include "GrTexture.h"
12 12
13 #include "SkDistanceFieldGen.h" 13 #include "SkDistanceFieldGen.h"
14 14
15 #include "gl/GrGLProcessor.h" 15 #include "gl/GrGLFragmentProcessor.h"
16 #include "gl/GrGLTexture.h" 16 #include "gl/GrGLTexture.h"
17 #include "gl/GrGLGeometryProcessor.h" 17 #include "gl/GrGLGeometryProcessor.h"
18 #include "gl/builders/GrGLProgramBuilder.h" 18 #include "gl/builders/GrGLProgramBuilder.h"
19 19
20 // Assuming a radius of a little less than the diagonal of the fragment 20 // Assuming a radius of a little less than the diagonal of the fragment
21 #define SK_DistanceFieldAAFactor "0.65" 21 #define SK_DistanceFieldAAFactor "0.65"
22 22
23 class GrGLDistanceFieldA8TextGeoProc : public GrGLGeometryProcessor { 23 class GrGLDistanceFieldA8TextGeoProc : public GrGLGeometryProcessor {
24 public: 24 public:
25 GrGLDistanceFieldA8TextGeoProc(const GrGeometryProcessor&, 25 GrGLDistanceFieldA8TextGeoProc(const GrGeometryProcessor&,
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 uint32_t flags = kUseLCD_DistanceFieldEffectFlag; 737 uint32_t flags = kUseLCD_DistanceFieldEffectFlag;
738 flags |= d->fRandom->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0; 738 flags |= d->fRandom->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0;
739 flags |= d->fRandom->nextBool() ? kBGR_DistanceFieldEffectFlag : 0; 739 flags |= d->fRandom->nextBool() ? kBGR_DistanceFieldEffectFlag : 0;
740 return GrDistanceFieldLCDTextGeoProc::Create(GrRandomColor(d->fRandom), 740 return GrDistanceFieldLCDTextGeoProc::Create(GrRandomColor(d->fRandom),
741 GrTest::TestMatrix(d->fRandom), 741 GrTest::TestMatrix(d->fRandom),
742 d->fTextures[texIdx], params, 742 d->fTextures[texIdx], params,
743 wa, 743 wa,
744 flags, 744 flags,
745 d->fRandom->nextBool()); 745 d->fRandom->nextBool());
746 } 746 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | src/gpu/effects/GrDitherEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698