Home | History | Annotate | Download | only in gfx

Lines Matching refs:SkBitmap

12 #include "third_party/skia/include/core/SkBitmap.h"
23 SkBitmap SkBitmapOperations::CreateInvertedBitmap(const SkBitmap& image) {
24 DCHECK(image.config() == SkBitmap::kARGB_8888_Config);
28 SkBitmap inverted;
29 inverted.setConfig(SkBitmap::kARGB_8888_Config, image.width(), image.height(),
49 SkBitmap SkBitmapOperations::CreateSuperimposedBitmap(const SkBitmap& first,
50 const SkBitmap& second) {
54 DCHECK(first.config() == SkBitmap::kARGB_8888_Config);
59 SkBitmap superimposed;
60 superimposed.setConfig(SkBitmap::kARGB_8888_Config,
80 SkBitmap SkBitmapOperations::CreateBlendedBitmap(const SkBitmap& first,
81 const SkBitmap& second,
87 DCHECK(first.config() == SkBitmap::kARGB_8888_Config);
100 SkBitmap blended;
101 blended.setConfig(SkBitmap::kARGB_8888_Config, first.width(), first.height(),
134 SkBitmap SkBitmapOperations::CreateMaskedBitmap(const SkBitmap& rgb,
135 const SkBitmap& alpha) {
139 DCHECK(rgb.config() == SkBitmap::kARGB_8888_Config);
140 DCHECK(alpha.config() == SkBitmap::kARGB_8888_Config);
142 SkBitmap masked;
143 masked.setConfig(SkBitmap::kARGB_8888_Config, rgb.width(), rgb.height(), 0);
174 SkBitmap SkBitmapOperations::CreateButtonBackground(SkColor color,
175 const SkBitmap& image,
176 const SkBitmap& mask) {
177 DCHECK(image.config() == SkBitmap::kARGB_8888_Config);
178 DCHECK(mask.config() == SkBitmap::kARGB_8888_Config);
180 SkBitmap background;
182 SkBitmap::kARGB_8888_Config, mask.width(), mask.height(), 0);
532 SkBitmap SkBitmapOperations::CreateHSLShiftedBitmap(
533 const SkBitmap& bitmap,
559 DCHECK(bitmap.config() == SkBitmap::kARGB_8888_Config);
561 SkBitmap shifted;
562 shifted.setConfig(SkBitmap::kARGB_8888_Config, bitmap.width(),
582 SkBitmap SkBitmapOperations::CreateTiledBitmap(const SkBitmap& source,
585 DCHECK(source.config() == SkBitmap::kARGB_8888_Config);
587 SkBitmap cropped;
588 cropped.setConfig(SkBitmap::kARGB_8888_Config, dst_w, dst_h, 0);
617 SkBitmap SkBitmapOperations::DownsampleByTwoUntilSize(const SkBitmap& bitmap,
624 SkBitmap current = bitmap;
632 SkBitmap SkBitmapOperations::DownsampleByTwo(const SkBitmap& bitmap) {
637 SkBitmap result;
638 result.setConfig(SkBitmap::kARGB_8888_Config,
657 // This code is based on downsampleby2_proc32 in SkBitmap.cpp. It is very
699 SkBitmap SkBitmapOperations::UnPreMultiply(const SkBitmap& bitmap) {
705 SkBitmap opaque_bitmap;
727 SkBitmap SkBitmapOperations::CreateTransposedBitmap(const SkBitmap& image) {
728 DCHECK(image.config() == SkBitmap::kARGB_8888_Config);
730 SkBitmap transposed;
732 SkBitmap::kARGB_8888_Config, image.height(), image.width(), 0);
750 SkBitmap SkBitmapOperations::CreateColorMask(const SkBitmap& bitmap,
752 DCHECK(bitmap.config() == SkBitmap::kARGB_8888_Config);
754 SkBitmap color_mask;
755 color_mask.setConfig(SkBitmap::kARGB_8888_Config,
771 SkBitmap SkBitmapOperations::CreateDropShadow(
772 const SkBitmap& bitmap,
774 DCHECK(bitmap.config() == SkBitmap::kARGB_8888_Config);
781 SkBitmap image_with_shadow;
782 image_with_shadow.setConfig(SkBitmap::kARGB_8888_Config,
795 SkBitmap shadow_image = SkBitmapOperations::CreateColorMask(bitmap,
815 SkBitmap SkBitmapOperations::Rotate(const SkBitmap& source,
817 SkBitmap result;
824 SkBitmap::kARGB_8888_Config, source.height(), source.width());
829 SkBitmap::kARGB_8888_Config, source.width(), source.height());
834 SkBitmap::kARGB_8888_Config, source.height(), source.width());