зеркало из https://github.com/mozilla/moz-skia.git
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5872 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
3fffb2ee9f
Коммит
439cb51451
|
@ -232,7 +232,7 @@ static void tryRonco(const SkPath& path) {
|
|||
const SkRect& overall = path.getBounds();
|
||||
const int divs = 50;
|
||||
SkScalar cellWidth = overall.width() / divs * 2;
|
||||
SkScalar cellHeight = overall.height() / divs * 2;
|
||||
SkScalar cellHeight = overall.height() / divs * 2;
|
||||
SkRect target;
|
||||
if (true) {
|
||||
int xDiv = 21;
|
||||
|
@ -252,7 +252,7 @@ static void tryRonco(const SkPath& path) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static bool drawLetters(SkCanvas* canvas, int step, bool useOld)
|
||||
{
|
||||
SkPath path;
|
||||
|
|
|
@ -628,7 +628,7 @@ public:
|
|||
fSpans = &spans;
|
||||
setSpans();
|
||||
}
|
||||
|
||||
|
||||
void setSpans() {
|
||||
double startT = (*fSpans)[fStart].fT;
|
||||
double endT = (*fSpans)[fEnd].fT;
|
||||
|
@ -680,7 +680,7 @@ public:
|
|||
SkPath::Verb verb() const {
|
||||
return fVerb;
|
||||
}
|
||||
|
||||
|
||||
void debugShow(const SkPoint& a) const {
|
||||
SkDebugf(" d=(%1.9g,%1.9g) side=%1.9g\n", dx(), dy(), fSide);
|
||||
}
|
||||
|
@ -2558,7 +2558,7 @@ public:
|
|||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
// FIXME
|
||||
// this returns at any difference in T, vs. a preset minimum. It may be
|
||||
// that all callers to nextSpan should use this instead.
|
||||
|
|
|
@ -99,7 +99,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect,
|
|||
if (!this->getCaps().dualSourceBlendingSupport()) {
|
||||
for (int s = 0; s < GrDrawState::kNumStages; ++s) {
|
||||
if (this->getDrawState().isStageEnabled(s)) {
|
||||
// We disable batching across colors when there is a texture
|
||||
// We disable batching across colors when there is a texture
|
||||
// present because (by pushing the the color to the vertices)
|
||||
// Ganesh loses track of the rect's opacity. This, in turn, can
|
||||
// cause some of the blending optimizations to be disabled. This
|
||||
|
@ -154,7 +154,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect,
|
|||
// Now that the paint's color is stored in the vertices set it to
|
||||
// white so that the following code can batch all the rects regardless
|
||||
// of paint color
|
||||
GrDrawState::AutoColorRestore acr(this->drawState(),
|
||||
GrDrawState::AutoColorRestore acr(this->drawState(),
|
||||
batchAcrossColors ? SK_ColorWHITE
|
||||
: this->getDrawState().getColor());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче