Home
last modified time | relevance | path

Searched refs:ToCeiledSize (Results 1 – 25 of 31) sorted by relevance

12

/external/chromium_org/ui/gfx/geometry/
Dsize_unittest.cc47 TEST(SizeTest, ToCeiledSize) { in TEST() argument
48 EXPECT_EQ(Size(0, 0), ToCeiledSize(SizeF(0, 0))); in TEST()
49 EXPECT_EQ(Size(1, 1), ToCeiledSize(SizeF(0.0001f, 0.0001f))); in TEST()
50 EXPECT_EQ(Size(1, 1), ToCeiledSize(SizeF(0.4999f, 0.4999f))); in TEST()
51 EXPECT_EQ(Size(1, 1), ToCeiledSize(SizeF(0.5f, 0.5f))); in TEST()
52 EXPECT_EQ(Size(1, 1), ToCeiledSize(SizeF(0.9999f, 0.9999f))); in TEST()
54 EXPECT_EQ(Size(10, 10), ToCeiledSize(SizeF(10, 10))); in TEST()
55 EXPECT_EQ(Size(11, 11), ToCeiledSize(SizeF(10.0001f, 10.0001f))); in TEST()
56 EXPECT_EQ(Size(11, 11), ToCeiledSize(SizeF(10.4999f, 10.4999f))); in TEST()
57 EXPECT_EQ(Size(11, 11), ToCeiledSize(SizeF(10.5f, 10.5f))); in TEST()
[all …]
Dsize_conversions.h17 GFX_EXPORT Size ToCeiledSize(const SizeF& size);
Dsize_conversions.cc17 Size ToCeiledSize(const SizeF& size) { in ToCeiledSize() function
/external/chromium_org/content/renderer/
Ddisambiguation_popup_helper_unittest.cc47 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); in TEST_F()
65 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); in TEST_F()
84 gfx::Size scaled_size = ToCeiledSize(ScaleSize(zoom_rect.size(), scale)); in TEST_F()
Ddisambiguation_popup_helper.cc71 max_size = ToCeiledSize(ScaleSize(max_size, 1.0 / scale)); in CropZoomArea()
Drender_widget.cc325 gfx::Size physical_backing_size = gfx::ToCeiledSize(gfx::ScaleSize( in Apply()
1202 physical_backing_size_ = gfx::ToCeiledSize(gfx::ScaleSize(size_, in AutoResizeCompositor()
/external/chromium_org/ui/gfx/win/
Ddpi.cc213 return ToCeiledSize( in ScreenToDIPSize()
219 return ToCeiledSize(ScaleSize(dip_size, GetDeviceScaleFactor())); in DIPToScreenSize()
/external/chromium_org/cc/layers/
Dcontents_scaling_layer.cc13 return gfx::ToCeiledSize(gfx::ScaleSize(bounds(), scale_x, scale_y)); in ComputeContentBoundsForScale()
Dpicture_layer_impl.cc193 gfx::ToCeiledSize(gfx::ScaleSize(content_bounds(), max_contents_scale)); in AppendQuads()
1206 gfx::ToCeiledSize(gfx::ScaleSize(bounds(), maximum_scale)); in RecalculateRasterScales()
1223 gfx::ToCeiledSize(gfx::ScaleSize(bounds(), raster_contents_scale_)); in RecalculateRasterScales()
Dlayer_impl.cc780 return gfx::ToCeiledSize(gfx::SizeF(bounds_.width() + bounds_delta_.x(), in bounds()
/external/chromium_org/ui/gfx/
Dscreen_android.cc47 gfx::Rect(gfx::ToCeiledSize(gfx::ScaleSize( in GetPrimaryDisplay()
Dcanvas.cc30 Size pixel_size = ToCeiledSize(ScaleSize(size, image_scale)); in Canvas()
Drender_text_win.cc452 const Size line_size(ToCeiledSize(line->size)); in AdvanceLine()
826 ToCeiledSize(line.size)))) in DrawVisualText()
/external/chromium_org/ash/desktop_background/
Ddesktop_background_view.cc60 gfx::Size rounded_size = gfx::ToCeiledSize(pixel_size); in Layout()
/external/chromium_org/cc/resources/
Dpicture_pile_impl_unittest.cc665 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale))); in TEST_P()
731 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale))); in TEST()
780 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale))); in TEST_P()
Dpicture_layer_tiling_set_unittest.cc35 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale))); in TEST()
230 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, max_contents_scale))); in runTest()
Dpicture_layer_tiling.cc91 gfx::ToCeiledSize(gfx::ScaleSize(layer_bounds, contents_scale)); in PictureLayerTiling()
178 gfx::ToCeiledSize(gfx::ScaleSize(new_layer_bounds, contents_scale_)); in UpdateTilesToCurrentPile()
Dpicture_pile_unittest.cc224 gfx::ToCeiledSize(gfx::ScaleSize(pile_->tiling_size(), 2.f)); in TEST_F()
296 gfx::ToCeiledSize(gfx::ScaleSize(pile_->tiling_size(), 4.f)); in TEST_F()
393 gfx::ToCeiledSize(gfx::ScaleSize(pile_->tiling_size(), 4.f)); in TEST_F()
/external/chromium_org/ui/gfx/image/
Dimage_skia.cc201 gfx::Size scaled_size = ToCeiledSize( in FindRepresentation()
Dimage_skia_operations.cc29 return ToCeiledSize(ScaleSize(dip_size, scale)); in DIPToPixelSize()
/external/chromium_org/content/browser/renderer_host/
Drender_widget_host_view_base.cc401 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), in GetPhysicalBackingSize()
Drender_widget_host_view_android.cc414 gfx::ToCeiledSize(gfx::ScaleSize(bounds, scale / device_scale_factor))); in GetScaledContentBitmap()
1019 content_size_in_layer_ = gfx::ToCeiledSize(gfx::ScaleSize( in ComputeContentsSize()
/external/chromium_org/cc/test/
Dlayer_tree_test.cc544 gfx::Size device_root_bounds = gfx::ToCeiledSize( in SetupTree()
/external/chromium_org/cc/trees/
Dlayer_tree_impl_unittest.cc1794 gfx::Size scaled_bounds_for_root = gfx::ToCeiledSize( in TEST_F()
2297 gfx::Size scaled_bounds_for_root = gfx::ToCeiledSize( in TEST_F()
/external/chromium_org/content/browser/android/
Dcontent_view_core_impl.cc753 return gfx::ToCeiledSize( in GetViewportSizeDip()

12