/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
ColorFiltersMutateActivity.java | 25 import android.graphics.Canvas; 152 protected void onDraw(Canvas canvas) { 153 super.onDraw(canvas); 155 canvas.drawARGB(255, 255, 255, 255); 157 canvas.save(); 158 canvas.translate(120.0f, 50.0f); 159 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mColorMatrixPaint); 161 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); 162 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mLightingPaint) [all...] |
OpaqueActivity.java | 21 import android.graphics.Canvas; 52 protected void onDraw(Canvas canvas) { 53 super.onDraw(canvas); 54 canvas.drawColor(0xffff0000, PorterDuff.Mode.SRC);
|
/cts/tests/acceleration/src/android/acceleration/ |
AcceleratedView.java | 20 import android.graphics.Canvas; 46 protected void onDraw(Canvas canvas) { 47 super.onDraw(canvas); 49 mIsHardwareAccelerated = canvas.isHardwareAccelerated();
|
/external/libgdx/tests/gdx-tests-lwjgl/src/com/badlogic/gdx/tests/lwjgl/ |
LwjglCanvasTest.java | 29 LwjglCanvas canvas; field in class:LwjglCanvasTest 35 canvas = new LwjglCanvas(new UITest()); 37 container.add(canvas.getCanvas(), BorderLayout.CENTER);
|
/external/skia/bench/ |
ImageBench.cpp | 31 void onPerCanvasPreDraw(SkCanvas* canvas) override { 32 // create an Image reflecting the canvas (gpu or cpu) 34 SkAutoTUnref<SkSurface> surface(canvas->newSurface(info)); 35 canvas->drawColor(SK_ColorRED);
|
Benchmark.h | 75 // Called once before and after a series of draw calls to a single canvas. 115 * VisualBench frequently resets the canvas. As a result we need to bulk call all of the hooks 117 void preTimingHooks(SkCanvas* canvas) { 118 this->perCanvasPreDraw(canvas); 119 this->preDraw(canvas); 122 void postTimingHooks(SkCanvas* canvas) { 123 this->postDraw(canvas); 124 this->perCanvasPostDraw(canvas);
|
RectoriBench.cpp | 28 void onDraw(int loops, SkCanvas* canvas) override { 59 canvas->save(); 61 canvas->clipRect(inner); 62 canvas->translate(translate, 0); 63 canvas->drawPath(p, paint); 64 canvas->restore();
|
/external/skia/gm/ |
bigtext.cpp | 31 void onDraw(SkCanvas* canvas) override { 45 canvas->drawText("/", 1, pos.fX, pos.fY, paint); 48 canvas->drawPosText("\\", 1, &pos, paint);
|
cmykjpeg.cpp | 53 virtual void onDraw(SkCanvas* canvas) override { 55 canvas->translate(20*SK_Scalar1, 20*SK_Scalar1); 56 canvas->drawBitmap(fBitmap, 0, 0);
|
surface.cpp | 42 static void test_draw(SkCanvas* canvas, const char label[]) { 50 canvas->drawRect(SkRect::MakeWH(W, H), paint); 57 canvas->drawText(label, strlen(label), W / 2, H * 3 / 4, paint); 73 void onDraw(SkCanvas* canvas) override { 74 GrContext* ctx = canvas->getGrContext(); 98 surface->draw(canvas, x, y, nullptr); 130 static void drawInto(SkCanvas* canvas) { 131 canvas->drawColor(SK_ColorRED); 134 void onDraw(SkCanvas* canvas) override { 137 SkAutoTUnref<SkSurface> surf(canvas->newSurface(info, nullptr)) [all...] |
xfermodes2.cpp | 29 void onDraw(SkCanvas* canvas) override { 30 canvas->translate(SkIntToScalar(10), SkIntToScalar(20)); 48 canvas->save(); 50 canvas->translate(x, y); 56 canvas->drawRect(r, p); 58 canvas->saveLayer(&r, nullptr); 61 canvas->drawRect(r, p); 64 canvas->drawRect(r, p); 66 canvas->restore(); 72 canvas->drawRect(r, p) [all...] |
avoidxfermode.cpp | 43 void onDraw(SkCanvas* canvas) override { 44 canvas->drawBitmap(fBM, 0, 0); 55 canvas->drawRect(r, p1); 66 canvas->drawRect(r, p2); 77 canvas->drawRect(r, p3); 88 canvas->drawRect(r, p4);
|
convexpolyclip.cpp | 20 SkCanvas canvas(bmp); 53 canvas.drawRect(rect, paint); 66 canvas.drawText(kTxt, SK_ARRAY_COUNT(kTxt)-1, texPos.fX, texPos.fY, paint); 70 canvas.drawText(kTxt, SK_ARRAY_COUNT(kTxt)-1, texPos.fX, texPos.fY, paint); 141 void onDraw(SkCanvas* canvas) override { 147 SkISize size = canvas->getDeviceSize(); 148 canvas->drawBitmapRect(fBmp, SkRect::MakeIWH(size.fWidth, size.fHeight), &bgPaint); 172 canvas->saveLayer(&bounds, nullptr); 174 canvas->save(); 176 canvas->translate(x, y) [all...] |
hairlines.cpp | 165 void onDraw(SkCanvas* canvas) override { 175 canvas->translate(SkIntToScalar(kMargin), SkIntToScalar(kMargin)); 176 canvas->save(); 186 canvas->restore(); 187 canvas->translate(0, maxH + SkIntToScalar(kMargin)); 188 canvas->save(); 199 canvas->save(); 200 canvas->translate(-bounds.fLeft, -bounds.fTop); 201 canvas->drawPath(fPaths[p], paint); 202 canvas->restore() [all...] |
pixelxorxfermode.cpp | 43 void onDraw(SkCanvas* canvas) override { 44 canvas->drawBitmap(fBM, 0, 0); 54 canvas->drawRect(r, p1); 63 canvas->drawRect(r, p2); 72 canvas->drawRect(r, p3); 82 canvas->drawRect(r, p4);
|
/external/skia/samplecode/ |
Sample2PtRadial.cpp | 28 virtual void onDrawContent(SkCanvas* canvas) { 29 canvas->translate(SkIntToScalar(10), SkIntToScalar(20)); 42 canvas->drawPaint(paint);
|
SampleBlur.cpp | 72 void drawBG(SkCanvas* canvas) { 73 canvas->drawColor(0xFFDDDDDD); 76 virtual void onDrawContent(SkCanvas* canvas) { 77 drawBG(canvas); 94 canvas->translate(-40, 0); 98 canvas->save(); 109 canvas->drawCircle(200 + gRecs[i].fCx*100.f, 121 canvas->drawText("Hamburgefons Style", 18, x, y, paint); 122 canvas->drawText("Hamburgefons Style", 18, x, y + SkIntToScalar(50), paint); 127 canvas->drawText("Hamburgefons Style", 18, x, y, paint) [all...] |
SampleClamp.cpp | 45 virtual void onDrawContent(SkCanvas* canvas) { 49 // canvas->translate(this->width()/2, this->height()/2); 50 canvas->translate(64, 64); 51 canvas->drawPaint(paint);
|
SampleUnpremul.cpp | 78 void onDrawBackground(SkCanvas* canvas) override { 79 sk_tool_utils::draw_checkerboard(canvas, 0xFFCCCCCC, 0xFFFFFFFF, 12); 82 void onDrawContent(SkCanvas* canvas) override { 99 canvas->drawText(failure.c_str(), failure.size(), 0, height, paint); 107 canvas->drawText(header.c_str(), header.size(), 0, height, paint); 108 canvas->translate(0, height); 112 canvas->drawText(header.c_str(), header.size(), 0, height, paint); 113 canvas->translate(0, height); 116 canvas->drawText(header.c_str(), header.size(), 0, height, paint); 119 canvas->translate(height * 2, height * 2) [all...] |
/external/skia/tools/debugger/ |
SkDrawCommand.h | 101 virtual bool render(SkCanvas* canvas) const { return false; } 126 void execute(SkCanvas* canvas) const override; 137 void execute(SkCanvas* canvas) const override; 150 void execute(SkCanvas* canvas) const override; 151 bool render(SkCanvas* canvas) const override; 166 void execute(SkCanvas* canvas) const override; 180 void execute(SkCanvas* canvas) const override; 199 void execute(SkCanvas* canvas) const override; 200 bool render(SkCanvas* canvas) const override; 219 void execute(SkCanvas* canvas) const override [all...] |
/external/skia/tools/skiaserve/urlhandlers/ |
BreakHandler.cpp | 23 SkCanvas* canvas = request->getCanvas(); local 24 canvas->flush(); 25 SkAutoTDelete<SkBitmap> bitmap(request->getBitmapFromCanvas(canvas)); 56 SkCanvas* canvas = request->getCanvas(); 57 canvas->clear(SK_ColorWHITE); 58 int saveCount = canvas->save(); 60 request->fDebugCanvas->getDrawCommandAt(i)->execute(canvas); 75 // reset canvas for wraparound 76 canvas->restoreToCount(saveCount); 77 canvas->clear(SK_ColorWHITE) [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
MainView.java | 20 import android.graphics.Canvas; 41 protected void onDraw(Canvas canvas) { 42 super.onDraw(canvas); 45 DisplayModifier.apply(mPaint, canvas);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
SimpleMonthView.java | 20 import android.graphics.Canvas; 31 public void drawMonthDay(Canvas canvas, int year, int month, int day, 34 canvas.drawCircle(x , y - (MINI_DAY_NUMBER_TEXT_SIZE / 3), DAY_SELECTED_CIRCLE_SIZE, 46 canvas.drawText(String.format("%d", day), x, y, mMonthNumPaint);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
AppCompatSeekBar.java | 20 import android.graphics.Canvas; 51 protected void onDraw(Canvas canvas) { 52 super.onDraw(canvas); 53 mAppCompatSeekBarHelper.drawTickMarks(canvas);
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
ClippableFrameLayout.java | 19 import android.graphics.Canvas; 48 protected void onDraw(Canvas canvas) { 50 canvas.clipPath(mClipPath); 52 super.onDraw(canvas);
|