Home
last modified time | relevance | path

Searched refs:desired_size (Results 1 – 25 of 45) sorted by relevance

12

/external/chromium_org/chrome/browser/history/
Dselect_favicon_frames.cc30 SkBitmap SampleNearestNeighbor(const SkBitmap& contents, int desired_size) { in SampleNearestNeighbor() argument
33 SkBitmap::kARGB_8888_Config, desired_size, desired_size); in SampleNearestNeighbor()
40 SkRect dest(SkRect::MakeWH(desired_size, desired_size)); in SampleNearestNeighbor()
142 int desired_size, in GetCandidateIndicesWithBestScores() argument
150 if (desired_size == 0) { in GetCandidateIndicesWithBestScores()
168 result.scale_factor, desired_size, &score, &result.resize_method); in GetCandidateIndicesWithBestScores()
207 int desired_size, in SelectFaviconFrames() argument
211 desired_size, match_score, &results); in SelectFaviconFrames()
217 desired_size, result.scale_factor, result.resize_method); in SelectFaviconFrames()
228 int desired_size, in SelectFaviconFrameIndices() argument
[all …]
Dselect_favicon_frames.h41 int desired_size,
58 int desired_size,
/external/chromium_org/chrome/browser/thumbnails/
Dsimple_thumbnail_crop.cc141 const gfx::Size& desired_size, in GetClippingRect() argument
146 static_cast<float>(desired_size.width()) / desired_size.height(); in GetClippingRect()
151 if (source_size.width() < desired_size.width() || in GetClippingRect()
152 source_size.height() < desired_size.height()) { in GetClippingRect()
156 clipping_rect = gfx::Rect(desired_size); in GetClippingRect()
197 const gfx::Size& desired_size, in CreateThumbnail() argument
214 bmp, desired_size.width(), desired_size.height(), clip_result); in CreateThumbnail()
222 clipped_bitmap, desired_size.width(), desired_size.height()); in CreateThumbnail()
Dsimple_thumbnail_crop_unittest.cc201 const gfx::Size desired_size(300, 200); in TEST_F() local
205 gfx::Size(300, 199), desired_size, &clip_result); in TEST_F()
208 EXPECT_EQ(desired_size.ToString(), clip_rect.size().ToString()); in TEST_F()
212 gfx::Size(500, 1200), desired_size, &clip_result); in TEST_F()
219 gfx::Size(2000, 800), desired_size, &clip_result); in TEST_F()
228 gfx::Size(900, 600), desired_size, &clip_result); in TEST_F()
Dsimple_thumbnail_crop.h50 const gfx::Size& desired_size,
64 const gfx::Size& desired_size,
Drender_widget_snapshot_taker.cc43 gfx::Size desired_size) { in AskForSnapshot() argument
51 gfx::ScaleSize(desired_size, scale_factor)); in AskForSnapshot()
93 renderer_dib_handle, sequence_num, page_size, desired_size); in AskForSnapshot()
Drender_widget_snapshot_taker.h50 gfx::Size desired_size);
/external/chromium_org/ui/gfx/image/
Dimage_skia_util_mac.mm21 // Returns NSImageRep whose pixel size most closely matches |desired_size|.
23 NSSize desired_size) {
27 float diff = std::abs(desired_size.width - [image_rep pixelsWide]) +
28 std::abs(desired_size.height - [image_rep pixelsHigh]);
51 NSSize desired_size) {
65 NSSize desired_size_for_scale = NSMakeSize(desired_size.width * scale,
66 desired_size.height * scale);
81 gfx::ImageSkia ApplicationIconAtSize(int desired_size) {
84 NSMakeSize(desired_size, desired_size));
/external/chromium/chrome/browser/chromeos/login/
Dproxy_settings_dialog.cc21 int desired_size = static_cast<int>(desired_ratio * screen_size); in CalculateSize() local
22 desired_size = std::max(min_comfortable, desired_size); in CalculateSize()
23 return std::min(screen_size, desired_size); in CalculateSize()
Duser_view.cc296 int desired_size = std::min(image.width(), image.height()); in SetImage() local
298 if (desired_size * 4 > 3 * kUserImageSize) in SetImage()
299 desired_size = kUserImageSize; in SetImage()
300 image_view_->SetImageSize(gfx::Size(desired_size, desired_size)); in SetImage()
/external/chromium_org/chrome/browser/extensions/
Dimage_loader.cc43 const gfx::Size& desired_size) { in ShouldResizeImageRepresentation() argument
46 return decoded_size != desired_size; in ShouldResizeImageRepresentation()
48 return decoded_size.width() > desired_size.width() || in ShouldResizeImageRepresentation()
49 decoded_size.height() > desired_size.height(); in ShouldResizeImageRepresentation()
61 image_info.desired_size)) { in ResizeIfNeeded()
64 image_info.desired_size.width(), image_info.desired_size.height()); in ResizeIfNeeded()
128 const gfx::Size& desired_size, in ImageRepresentation() argument
132 desired_size(desired_size), in ImageRepresentation()
322 << "; desired_size = " << it->desired_size.ToString() in LoadImagesAsync()
Dimage_loader.h52 const gfx::Size& desired_size,
63 gfx::Size desired_size; member
/external/chromium_org/chrome/browser/chromeos/login/
Dproxy_settings_dialog.cc34 int desired_size = static_cast<int>(desired_ratio * screen_size); in CalculateSize() local
35 desired_size = std::max(min_comfortable, desired_size); in CalculateSize()
36 return std::min(screen_size, desired_size); in CalculateSize()
/external/chromium/chrome/browser/tab_contents/
Dthumbnail_generator.cc186 gfx::Size desired_size) { in AskForSnapshot() argument
193 desired_size.width(), in AskForSnapshot()
194 desired_size.height(), in AskForSnapshot()
211 desired_size.width() * desired_size.height() * 4, sequence_num)); in AskForSnapshot()
243 renderer_dib_handle, sequence_num, page_size, desired_size); in AskForSnapshot()
Dthumbnail_generator.h84 gfx::Size desired_size);
/external/chromium_org/content/public/test/
Drender_widget_test.cc36 const gfx::Size& desired_size, in ResizeAndPaint() argument
54 desired_size); in ResizeAndPaint()
64 EXPECT_EQ(desired_size, size); in ResizeAndPaint()
Drender_widget_test.h39 const gfx::Size& desired_size,
/external/chromium_org/content/browser/renderer_host/
Dbacking_store_manager.h33 const gfx::Size& desired_size);
Dbacking_store_manager.cc180 const gfx::Size& desired_size) { in GetBackingStore() argument
185 if (backing_store->size() == desired_size) in GetBackingStore()
Drender_widget_host_impl.h167 const gfx::Size& desired_size) OVERRIDE;
252 bool TryGetBackingStore(const gfx::Size& desired_size,
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvideoframe.cc355 size_t desired_size = SizeOf(new_width, new_height); in Reset() local
357 new RefCountedBuffer(desired_size)); in Reset()
360 Attach(video_buffer.get(), desired_size, new_width, new_height, pixel_width, in Reset()
/external/chromium_org/chrome/installer/setup/
Dsetup_util_unittest.cc82 const DWORD desired_size = wcslen(privilege_name); in CurrentProcessHasPrivilege() local
83 const DWORD buffer_size = desired_size + 1; in CurrentProcessHasPrivilege()
89 if (size == desired_size && in CurrentProcessHasPrivilege()
/external/chromium_org/content/public/browser/
Drender_widget_host.h255 const gfx::Size& desired_size) = 0;
/external/chromium_org/third_party/libjingle/source/talk/base/
Dsocket_unittest.cc976 const int desired_size = 12345; in GetSetOptionsInternal() local
979 const int expected_size = desired_size * 2; in GetSetOptionsInternal()
981 const int expected_size = desired_size; in GetSetOptionsInternal()
989 ASSERT_NE(-1, socket->SetOption(Socket::OPT_RCVBUF, desired_size)); in GetSetOptionsInternal()
990 ASSERT_NE(-1, socket->SetOption(Socket::OPT_SNDBUF, desired_size)); in GetSetOptionsInternal()
/external/chromium_org/content/port/browser/
Drender_widget_host_view_port.h243 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;

12