HomeSort by relevance Sort by last modified time
    Searched defs:Canvas (Results 1 - 25 of 70) sorted by null

1 2 3

  /frameworks/base/libs/hwui/hwui/
Canvas.h 53 // These must match the corresponding Canvas API constants.
82 class ANDROID_API Canvas {
84 virtual ~Canvas(){};
86 static Canvas* create_canvas(const SkBitmap& bitmap);
89 * Create a new Canvas object that records view system drawing operations for deferred
90 * rendering. A canvas returned by this call supports calls to the resetRecording(...) and
94 * @param width of the requested Canvas.
95 * @param height of the requested Canvas.
97 * DisplayList produced by the returned Canvas. This enables the reuse of select C++
99 * @return new non-null Canvas Object. The type of DisplayList produced by this canvas i
    [all...]
  /frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
PaintMeasureTextTest.java 19 import android.graphics.Canvas;
79 Canvas.freeTextLayoutCaches();
85 Canvas.freeTextLayoutCaches();
  /external/skia/experimental/go-skia/
skia.go 53 func (s *Surface) Canvas() *Canvas {
54 return &Canvas{
94 // Canvas
96 type Canvas struct {
101 func (c *Canvas) DrawPaint(paint *Paint) {
105 func (c *Canvas) DrawOval(rect *Rect, paint *Paint) {
110 func (c *Canvas) DrawRect(rect *Rect, paint *Paint) {
115 func (c *Canvas) DrawPath(path *Path, paint *Paint) {
  /external/skqp/experimental/go-skia/
skia.go 53 func (s *Surface) Canvas() *Canvas {
54 return &Canvas{
94 // Canvas
96 type Canvas struct {
101 func (c *Canvas) DrawPaint(paint *Paint) {
105 func (c *Canvas) DrawOval(rect *Rect, paint *Paint) {
110 func (c *Canvas) DrawRect(rect *Rect, paint *Paint) {
115 func (c *Canvas) DrawPath(path *Path, paint *Paint) {
  /frameworks/base/apct-tests/perftests/core/src/android/text/
BoringLayoutIsBoringPerfTest.java 18 import android.graphics.Canvas;
88 Canvas.freeTextLayoutCaches();
95 if (!mCached) Canvas.freeTextLayoutCaches();
PaintMeasureDrawPerfTest.java 18 import android.graphics.Canvas;
37 * Performance test for single line measure and draw using {@link Paint} and {@link Canvas}.
79 Canvas.freeTextLayoutCaches();
86 if (!mCached) Canvas.freeTextLayoutCaches();
94 * Measures the time for {@link Canvas#drawText(String, float, float, Paint)}
101 Canvas.freeTextLayoutCaches();
110 final DisplayListCanvas canvas = node.start(1200, 200); local
111 final int save = canvas.save();
112 if (!mCached) Canvas.freeTextLayoutCaches();
115 canvas.drawText(text, 0 /*x*/, 100 /*y*/, mTextPaint)
    [all...]
BoringLayoutCreateDrawPerfTest.java 20 import android.graphics.Canvas;
88 Canvas.freeTextLayoutCaches();
98 if (!mCached) Canvas.freeTextLayoutCaches();
113 Canvas.freeTextLayoutCaches();
123 final DisplayListCanvas canvas = node.start(1200, 200); local
124 final int save = canvas.save();
125 if (!mCached) Canvas.freeTextLayoutCaches();
128 layout.draw(canvas);
131 canvas.restoreToCount(save);
132 node.end(canvas);
    [all...]
StaticLayoutCreateDrawPerfTest.java 20 import android.graphics.Canvas;
91 Canvas.freeTextLayoutCaches();
98 if (!mCached) Canvas.freeTextLayoutCaches();
113 Canvas.freeTextLayoutCaches();
122 final DisplayListCanvas canvas = node.start(1200, 200); local
123 int save = canvas.save();
124 if (!mCached) Canvas.freeTextLayoutCaches();
127 layout.draw(canvas);
130 canvas.restoreToCount(save);
131 node.end(canvas);
    [all...]
TextViewSetTextMeasurePerfTest.java 21 import android.graphics.Canvas;
92 Canvas.freeTextLayoutCaches();
102 if (!mCached) Canvas.freeTextLayoutCaches();
118 Canvas.freeTextLayoutCaches();
128 final DisplayListCanvas canvas = node.start(1200, 200); local
129 int save = canvas.save();
132 if (!mCached) Canvas.freeTextLayoutCaches();
135 textView.draw(canvas);
138 canvas.restoreToCount(save);
139 node.end(canvas);
    [all...]
StaticLayoutPerfTest.java 28 import android.graphics.Canvas;
308 Canvas.freeTextLayoutCaches();
325 Canvas.freeTextLayoutCaches();
377 Canvas.freeTextLayoutCaches();
395 Canvas.freeTextLayoutCaches();
  /frameworks/base/apct-tests/perftests/core/src/android/widget/
TextViewPrecomputedTextPerfTest.java 26 import android.graphics.Canvas;
81 public void onDraw(Canvas canvas) {
82 super.onDraw(canvas);
111 Canvas.freeTextLayoutCaches();
131 Canvas.freeTextLayoutCaches();
153 Canvas.freeTextLayoutCaches();
176 Canvas.freeTextLayoutCaches();
194 Canvas.freeTextLayoutCaches();
212 Canvas.freeTextLayoutCaches()
    [all...]
  /external/python/cpython2/Lib/lib-tk/
turtle.py 74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
305 ## helper functions for Scrolled Canvas, to forward Canvas-methods
309 """helper function for Scrolled Canvas"""
319 """helper function for Scrolled Canvas"""
329 """Helper functions for Scrolled Canvas, used to forward
330 ScrolledCanvas-methods to Tkinter.Canvas class.
354 """Modeled after the scrolled canvas class from Grayons's Tkinter book
    [all...]
Tkinter.py 5 widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
    [all...]
  /external/python/cpython3/Lib/
turtle.py 74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
285 ## helper functions for Scrolled Canvas, to forward Canvas-methods
289 """helper function for Scrolled Canvas"""
299 """helper function for Scrolled Canvas"""
330 """Modeled after the scrolled canvas class from Grayons's Tkinter book.
332 Used as the default canvas, which pops up automatically when
342 self._canvas = TK.Canvas(master, width=width, height=height
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Canvas.java 37 * The Canvas class holds the "draw" calls. To draw something, you need
38 * 4 basic components: A Bitmap to hold the pixels, a Canvas to host
45 * <p>For more information about how to use Canvas, read the
47 * Canvas and Drawables</a> developer guide.</p></div>
49 public class Canvas extends BaseCanvas {
75 // a Canvas object.
78 // Use a Holder to allow static initialization of Canvas in the boot image.
81 Canvas.class.getClassLoader(), nGetNativeFinalizer(), NATIVE_ALLOCATION_SIZE);
84 // This field is used to finalize the native Canvas properly
88 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap t
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/lib-tk/
turtle.py 74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
305 ## helper functions for Scrolled Canvas, to forward Canvas-methods
309 """helper function for Scrolled Canvas"""
319 """helper function for Scrolled Canvas"""
329 """Helper functions for Scrolled Canvas, used to forward
330 ScrolledCanvas-methods to Tkinter.Canvas class.
354 """Modeled after the scrolled canvas class from Grayons's Tkinter book
    [all...]
Tkinter.py 5 widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/lib-tk/
turtle.py 74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
305 ## helper functions for Scrolled Canvas, to forward Canvas-methods
309 """helper function for Scrolled Canvas"""
319 """helper function for Scrolled Canvas"""
329 """Helper functions for Scrolled Canvas, used to forward
330 ScrolledCanvas-methods to Tkinter.Canvas class.
354 """Modeled after the scrolled canvas class from Grayons's Tkinter book
    [all...]
Tkinter.py 5 widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib-tk/
turtle.py 74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
305 ## helper functions for Scrolled Canvas, to forward Canvas-methods
309 """helper function for Scrolled Canvas"""
319 """helper function for Scrolled Canvas"""
329 """Helper functions for Scrolled Canvas, used to forward
330 ScrolledCanvas-methods to Tkinter.Canvas class.
354 """Modeled after the scrolled canvas class from Grayons's Tkinter book
    [all...]
Tkinter.py 5 widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/
turtle.py 74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
305 ## helper functions for Scrolled Canvas, to forward Canvas-methods
309 """helper function for Scrolled Canvas"""
319 """helper function for Scrolled Canvas"""
329 """Helper functions for Scrolled Canvas, used to forward
330 ScrolledCanvas-methods to Tkinter.Canvas class.
354 """Modeled after the scrolled canvas class from Grayons's Tkinter book
    [all...]
Tkinter.py 5 widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
CanvasTest.java 30 import android.graphics.Canvas;
31 import android.graphics.Canvas.EdgeType;
32 import android.graphics.Canvas.VertexMode;
83 private Canvas mCanvas;
98 mCanvas = new Canvas(mMutableBitmap);
103 new Canvas();
106 new Canvas(mMutableBitmap);
111 // Should throw out IllegalStateException when creating Canvas with an ImmutableBitmap
112 new Canvas(mImmutableBitmap);
117 // Should throw out RuntimeException when creating Canvas with a MutableBitmap whic
146 Canvas canvas = new Canvas(); local
1757 Canvas canvas = new Canvas(canvasBitmap); local
1770 Canvas canvas = new Canvas(bitmap); local
    [all...]
  /external/python/cpython3/Lib/tkinter/
__init__.py 5 widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
    [all...]

Completed in 399 milliseconds

1 2 3