Home
last modified time | relevance | path

Searched refs:device_scale (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/ui/views/
Ddrag_utils.cc16 float device_scale = 1.0f; in GetDeviceScaleForNativeView() local
24 device_scale = display.device_scale_factor(); in GetDeviceScaleForNativeView()
26 return device_scale; in GetDeviceScaleForNativeView()
35 float device_scale = GetDeviceScaleForNativeView(widget); in GetCanvasForDragImage() local
36 return new gfx::Canvas(canvas_size, device_scale, false); in GetCanvasForDragImage()
/external/chromium_org/pdf/
Dprogress_control.cc48 float device_scale, in CreateProgressControl() argument
56 Reconfigure(background, images, device_scale); in CreateProgressControl()
62 float device_scale) { in Reconfigure() argument
66 device_scale_ = device_scale; in Reconfigure()
80 float device_scale, in CalculateLayout() argument
94 description.set_size(ScaleInt(kProgressTextSize, device_scale)); in CalculateLayout()
106 ScaleInt(kImageTextSpacing + kLeftPadding + kRightPadding, device_scale), in CalculateLayout()
108 ScaleInt(kTopPadding + kBottomPadding, device_scale)); in CalculateLayout()
121 *image_rc = pp::Rect(ScaleInt(kLeftPadding, device_scale) + offset_x, in CalculateLayout()
122 ScaleInt(kTopPadding, device_scale) + offset_y, in CalculateLayout()
[all …]
Dprogress_control.h31 float device_scale,
37 float device_scale);
43 float device_scale,
Dnumber_image_generator.cc27 const std::vector<pp::ImageData>& number_images, float device_scale) { in Configure() argument
30 device_scale_ = device_scale; in Configure()
Dpaint_manager.cc85 void PaintManager::SetSize(const pp::Size& new_size, float device_scale) { in SetSize() argument
87 GetEffectiveDeviceScale() == device_scale) in SetSize()
92 pending_device_scale_ = device_scale; in SetSize()
Dnumber_image_generator.h23 float device_scale);
Dout_of_process_instance.cc508 float device_scale = view.GetDeviceScale(); in DidChangeView() local
509 pp::Size view_device_size(view_rect.width() * device_scale, in DidChangeView()
510 view_rect.height() * device_scale); in DidChangeView()
512 if (view_device_size != plugin_size_ || device_scale != device_scale_) { in DidChangeView()
513 device_scale_ = device_scale; in DidChangeView()
Dinstance.cc620 float device_scale = 1.0f; in DidChangeView() local
623 device_scale = view.GetDeviceScale(); in DidChangeView()
624 pp::Size view_device_size(view_rect.width() * device_scale, in DidChangeView()
625 view_rect.height() * device_scale); in DidChangeView()
626 if (view_device_size == plugin_size_ && device_scale == device_scale_) in DidChangeView()
630 device_scale_ = device_scale; in DidChangeView()
/external/chromium_org/ppapi/shared_impl/
Dppb_view_shared.cc21 device_scale = 1.0f; in ViewData()
38 device_scale == other.device_scale && css_scale == other.css_scale && in Equals()
80 float PPB_View_Shared::GetDeviceScale() const { return data_.device_scale; } in GetDeviceScale()
Dppb_view_shared.h28 float device_scale; member
/external/chromium_org/ui/views/controls/menu/
Dmenu_separator_win.cc49 float device_scale = gfx::win::GetDeviceScaleFactor(); in OnPaint() local
51 (device_scale - static_cast<int>(device_scale) != 0); in OnPaint()
/external/chromium_org/ash/drag_drop/
Ddrag_image_view.cc113 float device_scale = 1; in OnPaint() local
115 device_scale = ui::GetDeviceScaleFactor( in OnPaint()
121 gfx::ScaleSize(widget_size_, device_scale)); in OnPaint()
122 gfx::ImageSkiaRep image_rep = GetImage().GetRepresentation(device_scale); in OnPaint()
128 gfx::ImageSkia image_skia(gfx::ImageSkiaRep(scaled, device_scale)); in OnPaint()
/external/chromium_org/cc/layers/
Dpicture_layer_impl_unittest.cc783 float device_scale = 1.7f; in TEST_F() local
790 device_scale, in TEST_F()
805 device_scale, in TEST_F()
816 device_scale, in TEST_F()
825 device_scale, in TEST_F()
970 float device_scale = 1.7f; in TEST_F() local
974 SetContentsScaleOnBothLayers(scale, device_scale, page_scale, 1.f, false); in TEST_F()
987 SetContentsScaleOnBothLayers(scale, device_scale, page_scale, 1.f, false); in TEST_F()
1000 SetContentsScaleOnBothLayers(1.2f, device_scale, page_scale, 1.f, false); in TEST_F()
1017 SetContentsScaleOnBothLayers(0.5f, device_scale, page_scale, 1.f, false); in TEST_F()
[all …]
/external/chromium_org/ash/test/
Dtest_metro_viewer_process_host.cc48 float device_scale) { in OnSetTargetSurface() argument
51 gfx::InitDeviceScaleFactor(device_scale); in OnSetTargetSurface()
Dtest_metro_viewer_process_host.h31 float device_scale) OVERRIDE;
/external/chromium_org/chrome/browser/metro_viewer/
Dchrome_metro_viewer_process_host_aurawin.cc125 float device_scale) { in OnSetTargetSurface() argument
128 gfx::InitDeviceScaleFactor(device_scale); in OnSetTargetSurface()
Dchrome_metro_viewer_process_host_aurawin.h26 float device_scale) OVERRIDE;
/external/chromium_org/ui/native_theme/
Dcommon_theme.cc212 float device_scale = static_cast<float>(SkScalarAbs(m.getScaleX())); in CommonThemeCreateCanvas() local
214 gfx::Canvas::CreateCanvasWithoutScaling(sk_canvas, device_scale)); in CommonThemeCreateCanvas()
/external/chromium_org/remoting/webapp/
Dclient_plugin_impl.js738 function(width, height, device_scale) { argument
740 var dpi = Math.floor(device_scale * 96);
743 data: { width: Math.floor(width * device_scale),
744 height: Math.floor(height * device_scale),
/external/chromium_org/win8/viewer/
Dmetro_viewer_process_host.h156 float device_scale) = 0;
/external/chromium_org/content/renderer/gpu/
Drender_widget_compositor.h93 virtual void setDeviceScaleFactor(float device_scale); in NON_EXPORTED_BASE()
/external/chromium_org/cc/test/
Dtest_gles2_interface.cc415 float device_scale) { in ResizeCHROMIUM() argument
416 test_context_->reshapeWithScaleFactor(width, height, device_scale); in ResizeCHROMIUM()
Dtest_gles2_interface.h189 float device_scale) OVERRIDE;
/external/chromium_org/ppapi/proxy/
Dppp_instance_proxy_unittest.cc164 data.device_scale = 1.0f; in TEST_F()
/external/chromium_org/mojo/examples/pepper_container_app/
Dplugin_instance.cc55 view_data.device_scale = 1.0f; in DidChangeView()

12