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

Side by Side Diff: src/gpu/effects/GrDistanceFieldTextureEffect.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 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 "GrDistanceFieldTextureEffect.h" 8 #include "GrDistanceFieldTextureEffect.h"
9 #include "gl/GrGLEffect.h" 9 #include "gl/GrGLEffect.h"
10 #include "gl/GrGLShaderBuilder.h"
10 #include "gl/GrGLSL.h" 11 #include "gl/GrGLSL.h"
11 #include "gl/GrGLTexture.h" 12 #include "gl/GrGLTexture.h"
12 #include "gl/GrGLVertexEffect.h" 13 #include "gl/GrGLVertexEffect.h"
13 #include "GrTBackendEffectFactory.h" 14 #include "GrTBackendEffectFactory.h"
14 #include "GrTexture.h" 15 #include "GrTexture.h"
15 16
16 #include "SkDistanceFieldGen.h" 17 #include "SkDistanceFieldGen.h"
17 18
18 // To get optical sizes people don't complain about when we blit correctly, 19 // To get optical sizes people don't complain about when we blit correctly,
19 // we need to slightly bold each glyph. On the Mac, we need a larger bold value. 20 // we need to slightly bold each glyph. On the Mac, we need a larger bold value.
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 GrTextureParams::kNone_FilterMode); 492 GrTextureParams::kNone_FilterMode);
492 GrColor textColor = GrColorPackRGBA(random->nextULessThan(256), 493 GrColor textColor = GrColorPackRGBA(random->nextULessThan(256),
493 random->nextULessThan(256), 494 random->nextULessThan(256),
494 random->nextULessThan(256), 495 random->nextULessThan(256),
495 random->nextULessThan(256)); 496 random->nextULessThan(256));
496 return GrDistanceFieldLCDTextureEffect::Create(textures[texIdx], params, 497 return GrDistanceFieldLCDTextureEffect::Create(textures[texIdx], params,
497 textures[texIdx2], params2, 498 textures[texIdx2], params2,
498 textColor, 499 textColor,
499 random->nextBool(), random->n extBool()); 500 random->nextBool(), random->n extBool());
500 } 501 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698