Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@13755 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
4fcd92d0bf
commit
0b70816eb1
@ -32,7 +32,7 @@ static bool found_edge(const unsigned char* imagePtr, int width) {
|
||||
}
|
||||
|
||||
static void init_glyph_data(DFData* data, unsigned char* edges, const unsigned char* image,
|
||||
int dataWidth, int dataHeight,
|
||||
int dataWidth, int dataHeight,
|
||||
int imageWidth, int imageHeight,
|
||||
int pad) {
|
||||
data += pad*dataWidth;
|
||||
@ -118,11 +118,11 @@ static void init_distances(DFData* data, unsigned char* edges, int width, int he
|
||||
// if you're inside, gradient points away from edge
|
||||
SkPoint currGrad;
|
||||
currGrad.fX = (prevData+1)->fAlpha - (prevData-1)->fAlpha
|
||||
+ SK_ScalarSqrt2*(currData+1)->fAlpha
|
||||
+ SK_ScalarSqrt2*(currData+1)->fAlpha
|
||||
- SK_ScalarSqrt2*(currData-1)->fAlpha
|
||||
+ (nextData+1)->fAlpha - (nextData-1)->fAlpha;
|
||||
currGrad.fY = (nextData-1)->fAlpha - (prevData-1)->fAlpha
|
||||
+ SK_ScalarSqrt2*nextData->fAlpha
|
||||
currGrad.fY = (nextData-1)->fAlpha - (prevData-1)->fAlpha
|
||||
+ SK_ScalarSqrt2*nextData->fAlpha
|
||||
- SK_ScalarSqrt2*prevData->fAlpha
|
||||
+ (nextData+1)->fAlpha - (prevData+1)->fAlpha;
|
||||
currGrad.setLengthFast(1.0f);
|
||||
@ -287,7 +287,7 @@ bool SkGenerateDistanceFieldFromImage(unsigned char* distanceField,
|
||||
SkASSERT(NULL != image);
|
||||
|
||||
// the final distance field will have additional texels on each side to handle
|
||||
// the maximum distance
|
||||
// the maximum distance
|
||||
// we expand our temp data by one more on each side to simplify
|
||||
// the scanning code -- will always be treated as infinitely far away
|
||||
int pad = distanceMagnitude+1;
|
||||
|
@ -305,7 +305,7 @@ bool GrTextStrike::addGlyphToAtlas(GrGlyph* glyph, GrFontScaler* scaler) {
|
||||
// alloc storage for distance field glyph
|
||||
size_t dfSize = dfWidth * dfHeight * bytesPerPixel;
|
||||
SkAutoSMalloc<1024> dfStorage(dfSize);
|
||||
|
||||
|
||||
if (1 == bytesPerPixel) {
|
||||
(void) SkGenerateDistanceFieldFromImage((unsigned char*)dfStorage.get(),
|
||||
(unsigned char*)storage.get(),
|
||||
|
@ -173,10 +173,10 @@ void PictureBenchmark::run(SkPicture* pict) {
|
||||
SkString configName = tiledRenderer->getConfigName();
|
||||
configName.appendf(": tile [%i,%i] out of [%i,%i]", x, y, xTiles, yTiles);
|
||||
|
||||
// TODO(borenet): Turn off per-iteration tile time reporting for now.
|
||||
// Avoiding logging the time for every iteration for each tile cuts
|
||||
// down on data file size by a significant amount. Re-enable this once
|
||||
// we're loading the bench data directly into a data store and are no
|
||||
// TODO(borenet): Turn off per-iteration tile time reporting for now.
|
||||
// Avoiding logging the time for every iteration for each tile cuts
|
||||
// down on data file size by a significant amount. Re-enable this once
|
||||
// we're loading the bench data directly into a data store and are no
|
||||
// longer generating SVG graphs.
|
||||
#if 0
|
||||
SkString result = perTileTimerData.getResult(timeFormat.c_str(), fTimerResult,
|
||||
|
Loading…
Reference in New Issue
Block a user