HomeSort by relevance Sort by last modified time
    Searched refs:canvas (Results 351 - 375 of 2002) sorted by null

<<11121314151617181920>>

  /external/skia/tests/
PictureTest.cpp 66 SkCanvas* canvas = recorder.beginRecording(100, 100); local
68 canvas->drawRect(SkRect::MakeWH(10, 10), SkPaint ());
73 canvas = recorder.beginRecording(100, 100);
87 canvas->drawRect(SkRect::MakeWH(10, 10), paint);
117 static void rand_op(SkCanvas* canvas, SkRandom& rand) {
124 canvas->save();
127 canvas->restore();
130 canvas->clipRect(rect);
133 canvas->drawPaint(paint);
142 SkCanvas* canvas = recorder.beginRecording(100, 100) local
483 SkCanvas* canvas = recorder.beginRecording(100,100); local
611 SkCanvas* canvas = recorder2.beginRecording(10, 10); local
664 SkCanvas* canvas = recorder.beginRecording(10, 10); local
687 SkCanvas* canvas = recorder.beginRecording(10, 10); local
717 SkCanvas* canvas = recorder.beginRecording(4, 3, nullptr, 0); local
746 SkCanvas* canvas = recorder.beginRecording(100, 100); local
763 SkCanvas* canvas = recorder.beginRecording(100, 100); local
783 SkCanvas* canvas = recorder.beginRecording(100, 100); local
802 SkCanvas* canvas = recorder.beginRecording(100, 100); local
813 SkCanvas* canvas = recorder.beginRecording(100, 100); local
840 SkCanvas canvas; local
847 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(bitmap.width()), local
960 SkCanvas* canvas = recorder.beginRecording(10, 10); local
970 SkCanvas* canvas = recorder.beginRecording(10, 10); local
981 SkCanvas* canvas = recorder.beginRecording(10, 10); local
992 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1002 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1015 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1031 SkCanvas* canvas = recorder.beginRecording(bounds, &factory); local
1101 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1134 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1140 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1146 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1153 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1170 SkCanvas* canvas = recorder.beginRecording(1, 1); local
1182 SkCanvas* canvas = recorder.beginRecording(10, 10); local
1273 SkCanvas* canvas = recorder.beginRecording(100, 100); local
1361 SkCanvas* canvas = rec.beginRecording(1920, 1200); local
    [all...]
PDFDocumentTest.cpp 30 SkCanvas* canvas = doc->beginPage(100, 100); local
31 canvas->drawColor(SK_ColorRED);
54 SkCanvas* canvas = doc->beginPage(100, 100); local
55 canvas->drawColor(SK_ColorRED);
80 SkCanvas* canvas = doc->beginPage(100, 100); local
82 canvas->drawColor(SK_ColorRED);
98 SkCanvas* canvas = doc->beginPage(100, 100); local
99 canvas->drawColor(SK_ColorRED);
142 SkCanvas* canvas = doc->beginPage(64, 64); local
143 canvas->drawBitmap(bm, 0, 0)
162 SkCanvas* canvas = doc->beginPage(64, 64); local
    [all...]
CanvasStateTest.cpp 105 SkCanvas canvas(bitmaps[j]);
107 canvas.drawColor(SK_ColorRED);
116 canvas.saveLayer(SkCanvas::SaveLayerRec(&rect, paint.getMaybeNull(), flags[k]));
120 SkCanvasState* state = SkCanvasStateUtils::CaptureCanvasState(&canvas);
132 complex_layers_draw(&canvas, rect.fLeft, rect.fTop,
136 canvas.restore();
138 // translate the canvas for the next iteration
139 canvas.translate(0, 2*(rect.height() + SPACER));
210 SkCanvas canvas(bitmaps[i]);
212 canvas.drawColor(SK_ColorRED)
    [all...]
  /frameworks/support/v7/cardview/gingerbread/android/support/v7/widget/
RoundRectDrawableWithShadow.java 20 import android.graphics.Canvas;
49 * Prior to API 17, canvas.drawRoundRect is expensive; which is why we need this interface
241 public void draw(Canvas canvas) {
246 canvas.translate(0, mRawShadowSize / 2);
247 drawShadow(canvas);
248 canvas.translate(0, -mRawShadowSize / 2);
249 sRoundRectHelper.drawRoundRect(canvas, mCardBounds, mCornerRadius, mPaint);
252 private void drawShadow(Canvas canvas) {
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/idlelib/
TreeWidget.py 4 # - key bindings (instead of quick-n-dirty bindings on Canvas):
61 def __init__(self, canvas, parent, item):
62 self.canvas = canvas
85 image = PhotoImage(master=self.canvas, file=fullname)
94 self.canvas.delete(self.image_id)
102 self.canvas.delete(self.image_id)
143 visible_top = self.canvas.canvasy(0)
144 visible_height = self.canvas.winfo_height()
145 visible_bottom = self.canvas.canvasy(visible_height
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/idlelib/
TreeWidget.py 4 # - key bindings (instead of quick-n-dirty bindings on Canvas):
61 def __init__(self, canvas, parent, item):
62 self.canvas = canvas
85 image = PhotoImage(master=self.canvas, file=fullname)
94 self.canvas.delete(self.image_id)
102 self.canvas.delete(self.image_id)
143 visible_top = self.canvas.canvasy(0)
144 visible_height = self.canvas.winfo_height()
145 visible_bottom = self.canvas.canvasy(visible_height
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/
TreeWidget.py 4 # - key bindings (instead of quick-n-dirty bindings on Canvas):
61 def __init__(self, canvas, parent, item):
62 self.canvas = canvas
85 image = PhotoImage(master=self.canvas, file=fullname)
94 self.canvas.delete(self.image_id)
102 self.canvas.delete(self.image_id)
143 visible_top = self.canvas.canvasy(0)
144 visible_height = self.canvas.winfo_height()
145 visible_bottom = self.canvas.canvasy(visible_height
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/
TreeWidget.py 4 # - key bindings (instead of quick-n-dirty bindings on Canvas):
61 def __init__(self, canvas, parent, item):
62 self.canvas = canvas
85 image = PhotoImage(master=self.canvas, file=fullname)
94 self.canvas.delete(self.image_id)
102 self.canvas.delete(self.image_id)
143 visible_top = self.canvas.canvasy(0)
144 visible_height = self.canvas.winfo_height()
145 visible_bottom = self.canvas.canvasy(visible_height
    [all...]
  /external/skia/samplecode/
SampleMeasure.cpp 37 static void doMeasure(SkCanvas* canvas, const SkPaint& paint, const char text[]) {
57 canvas->drawRect(bounds, p);
59 canvas->drawText(text, len, 0, 0, p);
68 canvas->drawRect(r, p);
73 canvas->drawLine(0, 0, w, 0, p);
75 canvas->drawPoint(x, 0, p);
77 canvas->translate(0, dy);
101 virtual void onDrawContent(SkCanvas* canvas) {
102 canvas->translate(fPaint.getTextSize(), fPaint.getTextSize());
103 doMeasure(canvas, fPaint, "Hamburgefons")
    [all...]
SampleFuzz.cpp 140 static void do_fuzz(SkCanvas* canvas) {
209 canvas->restore();
213 canvas->rotate(make_number());
217 canvas->save();
221 canvas->scale(-1,-1);
230 canvas->translate(transval,0);
232 canvas->translate(-transval,0);
243 canvas->drawRect(r, paint);
258 canvas->drawRect(r, paint);
277 canvas->drawPath(path, paint)
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
Alpha8BitmapActivity.java 24 import android.graphics.Canvas;
52 Canvas canvas = new Canvas(mBitmap1); local
53 canvas.drawBitmap(texture, 0.0f, 0.0f, null);
75 protected void onDraw(Canvas canvas) {
76 super.onDraw(canvas);
78 canvas.drawColor(0xffffffff);
79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint)
    [all...]
BitmapsAlphaActivity.java 23 import android.graphics.Canvas;
65 protected void onDraw(Canvas canvas) {
66 super.onDraw(canvas);
70 canvas.translate(120.0f, 50.0f);
71 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
73 canvas.translate(0.0f, mBitmap1.getHeight());
74 canvas.translate(0.0f, 25.0f);
75 canvas.drawBitmap(mBitmap2, 0.0f, 0.0f, null);
77 canvas.translate(0.0f, mBitmap2.getHeight())
    [all...]
ThinPatchesActivity.java 22 import android.graphics.Canvas;
74 protected void onDraw(Canvas canvas) {
81 canvas.save();
82 canvas.translate(0.0f, -height * 2 - 20.0f);
85 mPatch3.draw(canvas);
87 canvas.restore();
90 mPatch1.draw(canvas);
92 canvas.save();
93 canvas.translate(0.0f, height + 20.0f)
    [all...]
BitmapsActivity.java 23 import android.graphics.Canvas;
79 protected void onDraw(Canvas canvas) {
80 super.onDraw(canvas);
82 canvas.translate(120.0f, 50.0f);
83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
85 canvas.translate(0.0f, mBitmap1.getHeight());
86 canvas.translate(0.0f, 25.0f);
87 canvas.drawBitmap(mBitmap2, 0.0f, 0.0f, null);
90 canvas.translate(0.0f, mBitmap2.getHeight())
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
SurfaceTextureScreenNail.java 45 public void acquireSurfaceTexture(GLCanvas canvas) {
46 mExtTexture = new ExtTexture(canvas, GL_TEXTURE_EXTERNAL_OES);
108 public void draw(GLCanvas canvas, int x, int y, int width, int height) {
115 canvas.save(GLCanvas.SAVE_FLAG_MATRIX);
118 canvas.translate(cx, cy);
119 canvas.scale(1, -1, 1);
120 canvas.translate(-cx, -cy);
122 canvas.drawTexture(mExtTexture, mTransform, x, y, width, height);
123 canvas.restore();
128 public void draw(GLCanvas canvas, RectF source, RectF dest)
    [all...]
  /frameworks/base/libs/hwui/tests/unit/
FrameBuilderTests.cpp 131 [](RenderProperties& props, RecordingCanvas& canvas) {
133 canvas.drawRect(0, 0, 100, 200, SkPaint());
134 canvas.drawBitmap(bitmap, 10, 10, nullptr);
159 [](RenderProperties& props, RecordingCanvas& canvas) {
162 canvas.drawPoint(50, 50, strokedPaint);
175 [](RenderProperties& props, RecordingCanvas& canvas) {
176 canvas.save(SaveFlags::MatrixClip);
177 canvas.clipRect(200, 200, 400, 400, SkRegion::kIntersect_Op); // intersection should be empty
178 canvas.drawRect(0, 0, 400, 400, SkPaint());
179 canvas.restore()
    [all...]
  /external/skia/gm/
imagefiltersclipped.cpp 51 SkCanvas* canvas = surface->getCanvas(); local
52 canvas->clear(0x00000000);
62 canvas->drawCircle(x, y, radius, paint);
66 static void draw_clipped_filter(SkCanvas* canvas, SkImageFilter* filter, size_t i,
72 canvas->save();
73 canvas->clipRect(clipBounds);
75 canvas->translate(SkIntToScalar(16), SkIntToScalar(-32));
77 canvas->scale(SkScalarInvert(RESIZE_FACTOR_X),
80 canvas->drawCircle(primBounds.centerX(), primBounds.centerY(),
82 canvas->restore()
    [all...]
megalooper.cpp 51 virtual void onDraw(SkCanvas* canvas) {
56 draw0x0(canvas, SkIntToScalar(x), SkIntToScalar(y));
59 draw4x1(canvas, SkIntToScalar(x), SkIntToScalar(y));
63 draw1x4(canvas, SkIntToScalar(x), SkIntToScalar(y));
83 void draw0x0(SkCanvas* canvas, SkScalar x, SkScalar y) {
93 canvas->save();
94 canvas->clipRect(outerClip, SkRegion::kIntersect_Op);
95 canvas->clipRect(innerClip, SkRegion::kDifference_Op);
107 canvas->drawRect(rect, paint);
110 canvas->restore()
    [all...]
bitmapcopy.cpp 30 static void draw_checks(SkCanvas* canvas, int width, int height) {
33 canvas->drawRectCoords(SkIntToScalar(0), SkIntToScalar(0),
36 canvas->drawRectCoords(SkIntToScalar(width / 2), SkIntToScalar(0),
39 canvas->drawRectCoords(SkIntToScalar(0), SkIntToScalar(height / 2),
42 canvas->drawRectCoords(SkIntToScalar(width / 2), SkIntToScalar(height / 2),
63 virtual void onDraw(SkCanvas* canvas) {
78 canvas->clear(sk_tool_utils::color_to_565(0xFFDDDDDD));
96 canvas->translate(SkIntToScalar(20), SkIntToScalar(20));
99 canvas->save();
105 canvas->drawText(name, strlen(name), x, y, paint)
    [all...]
filterindiabox.cpp 26 static void draw_cell(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx,
31 SkAutoCanvasRestore acr(canvas, true);
33 canvas->translate(dx, 0);
34 canvas->concat(mat);
35 canvas->drawBitmap(bm, 0, 0, &paint);
38 static void draw_row(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx) {
39 draw_cell(canvas, bm, mat, 0 * dx, kNone_SkFilterQuality);
40 draw_cell(canvas, bm, mat, 1 * dx, kLow_SkFilterQuality);
41 draw_cell(canvas, bm, mat, 2 * dx, kMedium_SkFilterQuality);
42 draw_cell(canvas, bm, mat, 3 * dx, kHigh_SkFilterQuality)
    [all...]
  /frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
GlifPatternDrawableTest.java 20 import android.graphics.Canvas;
46 final Canvas canvas = new Canvas(bitmap); local
50 drawable.draw(canvas);
64 final Canvas canvas = new Canvas(bitmap); local
68 drawable.draw(canvas);
72 canvas.drawRect(0, 0, 1366, 768, paint); // Erase the entire canva
84 final Canvas canvas = new Canvas(); local
100 final Canvas canvas = new Canvas(); local
117 final Canvas canvas = new Canvas(); local
134 final Canvas canvas = new Canvas(); local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
PictureLayout.java 20 import android.graphics.Canvas;
108 private void drawPict(Canvas canvas, int x, int y, int w, int h,
110 canvas.save();
111 canvas.translate(x, y);
112 canvas.clipRect(0, 0, w, h);
113 canvas.scale(0.5f, 0.5f);
114 canvas.scale(sx, sy, w, h);
115 canvas.drawPicture(mPicture);
116 canvas.restore()
    [all...]
UnicodeChart.java 82 private void drawChart(Canvas canvas, int base) {
88 canvas.drawText(Integer.toHexString(unichar),
91 canvas.drawPosText(chars, 0, 256, mPos, mBigCharPaint);
94 @Override protected void onDraw(Canvas canvas) {
95 canvas.drawColor(Color.WHITE);
97 canvas.translate(0, 1);
98 drawChart(canvas, mBase * 256);
  /external/skia/bench/
LightingBench.cpp 23 void draw(int loops, SkCanvas* canvas, SkImageFilter* imageFilter) const {
29 canvas->drawRect(r, paint);
110 void onDraw(int loops, SkCanvas* canvas) override {
111 draw(loops, canvas, SkLightingImageFilter::CreatePointLitDiffuse(GetPointLocation(),
131 void onDraw(int loops, SkCanvas* canvas) override {
132 draw(loops, canvas, SkLightingImageFilter::CreateDistantLitDiffuse(GetDistantDirection(),
152 void onDraw(int loops, SkCanvas* canvas) override {
153 draw(loops, canvas, SkLightingImageFilter::CreateSpotLitDiffuse(GetSpotLocation(),
176 void onDraw(int loops, SkCanvas* canvas) override {
177 draw(loops, canvas, SkLightingImageFilter::CreatePointLitSpecular(GetPointLocation()
    [all...]
  /external/skia/resources/
slides.lua 31 function draw_bullet(canvas, x, y, paint, indent)
39 canvas:drawCircle(cx, cy, radius, paint)
42 function stroke_rect(canvas, rect, color)
46 canvas:drawRect(rect, paint)
49 function drawSlide(canvas, slide, master_template)
53 canvas:drawText(slide[1].text, 320, 240, template[1])
71 canvas:drawText(node.text, x, y, paint)
86 draw_bullet(canvas, x + x_offset, y - fm.ascent, paint, node.indent)
87 canvas:drawTextBlob(blob, 0, 0, paint)
92 stroke_rect(canvas, bounds, {a=1,r=0,g=1,b=0}
    [all...]

Completed in 1653 milliseconds

<<11121314151617181920>>