Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@14264 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d15b4537b4
commit
8a777a5e6a
@ -212,11 +212,11 @@ class GradientsManyColorsGM : public GM {
|
||||
typedef void (*Proc)(ColorPos*);
|
||||
public:
|
||||
GradientsManyColorsGM() {}
|
||||
|
||||
|
||||
protected:
|
||||
SkString onShortName() SK_OVERRIDE { return SkString("gradients_many"); }
|
||||
virtual SkISize onISize() SK_OVERRIDE { return SkISize::Make(850, 100); }
|
||||
|
||||
|
||||
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
|
||||
const Proc procs[] = {
|
||||
make0, make1, make2,
|
||||
@ -228,9 +228,9 @@ protected:
|
||||
const SkRect r = SkRect::MakeWH(SkIntToScalar(W), 30);
|
||||
|
||||
SkPaint paint;
|
||||
|
||||
|
||||
canvas->translate(20, 20);
|
||||
|
||||
|
||||
for (int i = 0; i <= 8; ++i) {
|
||||
SkScalar x = r.width() * i / 8;
|
||||
canvas->drawLine(x, 0, x, 10000, paint);
|
||||
@ -246,7 +246,7 @@ protected:
|
||||
canvas->translate(0, r.height() + 20);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
typedef GM INHERITED;
|
||||
};
|
||||
|
@ -1020,7 +1020,7 @@ GrGradientEffect::GrGradientEffect(GrContext* ctx,
|
||||
if (SkGradientShaderBase::kTwo_GpuColorType == fColorType ||
|
||||
SkGradientShaderBase::kThree_GpuColorType == fColorType) {
|
||||
fRow = -1;
|
||||
|
||||
|
||||
if (SkGradientShader::kInterpolateColorsInPremul_Flag & shader.getFlags()) {
|
||||
fPremulType = kBeforeInterp_PremulType;
|
||||
} else {
|
||||
|
@ -139,7 +139,7 @@ public:
|
||||
// also be filled with the gradient colors
|
||||
GpuColorType getGpuColorType(SkColor colors[3]) const;
|
||||
|
||||
uint32_t getFlags() const { return fGradFlags; }
|
||||
uint32_t getFlags() const { return fGradFlags; }
|
||||
|
||||
protected:
|
||||
SkGradientShaderBase(SkReadBuffer& );
|
||||
|
Loading…
Reference in New Issue
Block a user