Home | History | Annotate | Download | only in gfx

Lines Matching defs:Canvas

28 // Canvas is a SkCanvas wrapper that provides a number of methods for
41 class GFX_EXPORT Canvas {
87 // Creates an empty canvas with image_scale of 1x.
88 Canvas();
90 // Creates canvas with provided DIP |size| and |image_scale|.
91 // If this canvas is not opaque, it's explicitly cleared to transparent before
93 Canvas(const Size& size, float image_scale, bool is_opaque);
95 // Constructs a canvas with the size and the image_scale of the provided
97 Canvas(const ImageSkiaRep& image_rep, bool is_opaque);
99 virtual ~Canvas();
101 // Creates a Canvas backed by an |sk_canvas| with |image_scale_|.
104 static Canvas* CreateCanvasWithoutScaling(SkCanvas* sk_canvas,
107 // Recreates the backing platform canvas with DIP |size| and |image_scale_|.
108 // If the canvas is not opaque, it is explicitly cleared.
110 // canvas after having initialized the canvas.
152 // Canvas based on the directionality of the system locale language.
153 // This function is used by Canvas::DrawStringRect when the text alignment
156 // This function returns either Canvas::TEXT_ALIGN_LEFT or
157 // Canvas::TEXT_ALIGN_RIGHT.
176 // Extracts an ImageSkiaRep from the contents of this canvas.
186 // As with Save(), except draws to a layer that is blended with the canvas
215 // Fills the entire canvas' bitmap (restricted to current clip) with
219 // Fills the entire canvas' bitmap (restricted to current clip) with
268 // Parameters are specified relative to current canvas scale not in pixels.
269 // Thus, x is 2 pixels if canvas scale = 2 & |x| = 1.
279 // Parameters are specified relative to current canvas scale not in pixels.
280 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1.
296 // Parameters are specified relative to current canvas scale not in pixels.
297 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1.
338 // Parameters are specified relative to current canvas scale not in pixels.
339 // Thus, x is 2 pixels if canvas scale = 2 & |x| = 1.
364 // Currently it's only implemented for canvas skia. Specifying a 0 line_height
382 // Parameters are specified relative to current canvas scale not in pixels.
383 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1.
414 // Apply transformation on the canvas.
429 Canvas(SkCanvas* canvas, float image_scale);
452 // The device scale factor at which drawing on this canvas occurs.
453 // An additional scale can be applied via Canvas::Scale(). However,
454 // Canvas::Scale() does not affect |image_scale_|.
460 DISALLOW_COPY_AND_ASSIGN(Canvas);