Searched refs:device_scale_ (Results 1 – 12 of 12) sorted by relevance
/external/chromium_org/ppapi/examples/scaling/ |
D | scaling.cc | 34 device_scale_(1.0f), in MyInstance() 45 view.GetDeviceScale() == device_scale_ && in DidChangeView() 51 device_scale_ = view.GetDeviceScale(); in DidChangeView() 54 pixel_width_ = width_ * device_scale_; in DidChangeView() 55 pixel_height_ = height_ * device_scale_; in DidChangeView() 87 << device_scale_ <<", css_scale=" << css_scale_; in HandleMessage() 97 pp::Point position_device(position.x() * device_scale_, in HandleMouseDown() 98 position.y() * device_scale_); in HandleMouseDown() 123 if (device_scale_ > 0.0f) { in SetupGraphics() 127 device_context_.SetScale(1.0f / device_scale_); in SetupGraphics() [all …]
|
/external/chromium_org/pdf/ |
D | number_image_generator.cc | 20 device_scale_(1.0f) { in NumberImageGenerator() 30 device_scale_ = device_scale; in Configure() 43 extra_width += static_cast<int>(kPageNumberSeparator * device_scale_); in GenerateImage() 66 pp::Point origin(static_cast<int>(kPageNumberOriginX * device_scale_), in GenerateImage() 67 static_cast<int>(kPageNumberOriginY * device_scale_)); in GenerateImage() 76 static_cast<int>(kPageNumberSeparator * device_scale_), 0); in GenerateImage()
|
D | instance.cc | 276 device_scale_(1.0), in Instance() 389 ScalePoint(device_scale_, &point); in HandleInputEvent() 390 ScalePoint(device_scale_, &movement); in HandleInputEvent() 621 float old_device_scale = device_scale_; in DidChangeView() 626 if (view_device_size == plugin_size_ && device_scale == device_scale_) in DidChangeView() 630 device_scale_ = device_scale; in DidChangeView() 634 paint_manager_.SetSize(view_device_size, device_scale_); in DidChangeView() 663 ScalePoint(device_scale_, &offset_point); in GetLinkAtPosition() 690 ScaleRect(device_scale_, &dirty_rect_scaled); in InvalidateWidget() 721 OnGeometryChanged(zoom_, device_scale_); in ScrollbarOverlayChanged() [all …]
|
D | out_of_process_instance.cc | 232 device_scale_(1.0), in OutOfProcessInstance() 366 engine_->ScrolledToXPosition(scroll_offset.x() * device_scale_); in HandleMessage() 367 engine_->ScrolledToYPosition(scroll_offset.y() * device_scale_); in HandleMessage() 445 ScalePoint(device_scale_, &point); in HandleInputEvent() 446 ScalePoint(device_scale_, &movement); in HandleInputEvent() 507 float old_device_scale = device_scale_; in DidChangeView() 512 if (view_device_size != plugin_size_ || device_scale != device_scale_) { in DidChangeView() 513 device_scale_ = device_scale; in DidChangeView() 517 paint_manager_.SetSize(view_device_size, device_scale_); in DidChangeView() 541 engine_->ScrolledToXPosition(scroll_offset.x() * device_scale_); in DidChangeView() [all …]
|
D | paint_manager.cc | 26 device_scale_(1.0), in PaintManager() 139 return has_pending_resize_ ? pending_device_scale_ : device_scale_; in GetEffectiveDeviceScale() 192 device_scale_ = pending_device_scale_; in DoPaint()
|
D | progress_control.cc | 37 device_scale_(1.0) { in ProgressControl() 66 device_scale_ = device_scale; in Reconfigure() 69 device_scale_, &ctrl_size, &image_rc_, &text_rc_); in Reconfigure() 187 description.set_size(ScaleInt(kProgressTextSize, device_scale_)); in PrepareBackground()
|
D | number_image_generator.h | 31 float device_scale_; variable
|
D | progress_control.h | 61 float device_scale_; variable
|
D | paint_manager.h | 193 float device_scale_; variable
|
D | out_of_process_instance.h | 234 float device_scale_; // Current device scale factor. variable
|
D | instance.h | 375 float device_scale_; // Current device scale factor. variable
|
/external/chromium_org/native_client_sdk/src/examples/api/graphics_2d/ |
D | graphics_2d.cc | 52 device_scale_(1.0f) {} in Graphics2DInstance() 66 device_scale_ = view.GetDeviceScale(); in DidChangeView() 67 pp::Size new_size = pp::Size(view.GetRect().width() * device_scale_, in DidChangeView() 68 view.GetRect().height() * device_scale_); in DidChangeView() 92 mouse_ = pp::Point(mouse_event.GetPosition().x() * device_scale_, in HandleInputEvent() 93 mouse_event.GetPosition().y() * device_scale_); in HandleInputEvent() 121 context_.SetScale(1.0f / device_scale_); in CreateContext() 192 int radius = kMouseRadius * device_scale_; in DrawMouse() 271 float device_scale_; member in Graphics2DInstance
|