HomeSort by relevance Sort by last modified time
    Searched refs:bitmaps (Results 1 - 25 of 56) sorted by null

1 2 3

  /external/chromium_org/chrome/browser/history/
select_favicon_frames_unittest.cc 35 // Return gfx::Size vector with the pixel sizes of |bitmaps|.
36 vector<gfx::Size> SizesFromBitmaps(const vector<SkBitmap>& bitmaps) {
38 for (size_t i = 0; i < bitmaps.size(); ++i)
39 sizes.push_back(gfx::Size(bitmaps[i].width(), bitmaps[i].height()));
74 vector<SkBitmap> bitmaps; local
75 bitmaps.push_back(MakeBitmap(SK_ColorRED, 16, 16));
76 bitmaps.push_back(MakeBitmap(SK_ColorGREEN, 48, 48));
77 bitmaps.push_back(MakeBitmap(SK_ColorBLUE, 32, 32));
79 gfx::ImageSkia image = CreateFaviconImageSkia(bitmaps,
92 vector<SkBitmap> bitmaps; local
120 vector<SkBitmap> bitmaps; local
138 vector<SkBitmap> bitmaps; local
156 vector<SkBitmap> bitmaps; local
174 vector<SkBitmap> bitmaps; local
    [all...]
  /external/chromium_org/content/renderer/fetchers/
multi_resolution_image_resource_fetcher.cc 45 std::vector<SkBitmap> bitmaps; local
51 bitmaps = ImageDecoder::DecodeAll(
61 callback.Run(this, bitmaps);
  /packages/apps/Gallery/src/com/android/camera/
PhotoAppWidgetBind.java 43 // This is dangerous because the caller could set bitmaps on
52 final ArrayList<Bitmap> bitmaps = local
55 if (appWidgetIds == null || bitmaps == null
56 || appWidgetIds.length != bitmaps.size()) {
66 helper.setPhoto(appWidgetId, bitmaps.get(i));
  /external/chromium_org/components/favicon_base/
select_favicon_frames.h 23 // Takes a list of all bitmaps found in a .ico file, and creates an
25 // Bitmaps are selected by using |SelectFaviconFrameIndices| and the
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.
favicon_util.cc 84 // similar to SelectFaviconFrames() but it operates on bitmaps which have
203 std::vector<SkBitmap> bitmaps;
212 bitmaps.push_back(bitmap);
216 if (bitmaps.empty())
224 ResizeBitmapByDownsamplingIfPossible(bitmaps, desired_size_in_pixel);
  /external/chromium_org/net/disk_cache/blockfile/
block_bitmaps_v3.h 28 void Init(const BlockFilesBitmaps& bitmaps);
38 // Releases the internal bitmaps. The cache is being purged.
block_bitmaps_v3_unittest.cc 14 disk_cache::BlockFilesBitmaps bitmaps; local
25 bitmaps.push_back(disk_cache::BlockHeader(&headers[i]));
28 block_bitmaps.Init(bitmaps);
  /external/chromium_org/third_party/skia/tests/
CanvasStateTest.cpp 42 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[2] local
    [all...]
  /external/chromium_org/ui/ozone/platform/dri/test/
mock_dri_surface.h 26 const std::vector<ui::DriBuffer*>& bitmaps() const { return bitmaps_; } function in class:ui::MockDriSurface
  /external/skia/tests/
CanvasStateTest.cpp 42 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[2] local
    [all...]
  /external/chromium_org/chrome/browser/extensions/
bookmark_app_helper.h 47 // 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);
bookmark_app_helper_unittest.cc 139 const std::map<GURL, std::vector<SkBitmap> >& bitmaps) {
140 BookmarkAppHelper::OnIconsDownloaded(success, bitmaps);
305 std::vector<SkBitmap> bitmaps; local
306 bitmaps.push_back(CreateSquareBitmapWithColor(16, SK_ColorRED));
307 bitmaps.push_back(CreateSquareBitmapWithColor(32, SK_ColorGREEN));
308 bitmaps.push_back(CreateSquareBitmapWithColor(48, SK_ColorBLUE));
309 bitmaps.push_back(CreateSquareBitmapWithColor(144, SK_ColorYELLOW));
312 BookmarkAppHelper::ConstrainBitmapsToSizes(bitmaps, desired_sizes));
320 std::vector<SkBitmap> bitmaps; local
321 bitmaps.push_back(CreateSquareBitmapWithColor(512, SK_ColorRED))
    [all...]
bookmark_app_helper.cc 122 const std::vector<SkBitmap>& bitmaps,
126 for (std::vector<SkBitmap>::const_iterator it = bitmaps.begin();
127 it != bitmaps.end();
157 void BookmarkAppHelper::GenerateIcon(std::map<int, SkBitmap>* bitmaps,
162 if (bitmaps->count(output_size))
168 icon_image.bitmap()->deepCopyTo(&(*bitmaps)[output_size]);
219 const std::map<GURL, std::vector<SkBitmap> >& bitmaps) {
235 for (FaviconDownloader::FaviconMap::const_iterator map_it = bitmaps.begin();
236 map_it != bitmaps.end();
favicon_downloader.cc 91 const std::vector<SkBitmap>& bitmaps,
97 favicon_map_[image_url] = bitmaps;
favicon_downloader.h 32 /* A map of icon urls to the bitmaps provided by that url. */
64 const std::vector<SkBitmap>& bitmaps,
  /external/chromium_org/ui/ozone/platform/dri/
dri_surface_factory_unittest.cc 146 const std::vector<ui::DriBuffer*>& bitmaps = local
147 surface_generator_->surfaces()[0]->bitmaps();
150 bitmaps[1]->canvas()->readPixels(&image, 0, 0);
184 const std::vector<ui::DriBuffer*>& bitmaps = surfaces[0]->bitmaps(); local
187 EXPECT_EQ(2u, bitmaps.size());
190 bitmaps[1]->canvas()->readPixels(&cursor, 0, 0);
  /external/fonttools/Lib/fontTools/ttLib/tables/
sbixBitmapSet.py 28 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[glyphOrder[i]].toXML(xmlWriter, ttFont
    [all...]
  /external/chromium_org/android_webview/browser/
icon_helper.cc 39 const std::vector<SkBitmap>& bitmaps,
47 if (bitmaps.size() == 0) {
57 listener_->OnReceivedIcon(image_url, bitmaps[0]);
icon_helper.h 55 const std::vector<SkBitmap>& bitmaps,
  /external/chromium_org/chrome/browser/ui/ash/launcher/
launcher_favicon_loader.cc 21 // FaviconRawBitmapHandler fetchs all bitmaps with the 'icon' (or 'shortcut
24 // These icon bitmaps are not resized and are not cached beyond the lifetime
25 // of the class. Bitmaps larger than kMaxBitmapSize are ignored.
51 const std::vector<SkBitmap>& bitmaps,
128 const std::vector<SkBitmap>& bitmaps,
137 // Favicon bitmaps are ordered by decreasing width.
138 if (!bitmaps.empty())
139 AddFavicon(image_url, bitmaps[0]);
  /external/chromium_org/chrome/browser/ui/
metro_pin_tab_helper_win.h 51 const std::vector<SkBitmap>& bitmaps,
  /external/chromium_org/chrome/browser/web_applications/
update_shortcut_worker_win.h 47 const std::vector<SkBitmap>& bitmaps,
  /external/chromium_org/extensions/browser/
image_loader.cc 88 // Note: This class only decodes bitmaps from extension resources. Chrome
93 // Chrome is therefore decoding bitmaps here that were generated by Chrome.
102 std::vector<SkBitmap> bitmaps; local
103 bitmaps.resize(info_list.size());
120 LoadResourceOnUIThread(resource_id, &bitmaps[i]);
124 return bitmaps;
179 const std::vector<SkBitmap>& bitmaps) {
191 if (bitmaps[i].isNull())
194 bitmap = bitmaps[i];
  /frameworks/base/services/core/java/com/android/server/
AssetAtlasService.java 57 * This service is responsible for packing preloaded bitmaps into a single
115 // Describes how bitmaps are placed in the atlas. Each bitmap is
134 ArrayList<Bitmap> bitmaps = new ArrayList<Bitmap>(300); local
137 // We only care about drawables that hold bitmaps
145 bitmaps.add(bitmap);
150 // Our algorithms perform better when the bitmaps are first sorted
152 Collections.sort(bitmaps, new Comparator<Bitmap>() {
163 new Thread(new Renderer(bitmaps, totalPixelCount)).start();
203 Renderer(ArrayList<Bitmap> bitmaps, int pixelCount) {
204 mBitmaps = bitmaps;
    [all...]
  /external/chromium_org/chrome/browser/favicon/
favicon_tab_helper.cc 269 const std::vector<SkBitmap>& bitmaps,
272 if (bitmaps.empty() && http_status_code == 404) {
281 id, image_url, bitmaps, original_bitmap_sizes);
284 id, image_url, bitmaps, original_bitmap_sizes);

Completed in 620 milliseconds

1 2 3