Home
last modified time | relevance | path

Searched refs:SkBitmap (Results 1 – 25 of 1841) sorted by relevance

12345678910>>...74

/external/chromium_org/ui/gfx/
Dskbitmap_operations.h18 class SkBitmap; variable
33 static SkBitmap CreateInvertedBitmap(const SkBitmap& image);
38 static SkBitmap CreateSuperimposedBitmap(const SkBitmap& first,
39 const SkBitmap& second);
44 static SkBitmap CreateBlendedBitmap(const SkBitmap& first,
45 const SkBitmap& second,
51 static SkBitmap CreateMaskedBitmap(const SkBitmap& first,
52 const SkBitmap& alpha);
59 static SkBitmap CreateButtonBackground(SkColor color,
60 const SkBitmap& image,
[all …]
Dskbitmap_operations_unittest.cc31 bool BitmapsClose(const SkBitmap& a, const SkBitmap& b) { in BitmapsClose()
46 void FillDataToBitmap(int w, int h, SkBitmap* bmp) { in FillDataToBitmap()
47 bmp->setConfig(SkBitmap::kARGB_8888_Config, w, h); in FillDataToBitmap()
61 SkBitmap ReferenceCreateHSLShiftedBitmap( in ReferenceCreateHSLShiftedBitmap()
62 const SkBitmap& bitmap, in ReferenceCreateHSLShiftedBitmap()
64 SkBitmap shifted; in ReferenceCreateHSLShiftedBitmap()
65 shifted.setConfig(SkBitmap::kARGB_8888_Config, bitmap.width(), in ReferenceCreateHSLShiftedBitmap()
93 SkBitmap src; in TEST()
94 src.setConfig(SkBitmap::kARGB_8888_Config, src_w, src_h); in TEST()
105 SkBitmap inverted = SkBitmapOperations::CreateInvertedBitmap(src); in TEST()
[all …]
Dskbitmap_operations.cc23 SkBitmap SkBitmapOperations::CreateInvertedBitmap(const SkBitmap& image) { in CreateInvertedBitmap()
24 DCHECK(image.config() == SkBitmap::kARGB_8888_Config); in CreateInvertedBitmap()
28 SkBitmap inverted; in CreateInvertedBitmap()
29 inverted.setConfig(SkBitmap::kARGB_8888_Config, image.width(), image.height(), in CreateInvertedBitmap()
49 SkBitmap SkBitmapOperations::CreateSuperimposedBitmap(const SkBitmap& first, in CreateSuperimposedBitmap()
50 const SkBitmap& second) { in CreateSuperimposedBitmap()
54 DCHECK(first.config() == SkBitmap::kARGB_8888_Config); in CreateSuperimposedBitmap()
59 SkBitmap superimposed; in CreateSuperimposedBitmap()
60 superimposed.setConfig(SkBitmap::kARGB_8888_Config, in CreateSuperimposedBitmap()
80 SkBitmap SkBitmapOperations::CreateBlendedBitmap(const SkBitmap& first, in CreateBlendedBitmap()
[all …]
Dicon_util_unittest.cc51 SkBitmap CreateBlackSkBitmap(int width, int height) { in CreateBlackSkBitmap()
52 SkBitmap bitmap; in CreateBlackSkBitmap()
53 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height); in CreateBlackSkBitmap()
133 SkBitmap bitmap = image.AsBitmap(); in CheckAllIconSizes()
153 static_cast<SkBitmap*>(NULL)); in TEST_F()
157 static_cast<SkBitmap*>(NULL)); in TEST_F()
160 scoped_ptr<SkBitmap> bitmap; in TEST_F()
162 EXPECT_NE(bitmap.get(), static_cast<SkBitmap*>(NULL)); in TEST_F()
170 scoped_ptr<SkBitmap> bitmap; in TEST_F()
173 bitmap.reset(new SkBitmap); in TEST_F()
[all …]
/external/chromium_org/third_party/skia/src/ports/
DSkImageDecoder_empty.cpp31 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkBitmap::Config, in DecodeFile() argument
36 bool SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, Mode) { in decode() argument
40 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkBitmap::Config, in DecodeStream() argument
46 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, in DecodeMemory() argument
47 SkBitmap::Config, SkImageDecoder::Mode, in DecodeMemory()
56 bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkBitmap::Config) { in decodeSubset() argument
80 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { in setAllocator()
86 SkBitmap::Config SkImageDecoder::GetDeviceConfig() { in GetDeviceConfig()
87 return SkBitmap::kNo_Config; in GetDeviceConfig()
90 void SkImageDecoder::SetDeviceConfig(SkBitmap::Config) {} in SetDeviceConfig()
[all …]
/external/skia/src/ports/
DSkImageDecoder_empty.cpp31 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkBitmap::Config, in DecodeFile() argument
36 bool SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, Mode) { in decode() argument
40 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkBitmap::Config, in DecodeStream() argument
46 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, in DecodeMemory() argument
47 SkBitmap::Config, SkImageDecoder::Mode, in DecodeMemory()
56 bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkBitmap::Config) { in decodeSubset() argument
80 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { in setAllocator()
86 SkBitmap::Config SkImageDecoder::GetDeviceConfig() { in GetDeviceConfig()
87 return SkBitmap::kNo_Config; in GetDeviceConfig()
90 void SkImageDecoder::SetDeviceConfig(SkBitmap::Config) {} in SetDeviceConfig()
[all …]
/external/chromium_org/third_party/skia/include/core/
DSkImageDecoder.h148 virtual void inspect(int index, SkBitmap::Config config, int width, int height) {} in inspect()
181 SkBitmap::Config fPrefFor_8Index_NoAlpha_src;
182 SkBitmap::Config fPrefFor_8Index_YesAlpha_src;
183 SkBitmap::Config fPrefFor_8Gray_src;
184 SkBitmap::Config fPrefFor_8bpc_NoAlpha_src;
185 SkBitmap::Config fPrefFor_8bpc_YesAlpha_src;
204 SkBitmap::Allocator* getAllocator() const { return fAllocator; } in getAllocator()
205 SkBitmap::Allocator* setAllocator(SkBitmap::Allocator*);
268 bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode);
269 bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode) { in decode()
[all …]
/external/skia/include/core/
DSkImageDecoder.h148 virtual void inspect(int index, SkBitmap::Config config, int width, int height) {} in inspect()
181 SkBitmap::Config fPrefFor_8Index_NoAlpha_src;
182 SkBitmap::Config fPrefFor_8Index_YesAlpha_src;
183 SkBitmap::Config fPrefFor_8Gray_src;
184 SkBitmap::Config fPrefFor_8bpc_NoAlpha_src;
185 SkBitmap::Config fPrefFor_8bpc_YesAlpha_src;
204 SkBitmap::Allocator* getAllocator() const { return fAllocator; } in getAllocator()
205 SkBitmap::Allocator* setAllocator(SkBitmap::Allocator*);
268 bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode);
269 bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode) { in decode()
[all …]
/external/skia/src/core/
DSkBitmap.cpp37 struct SkBitmap::MipMap : SkNoncopyable {
82 SkBitmap::SkBitmap() { in SkBitmap() function in SkBitmap
86 SkBitmap::SkBitmap(const SkBitmap& src) { in SkBitmap() function in SkBitmap
93 SkBitmap::~SkBitmap() { in ~SkBitmap()
98 SkBitmap& SkBitmap::operator=(const SkBitmap& src) { in operator =()
135 void SkBitmap::swap(SkBitmap& other) { in swap()
153 void SkBitmap::reset() { in reset()
158 int SkBitmap::ComputeBytesPerPixel(SkBitmap::Config config) { in ComputeBytesPerPixel()
183 size_t SkBitmap::ComputeRowBytes(Config c, int width) { in ComputeRowBytes()
214 Sk64 SkBitmap::ComputeSize64(Config c, int width, int height) { in ComputeSize64()
[all …]
DSkScaledImageCache.h44 SkBitmap* returnedBitmap);
46 static ID* FindAndLock(const SkBitmap& original, SkScalar scaleX,
47 SkScalar scaleY, SkBitmap* returnedBitmap);
48 static ID* FindAndLockMip(const SkBitmap& original,
55 const SkBitmap& bitmap);
57 static ID* AddAndLock(const SkBitmap& original, SkScalar scaleX,
58 SkScalar scaleY, const SkBitmap& bitmap);
59 static ID* AddAndLockMip(const SkBitmap& original, const SkMipMap* mipMap);
67 static SkBitmap::Allocator* GetAllocator();
109 SkBitmap* returnedBitmap);
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkBitmap.cpp37 struct SkBitmap::MipMap : SkNoncopyable {
82 SkBitmap::SkBitmap() { in SkBitmap() function in SkBitmap
86 SkBitmap::SkBitmap(const SkBitmap& src) { in SkBitmap() function in SkBitmap
93 SkBitmap::~SkBitmap() { in ~SkBitmap()
98 SkBitmap& SkBitmap::operator=(const SkBitmap& src) { in operator =()
135 void SkBitmap::swap(SkBitmap& other) { in swap()
153 void SkBitmap::reset() { in reset()
158 int SkBitmap::ComputeBytesPerPixel(SkBitmap::Config config) { in ComputeBytesPerPixel()
183 size_t SkBitmap::ComputeRowBytes(Config c, int width) { in ComputeRowBytes()
214 Sk64 SkBitmap::ComputeSize64(Config c, int width, int height) { in ComputeSize64()
[all …]
DSkScaledImageCache.h44 SkBitmap* returnedBitmap);
46 static ID* FindAndLock(const SkBitmap& original, SkScalar scaleX,
47 SkScalar scaleY, SkBitmap* returnedBitmap);
48 static ID* FindAndLockMip(const SkBitmap& original,
55 const SkBitmap& bitmap);
57 static ID* AddAndLock(const SkBitmap& original, SkScalar scaleX,
58 SkScalar scaleY, const SkBitmap& bitmap);
59 static ID* AddAndLockMip(const SkBitmap& original, const SkMipMap* mipMap);
67 static SkBitmap::Allocator* GetAllocator();
109 SkBitmap* returnedBitmap);
[all …]
/external/skia/tests/
DBitmapCopyTest.cpp22 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src, in report_opaqueness()
23 const SkBitmap& dst) { in report_opaqueness()
31 static bool canHaveAlpha(SkBitmap::Config config) { in canHaveAlpha()
32 return config != SkBitmap::kRGB_565_Config; in canHaveAlpha()
37 const SkBitmap& srcOpaque, const SkBitmap& srcPremul, in test_isOpaque()
38 SkBitmap::Config dstConfig) { in test_isOpaque()
39 SkBitmap dst; in test_isOpaque()
56 static void init_src(const SkBitmap& bitmap) { in init_src()
75 SkBitmap::Config fConfig;
89 static uint32_t getPixel(int x, int y, const SkBitmap& bm) { in getPixel()
[all …]
DBitmapGetColorTest.cpp16 SkBitmap::Config fConfig; in DEF_TEST()
22 { SkBitmap::kA8_Config, 0xFF000000, 0xFF000000 }, in DEF_TEST()
23 { SkBitmap::kA8_Config, 0, 0 }, in DEF_TEST()
24 { SkBitmap::kRGB_565_Config, 0xFF00FF00, 0xFF00FF00 }, in DEF_TEST()
25 { SkBitmap::kRGB_565_Config, 0xFFFF00FF, 0xFFFF00FF }, in DEF_TEST()
26 { SkBitmap::kARGB_8888_Config, 0xFFFFFFFF, 0xFFFFFFFF }, in DEF_TEST()
27 { SkBitmap::kARGB_8888_Config, 0, 0 }, in DEF_TEST()
28 { SkBitmap::kARGB_8888_Config, 0xFF224466, 0xFF224466 }, in DEF_TEST()
37 SkBitmap bm; in DEF_TEST()
/external/chromium/chrome/browser/speech/
Dspeech_input_bubble.cc26 const std::vector<SkBitmap>& spinner() { return spinner_; } in spinner()
27 const std::vector<SkBitmap>& warm_up() { return warm_up_; } in warm_up()
28 SkBitmap* mic_full() { return mic_full_; } in mic_full()
29 SkBitmap* mic_empty() { return mic_empty_; } in mic_empty()
30 SkBitmap* mic_noise() { return mic_noise_; } in mic_noise()
31 SkBitmap* mic_mask() { return mic_mask_; } in mic_mask()
38 std::vector<SkBitmap> spinner_; // Frames for the progress spinner.
39 std::vector<SkBitmap> warm_up_; // Frames for the warm up animation.
42 SkBitmap* mic_full_; // Mic image with full volume.
43 SkBitmap* mic_noise_; // Mic image with full noise volume.
[all …]
/external/chromium_org/skia/ext/
Dimage_operations.h101 static SkBitmap Resize(const SkBitmap& source,
105 SkBitmap::Allocator* allocator = NULL);
109 static SkBitmap Resize(const SkBitmap& source,
112 SkBitmap::Allocator* allocator = NULL);
118 static SkBitmap ResizeBasic(const SkBitmap& source,
122 SkBitmap::Allocator* allocator = NULL);
125 static SkBitmap ResizeSubpixel(const SkBitmap& source,
128 SkBitmap::Allocator* allocator = NULL);
/external/chromium_org/third_party/skia/src/images/
DSkImageDecoder.cpp17 static SkBitmap::Config gDeviceConfig = SkBitmap::kNo_Config;
19 SkBitmap::Config SkImageDecoder::GetDeviceConfig() in GetDeviceConfig()
24 void SkImageDecoder::SetDeviceConfig(SkBitmap::Config config) in SetDeviceConfig()
36 , fDefaultPref(SkBitmap::kNo_Config) in SkImageDecoder()
111 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator* alloc) { in setAllocator()
123 bool SkImageDecoder::chooseFromOneChoice(SkBitmap::Config config, int width, in chooseFromOneChoice()
135 bool SkImageDecoder::allocPixelRef(SkBitmap* bitmap, in allocPixelRef()
147 SkBitmap::Config SkImageDecoder::getPrefConfig(SrcDepth srcDepth, in getPrefConfig()
149 SkBitmap::Config config = SkBitmap::kNo_Config; in getPrefConfig()
169 if (SkBitmap::kNo_Config == config) { in getPrefConfig()
[all …]
/external/skia/src/images/
DSkImageDecoder.cpp17 static SkBitmap::Config gDeviceConfig = SkBitmap::kNo_Config;
19 SkBitmap::Config SkImageDecoder::GetDeviceConfig() in GetDeviceConfig()
24 void SkImageDecoder::SetDeviceConfig(SkBitmap::Config config) in SetDeviceConfig()
36 , fDefaultPref(SkBitmap::kNo_Config) in SkImageDecoder()
111 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator* alloc) { in setAllocator()
123 bool SkImageDecoder::chooseFromOneChoice(SkBitmap::Config config, int width, in chooseFromOneChoice()
135 bool SkImageDecoder::allocPixelRef(SkBitmap* bitmap, in allocPixelRef()
147 SkBitmap::Config SkImageDecoder::getPrefConfig(SrcDepth srcDepth, in getPrefConfig()
149 SkBitmap::Config config = SkBitmap::kNo_Config; in getPrefConfig()
169 if (SkBitmap::kNo_Config == config) { in getPrefConfig()
[all …]
/external/skia/bench/
DBitmapBench.cpp36 static void convertToIndex666(const SkBitmap& src, SkBitmap* dst, bool isOpaque) { in convertToIndex666()
52 dst->setConfig(SkBitmap::kIndex8_Config, src.width(), src.height()); in convertToIndex666()
78 SkBitmap fBitmap;
83 SkBitmap::Config fConfig;
88 BitmapBench(bool isOpaque, SkBitmap::Config c, in BitmapBench()
110 SkBitmap bm; in onPreDraw()
112 if (SkBitmap::kIndex8_Config == fConfig) { in onPreDraw()
113 bm.setConfig(SkBitmap::kARGB_8888_Config, W, H); in onPreDraw()
123 if (SkBitmap::kIndex8_Config == fConfig) { in onPreDraw()
140 const SkBitmap& bitmap = fBitmap; in onDraw()
[all …]
/external/chromium/chrome/browser/chromeos/status/
Dnetwork_menu.h80 virtual bool GetIconAt(int index, SkBitmap* icon);
117 MenuItem(ui::MenuModel::ItemType type, string16 label, SkBitmap icon, in MenuItem()
125 MenuItem(ui::MenuModel::ItemType type, string16 label, SkBitmap icon, in MenuItem()
135 SkBitmap icon;
213 static const SkBitmap* IconForNetworkStrength(const WifiNetwork* wifi,
219 static const SkBitmap* IconForNetworkStrength(const CellularNetwork* cellular,
226 static const SkBitmap* IconForNetworkConnecting(double animation_value,
232 static const SkBitmap* BadgeForNetworkTechnology(
237 static const SkBitmap* BadgeForRoamingStatus(const CellularNetwork* cellular);
243 static const SkBitmap* BadgeForPrivateNetworkStatus(const Network* network);
[all …]
/external/chromium/chrome/browser/ui/views/infobars/
Dinfobar_button_border.h11 class SkBitmap; variable
33 SkBitmap* top_left;
34 SkBitmap* top;
35 SkBitmap* top_right;
36 SkBitmap* left;
37 SkBitmap* center;
38 SkBitmap* right;
39 SkBitmap* bottom_left;
40 SkBitmap* bottom;
41 SkBitmap* bottom_right;
/external/chromium/chrome/browser/ui/views/bubble/
Dbubble_border.h13 class SkBitmap; variable
116 SkBitmap* edge,
117 SkBitmap* arrow,
132 static SkBitmap* left_;
133 static SkBitmap* top_left_;
134 static SkBitmap* top_;
135 static SkBitmap* top_right_;
136 static SkBitmap* right_;
137 static SkBitmap* bottom_right_;
138 static SkBitmap* bottom_;
[all …]
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp13 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); in SkBitmap_ReleaseInfo()
17 static bool getBitmapInfo(const SkBitmap& bm, in getBitmapInfo()
26 case SkBitmap::kRGB_565_Config: in getBitmapInfo()
31 case SkBitmap::kARGB_8888_Config: in getBitmapInfo()
51 #warning Cannot convert SkBitmap to CGImageRef with these shiftmasks. \ in getBitmapInfo()
64 case SkBitmap::kRGB_565_Config: in getBitmapInfo()
70 case SkBitmap::kARGB_4444_Config: in getBitmapInfo()
85 static SkBitmap* prepareForImageRef(const SkBitmap& bm, in prepareForImageRef()
93 SkBitmap* copy; in prepareForImageRef()
95 copy = new SkBitmap; in prepareForImageRef()
[all …]
/external/chromium_org/third_party/skia/src/utils/mac/
DSkCreateCGImageRef.cpp13 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); in SkBitmap_ReleaseInfo()
17 static bool getBitmapInfo(const SkBitmap& bm, in getBitmapInfo()
26 case SkBitmap::kRGB_565_Config: in getBitmapInfo()
31 case SkBitmap::kARGB_8888_Config: in getBitmapInfo()
51 #warning Cannot convert SkBitmap to CGImageRef with these shiftmasks. \ in getBitmapInfo()
64 case SkBitmap::kRGB_565_Config: in getBitmapInfo()
70 case SkBitmap::kARGB_4444_Config: in getBitmapInfo()
85 static SkBitmap* prepareForImageRef(const SkBitmap& bm, in prepareForImageRef()
93 SkBitmap* copy; in prepareForImageRef()
95 copy = new SkBitmap; in prepareForImageRef()
[all …]
/external/skia/gm/
Dbitmappremul.cpp25 static void init_bitmap(SkBitmap::Config config, SkBitmap* bitmap) { in init_bitmap()
31 static SkBitmap make_argb8888_gradient() { in make_argb8888_gradient()
32 SkBitmap bitmap; in make_argb8888_gradient()
33 init_bitmap(SkBitmap::kARGB_8888_Config, &bitmap); in make_argb8888_gradient()
48 static SkBitmap make_argb4444_gradient() { in make_argb4444_gradient()
49 SkBitmap bitmap; in make_argb4444_gradient()
50 init_bitmap(SkBitmap::kARGB_4444_Config, &bitmap); in make_argb4444_gradient()
65 static SkBitmap make_argb8888_stripes() { in make_argb8888_stripes()
66 SkBitmap bitmap; in make_argb8888_stripes()
67 init_bitmap(SkBitmap::kARGB_8888_Config, &bitmap); in make_argb8888_stripes()
[all …]

12345678910>>...74