Home
last modified time | relevance | path

Searched refs:image_scale (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/ui/gfx/
Dcanvas.cc27 Canvas::Canvas(const Size& size, float image_scale, bool is_opaque) in Canvas() argument
28 : image_scale_(image_scale), in Canvas()
30 Size pixel_size = ToCeiledSize(ScaleSize(size, image_scale)); in Canvas()
42 SkScalar scale_scalar = SkFloatToScalar(image_scale); in Canvas()
69 float image_scale) { in CreateCanvasWithoutScaling() argument
70 return new Canvas(canvas, image_scale); in CreateCanvasWithoutScaling()
74 float image_scale, in RecreateBackingCanvas() argument
76 image_scale_ = image_scale; in RecreateBackingCanvas()
77 Size pixel_size = ToFlooredSize(ScaleSize(size, image_scale)); in RecreateBackingCanvas()
82 SkScalar scale_scalar = SkFloatToScalar(image_scale); in RecreateBackingCanvas()
[all …]
Dcanvas.h93 Canvas(const Size& size, float image_scale, bool is_opaque);
105 float image_scale);
114 float image_scale,
426 float image_scale() const { return image_scale_; } in image_scale() function
429 Canvas(SkCanvas* canvas, float image_scale);
449 float image_scale,
Dnine_image_painter.cc28 return i.GetRepresentation(c->image_scale()).pixel_width(); in ImageWidthInPixels()
32 return i.GetRepresentation(c->image_scale()).pixel_height(); in ImageHeightInPixels()
Dcanvas_skia.cc324 Canvas text_canvas(size, image_scale(), false); in DrawStringRectWithHalo()
355 text_canvas.image_scale())); in DrawStringRectWithHalo()
/external/chromium_org/chrome/browser/extensions/api/notifications/
Dnotifications_api.cc199 float image_scale = in CreateNotification() local
210 image_scale, in CreateNotification()
222 image_scale, in CreateNotification()
246 image_scale, in CreateNotification()
260 image_scale, in CreateNotification()
331 float image_scale = in UpdateNotification() local
346 image_scale, bitmap_sizes.icon_size, options->icon_bitmap.get(), &icon); in UpdateNotification()
352 image_scale, in UpdateNotification()
375 image_scale, in UpdateNotification()
391 image_scale, in UpdateNotification()
/external/chromium_org/ui/views/controls/
Dimage_view.cc20 void* GetBitmapPixels(const gfx::ImageSkia& img, float image_scale) { in GetBitmapPixels() argument
21 DCHECK_NE(0.0f, image_scale); in GetBitmapPixels()
22 const SkBitmap& bitmap = img.GetRepresentation(image_scale).sk_bitmap(); in GetBitmapPixels()
213 last_paint_scale_ = canvas->image_scale(); in OnPaintImage()
Dglow_hover_controller.cc86 canvas->image_scale(), in Draw()
/external/chromium_org/ui/base/
Dlayout.h49 UI_BASE_EXPORT ScaleFactor GetSupportedScaleFactor(float image_scale);
/external/chromium_org/chrome/browser/ui/views/
Ddropdown_bar_view.cc114 canvas->image_scale(), in OnPaint()
/external/chromium_org/ash/frame/caption_buttons/
Dframe_caption_button.cc132 gfx::Canvas icon_canvas(icon_image.size(), canvas->image_scale(), false); in OnPaint()
/external/chromium_org/chrome/common/
Dbadge_util.cc119 float scale = canvas->image_scale(); in PaintBadge()
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab.cc1114 gfx::Canvas background_canvas(size(), canvas->image_scale(), false); in PaintInactiveTabBackgroundWithTitleChange()
1120 gfx::Canvas hover_canvas(size(), canvas->image_scale(), false); in PaintInactiveTabBackgroundWithTitleChange()
1184 ui::GetSupportedScaleFactor(canvas->image_scale()); in PaintInactiveTabBackground()
1187 gfx::Canvas tmp_canvas(size(), canvas->image_scale(), false); in PaintInactiveTabBackground()
1223 gfx::Canvas background_canvas(size(), canvas->image_scale(), false); in PaintInactiveTabBackgroundUsingResourceId()
Dtab_strip.cc315 gfx::ImageSkia image = GetImageForScale(canvas->image_scale()); in OnPaint()
/external/chromium_org/ash/frame/
Ddefault_header_painter.cc290 float thickness = 1 / canvas->image_scale(); in PaintHeaderContentSeparator()
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_header_painter_ash.cc95 gfx::Canvas temporary_canvas(bounds.size(), canvas->image_scale(), false); in PaintFrameImagesInRoundRect()
Dbrowser_view.cc203 canvas->image_scale(); in PaintDetachedBookmarkBar()
/external/chromium_org/ui/base/x/
Dx11_util.cc1211 gfx::ImageSkiaRep image_rep(bitmap, canvas->image_scale()); in CopyAreaToCanvas()