static const SkScalar kPos[] = { 0, SK_Scalar1/2, SK_Scalar1 };
static const SkColor kColors0[] = {0x40FF00FF, 0xF0FFFF00, 0x4000FFFF };
static const SkColor kColors1[] = {0xF0FF00FF, 0x80FFFF00, 0xF000FFFF };
-
+
SkPaint paint;
if (bmp.isNull()) {
makebm(&bmp, SkBitmap::kARGB_8888_Config, kPointSize / 2, kPointSize / 2);
}
-
+
SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp,
SkShader::kMirror_TileMode,
SkShader::kRepeat_TileMode));
fSurfaceBase = sb;
}
friend class SkSurface_Base;
-
+
bool fDeviceCMDirty; // cleared by updateDeviceCMCache()
void updateDeviceCMCache();
* passed in).
*/
virtual void setMatrixClip(const SkMatrix&, const SkRegion&,
- const SkClipStack&);
+ const SkClipStack&);
/** Clears the entire device to the specified color (including alpha).
* Ignores the clip.
SkView* create_transition(SkView* prev, SkView* next, int direction) {
#ifdef SK_BUILD_FOR_ANDROID
- // Disable transitions for Android
- return next;
+ // Disable transitions for Android
+ return next;
#else
return SkNEW_ARGS(TransitionView, (prev, next, direction));
#endif
// SkScalarRec doesn't currently have a way of representing hairline stroke and
// will fill if its frame-width is 0.
if (/*paint.isLinearText() ||*/
- (fMatrix->hasPerspective()) ||
+ (fMatrix->hasPerspective()) ||
(0 == paint.getStrokeWidth() && SkPaint::kStroke_Style == paint.getStyle())) {
this->drawText_asPaths(text, byteLength, x, y, paint);
return;
delete[] fInputs;
}
-SkImageFilter::SkImageFilter(SkFlattenableReadBuffer& buffer)
+SkImageFilter::SkImageFilter(SkFlattenableReadBuffer& buffer)
: fNumInputs(buffer.readInt()), fInputs(new SkImageFilter*[fNumInputs]) {
for (int i = 0; i < fNumInputs; i++) {
if (buffer.readBool()) {