Searched refs:bitmaps (Results 1 - 25 of 74) sorted by relevance

123

/external/chromium_org/chrome/browser/history/
H A Dselect_favicon_frames_unittest.cc35 // Return gfx::Size vector with the pixel sizes of |bitmaps|.
36 vector<gfx::Size> SizesFromBitmaps(const vector<SkBitmap>& bitmaps) { argument
38 for (size_t i = 0; i < bitmaps.size(); ++i)
39 sizes.push_back(gfx::Size(bitmaps[i].width(), bitmaps[i].height()));
73 vector<SkBitmap> bitmaps; local
74 bitmaps.push_back(MakeBitmap(SK_ColorRED, 16, 16));
75 bitmaps.push_back(MakeBitmap(SK_ColorGREEN, 48, 48));
76 bitmaps.push_back(MakeBitmap(SK_ColorBLUE, 32, 32));
78 gfx::ImageSkia image = CreateFaviconImageSkia(bitmaps,
91 vector<SkBitmap> bitmaps; local
119 vector<SkBitmap> bitmaps; local
137 vector<SkBitmap> bitmaps; local
155 vector<SkBitmap> bitmaps; local
173 vector<SkBitmap> bitmaps; local
[all...]
/external/chromium_org/ui/base/cursor/ozone/
H A Dbitmap_cursor_factory_ozone.cc39 BitmapCursorOzone::BitmapCursorOzone(const std::vector<SkBitmap>& bitmaps, argument
42 : bitmaps_(bitmaps), hotspot_(hotspot), frame_delay_ms_(frame_delay_ms) {
43 DCHECK_LT(0U, bitmaps.size());
58 const std::vector<SkBitmap>& BitmapCursorOzone::bitmaps() { function in class:ui::BitmapCursorOzone
89 const std::vector<SkBitmap>& bitmaps,
92 DCHECK_LT(0U, bitmaps.size());
94 new BitmapCursorOzone(bitmaps, hotspot, frame_delay_ms);
88 CreateAnimatedCursor( const std::vector<SkBitmap>& bitmaps, const gfx::Point& hotspot, int frame_delay_ms) argument
H A Dbitmap_cursor_factory_ozone.h24 BitmapCursorOzone(const std::vector<SkBitmap>& bitmaps,
32 const std::vector<SkBitmap>& bitmaps();
67 const std::vector<SkBitmap>& bitmaps,
/external/chromium_org/components/favicon_base/
H A Dselect_favicon_frames.h23 // Takes a list of all bitmaps found in a .ico file, and creates an
28 // |original_sizes| are the original sizes of the bitmaps. (For instance,
31 // that describes how well |bitmaps| were able to produce an image at
41 const std::vector<SkBitmap>& bitmaps,
46 // Takes a list of the pixel sizes of a favicon's favicon bitmaps and returns
57 // are the sizes of the favicon bitmaps after they were resized.
/external/chromium_org/third_party/skia/tests/
H A DCanvasStateTest.cpp97 SkBitmap bitmaps[2]; local
99 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT,
103 SkCanvas canvas(bitmaps[j]);
136 // now we memcmp the two bitmaps
137 REPORTER_ASSERT(reporter, bitmaps[0].getSize() == bitmaps[1].getSize());
138 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(),
139 bitmaps[1].getPixels(),
140 bitmaps[0].getSize()));
198 SkBitmap bitmaps[ local
[all...]
/external/chromium_org/ui/ozone/platform/dri/
H A Dhardware_cursor_delegate.h23 const std::vector<SkBitmap>& bitmaps,
H A Dgpu_platform_support_gbm.cc87 const std::vector<SkBitmap>& bitmaps,
90 dri_->SetHardwareCursor(widget, bitmaps, location, frame_delay_ms);
86 OnCursorSet(gfx::AcceleratedWidget widget, const std::vector<SkBitmap>& bitmaps, const gfx::Point& location, int frame_delay_ms) argument
/external/skia/tests/
H A DCanvasStateTest.cpp42 SkBitmap bitmaps[2]; local
44 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT,
48 SkCanvas canvas(bitmaps[j]);
85 // now we memcmp the two bitmaps
86 REPORTER_ASSERT(reporter, bitmaps[0].getSize() == bitmaps[1].getSize());
87 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(),
88 bitmaps[1].getPixels(),
89 bitmaps[0].getSize()));
131 SkBitmap bitmaps[ local
[all...]
/external/chromium_org/chrome/browser/extensions/
H A Dbookmark_app_helper.h47 // This finds the closest not-smaller bitmap in |bitmaps| for each size in
48 // |sizes| and resizes it to that size. This returns a map of sizes to bitmaps
49 // which contains only bitmaps of a size in |sizes| and at most one bitmap of
52 const std::vector<SkBitmap>& bitmaps,
55 // Adds a square container icon of |output_size| pixels to |bitmaps| by
57 // Does nothing if an icon of |output_size| already exists in |bitmaps|.
58 static void GenerateIcon(std::map<int, SkBitmap>* bitmaps,
71 const std::map<GURL, std::vector<SkBitmap> >& bitmaps);
H A Dbookmark_app_helper_unittest.cc134 const std::map<GURL, std::vector<SkBitmap> >& bitmaps) {
135 BookmarkAppHelper::OnIconsDownloaded(success, bitmaps);
297 std::vector<SkBitmap> bitmaps; local
298 bitmaps.push_back(CreateSquareBitmapWithColor(16, SK_ColorRED));
299 bitmaps.push_back(CreateSquareBitmapWithColor(32, SK_ColorGREEN));
300 bitmaps.push_back(CreateSquareBitmapWithColor(48, SK_ColorBLUE));
301 bitmaps.push_back(CreateSquareBitmapWithColor(144, SK_ColorYELLOW));
304 BookmarkAppHelper::ConstrainBitmapsToSizes(bitmaps, desired_sizes));
312 std::vector<SkBitmap> bitmaps; local
313 bitmaps
132 CompleteIconDownload( bool success, const std::map<GURL, std::vector<SkBitmap> >& bitmaps) argument
[all...]
/external/chromium_org/content/renderer/fetchers/
H A Dmulti_resolution_image_resource_fetcher.cc48 std::vector<SkBitmap> bitmaps; local
54 bitmaps = ImageDecoder::DecodeAll(
64 callback.Run(this, bitmaps);
/external/chromium_org/ui/base/cursor/
H A Dcursor_loader_ozone.cc35 std::vector<SkBitmap> bitmaps; local
39 resource_id, scale(), rotation(), &hotspot, &bitmaps);
42 bitmaps, hotspot, frame_delay_ms);
H A Dcursor_util.h37 std::vector<SkBitmap>* bitmaps);
H A Dcursor_util.cc82 std::vector<SkBitmap>* bitmaps) {
95 bitmaps->resize(frame_count);
106 (*bitmaps)[frame] = cropped;
78 GetAnimatedCursorBitmaps(int resource_id, float scale, gfx::Display::Rotation rotation, gfx::Point* hotspot, std::vector<SkBitmap>* bitmaps) argument
H A Dcursor_loader_x11.cc169 std::vector<SkBitmap> bitmaps; local
173 resource_id, scale(), rotation(), &hotspot, &bitmaps);
175 XcursorImages* x_images = XcursorImagesCreate(bitmaps.size());
176 x_images->nimage = bitmaps.size();
178 for (unsigned int frame = 0; frame < bitmaps.size(); ++frame) {
179 XcursorImage* x_image = SkBitmapToXcursorImage(&bitmaps[frame], hotspot);
/external/fonttools/Lib/fontTools/ttLib/tables/
H A DsbixBitmapSet.py28 self.bitmaps = {}
42 # calculate number of bitmaps
46 # ^ -1 because there's one more offset than bitmaps
50 for i in range(self.numBitmaps + 1): # + 1 because there's one more offset than bitmaps
55 # iterate through offset list and slice raw data into bitmaps
59 self.bitmaps[myBitmap.glyphName] = myBitmap
72 if glyphName in self.bitmaps:
74 myBitmap = self.bitmaps[glyphName]
110 if glyphOrder[i] in self.bitmaps:
111 self.bitmaps[glyphOrde
[all...]
/external/fonttools/Tools/fontTools/ttLib/tables/
H A DsbixBitmapSet.py28 self.bitmaps = {}
42 # calculate number of bitmaps
46 # ^ -1 because there's one more offset than bitmaps
50 for i in range(self.numBitmaps + 1): # + 1 because there's one more offset than bitmaps
55 # iterate through offset list and slice raw data into bitmaps
59 self.bitmaps[myBitmap.glyphName] = myBitmap
72 if glyphName in self.bitmaps:
74 myBitmap = self.bitmaps[glyphName]
110 if glyphOrder[i] in self.bitmaps:
111 self.bitmaps[glyphOrde
[all...]
/external/chromium_org/net/disk_cache/blockfile/
H A Dblock_bitmaps_v3_unittest.cc14 disk_cache::BlockFilesBitmaps bitmaps; local
25 bitmaps.push_back(disk_cache::BlockHeader(&headers[i]));
28 block_bitmaps.Init(bitmaps);
H A Dblock_bitmaps_v3.h28 void Init(const BlockFilesBitmaps& bitmaps);
38 // Releases the internal bitmaps. The cache is being purged.
/external/chromium_org/ui/ozone/public/
H A Dcursor_factory_ozone.h45 const std::vector<SkBitmap>& bitmaps,
H A Dcursor_factory_ozone.cc42 const std::vector<SkBitmap>& bitmaps,
41 CreateAnimatedCursor( const std::vector<SkBitmap>& bitmaps, const gfx::Point& hotspot, int frame_delay_ms) argument
/external/chromium_org/android_webview/browser/
H A Dicon_helper.cc39 const std::vector<SkBitmap>& bitmaps,
47 if (bitmaps.size() == 0) {
57 listener_->OnReceivedIcon(image_url, bitmaps[0]);
35 DownloadFaviconCallback( int id, int http_status_code, const GURL& image_url, const std::vector<SkBitmap>& bitmaps, const std::vector<gfx::Size>& original_bitmap_sizes) argument
/external/chromium_org/chrome/browser/ui/ash/launcher/
H A Dlauncher_favicon_loader.cc21 // FaviconRawBitmapHandler fetchs all bitmaps with the 'icon' (or 'shortcut
24 // These icon bitmaps are not resized and are not cached beyond the lifetime
50 const std::vector<SkBitmap>& bitmaps,
125 const std::vector<SkBitmap>& bitmaps,
134 // Favicon bitmaps are ordered by decreasing width.
135 if (!bitmaps.empty())
136 AddFavicon(image_url, bitmaps[0]);
121 DidDownloadFavicon( int id, int http_status_code, const GURL& image_url, const std::vector<SkBitmap>& bitmaps, const std::vector<gfx::Size>& original_bitmap_sizes) argument
/external/chromium_org/chrome/browser/ui/
H A Dmetro_pin_tab_helper_win.h51 const std::vector<SkBitmap>& bitmaps,
/external/chromium_org/chrome/browser/web_applications/
H A Dupdate_shortcut_worker_win.h47 const std::vector<SkBitmap>& bitmaps,

Completed in 3889 milliseconds

123