Home
last modified time | relevance | path

Searched refs:BitmapPalette (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/
DCanvasTransform.cpp110 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV()
113 return hsv[2] >= .5f ? BitmapPalette::Light : BitmapPalette::Dark; in paletteForColorHSV()
116 static BitmapPalette filterPalette(const SkPaint* paint, BitmapPalette palette) { in filterPalette()
117 if (palette == BitmapPalette::Unknown || !paint || !paint->getColorFilter()) { in filterPalette()
121 SkColor color = palette == BitmapPalette::Light ? SK_ColorWHITE : SK_ColorBLACK; in filterPalette()
132 bool transformPaint(ColorTransform transform, SkPaint* paint, BitmapPalette palette) { in transformPaint()
135 if (palette == BitmapPalette::Light && transform == ColorTransform::Dark) { in transformPaint()
138 if (palette == BitmapPalette::Dark && transform == ColorTransform::Light) { in transformPaint()
DRecordingCanvas.h107 void drawImage(sk_sp<const SkImage>, SkScalar, SkScalar, const SkPaint*, BitmapPalette palette);
110 SkCanvas::SrcRectConstraint, BitmapPalette palette);
112 const SkPaint*, BitmapPalette);
184 BitmapPalette pallete);
187 const SkPaint* paint, SrcRectConstraint constraint, BitmapPalette palette);
189 const SkPaint* paint, BitmapPalette palette);
DRecordingCanvas.cpp303 BitmapPalette palette) in DrawImage()
312 BitmapPalette palette;
336 BitmapPalette palette) in DrawImageRect()
347 BitmapPalette palette;
355 const SkRect& dst, const SkPaint* paint, BitmapPalette palette) in DrawImageLattice()
372 BitmapPalette palette;
492 BitmapPalette palette;
614 const SkPaint* paint, BitmapPalette palette) { in drawImage()
623 SkCanvas::SrcRectConstraint constraint, BitmapPalette palette) { in drawImageRect()
628 BitmapPalette palette) { in drawImageLattice()
[all …]
DCanvasTransform.h43 bool transformPaint(ColorTransform transform, SkPaint* paint, BitmapPalette palette);
DVectorDrawable.cpp662 BitmapPalette Tree::computePalette() { in computePalette()
689 return BitmapPalette::Unknown; in computePalette()
699 return BitmapPalette::Light; in computePalette()
701 return BitmapPalette::Dark; in computePalette()
704 return BitmapPalette::Unknown; in computePalette()
DVectorDrawable.h652 BitmapPalette computePalette();
/frameworks/base/libs/hwui/hwui/
DBitmap.h39 enum class BitmapPalette { enum
78 BitmapPalette palette = BitmapPalette::Unknown);
117 static BitmapPalette computePalette(const SkImageInfo& info, const void* addr, size_t rowBytes);
119 static BitmapPalette computePalette(const SkBitmap& bitmap) { in computePalette()
123 BitmapPalette palette() { in palette()
139 Bitmap(GraphicBuffer* buffer, const SkImageInfo& info, BitmapPalette palette);
148 BitmapPalette mPalette = BitmapPalette::Unknown;
DBitmap.cpp138 BitmapPalette palette) { in createFrom()
217 Bitmap::Bitmap(GraphicBuffer* buffer, const SkImageInfo& info, BitmapPalette palette) in Bitmap()
372 BitmapPalette Bitmap::computePalette(const SkImageInfo& info, const void* addr, size_t rowBytes) { in computePalette()
408 return BitmapPalette::Unknown; in computePalette()
418 return BitmapPalette::Light; in computePalette()
420 return BitmapPalette::Dark; in computePalette()
423 return BitmapPalette::Unknown; in computePalette()