Home
last modified time | relevance | path

Searched refs:getCanvas (Results 1 – 25 of 119) sorted by relevance

12345

/external/skia/gm/
Ddiscard.cpp59 surface->getCanvas()->discard(); in onDraw()
64 surface->getCanvas()->drawColor(color); in onDraw()
67 surface->getCanvas()->clear(color); in onDraw()
73 surface->getCanvas()->drawPaint(paint); in onDraw()
80 surface->getCanvas()->discard(); in onDraw()
Dimagescalealigned.cpp77 surface->getCanvas()->clear(SK_ColorTRANSPARENT); in MakeImage()
84 surface->getCanvas()->drawRect(border, paint); in MakeImage()
87 surface->getCanvas()->drawLine(start.x(), start.y(), end.x(), end.y(), paint); in MakeImage()
88 surface->getCanvas()->drawPoint(start.x(), start.y(), color); in MakeImage()
89 surface->getCanvas()->drawPoint(end.x(), end.y(), color); in MakeImage()
Dimage_shader.cpp31 surface->getCanvas()->clear(0); in make_raster()
32 surface->getCanvas()->drawPicture(pic); in make_raster()
42 surface->getCanvas()->clear(0); in make_texture()
43 surface->getCanvas()->drawPicture(pic); in make_texture()
Dsurface.cpp97 test_draw(surface->getCanvas(), rec[i].fLabel); in onDraw()
141 drawInto(surf->getCanvas()); in onDraw()
147 drawInto(surf2->getCanvas()); in onDraw()
Dfatpathfill.cpp37 surface->getCanvas()->clear(SK_ColorTRANSPARENT); in draw_fatpath()
38 surface->getCanvas()->drawPath(path, paint); in draw_fatpath()
Dcolor4f.cpp81 surface->getCanvas()->drawPaint(bg);
82 draw_into_canvas(surface->getCanvas());
Dimagealphathreshold.cpp102 surface->getCanvas()->clear(SK_ColorWHITE); in onDraw()
103 draw_rects(surface->getCanvas()); in onDraw()
/external/skia/experimental/SkV8Example/
DDrawingMethods.cpp27 SkCanvas* canvas = drawingMethods->getCanvas(); in Save()
37 SkCanvas* canvas = drawingMethods->getCanvas(); in Restore()
47 SkCanvas* canvas = drawingMethods->getCanvas(); in Rotate()
64 SkCanvas* canvas = drawingMethods->getCanvas(); in Translate()
82 SkCanvas* canvas = drawingMethods->getCanvas(); in ResetTransform()
92 SkCanvas* canvas = drawingMethods->getCanvas(); in DrawPath()
124 SkCanvas* canvas = drawingMethods->getCanvas(); in GetWidth()
137 SkCanvas* canvas = drawingMethods->getCanvas(); in GetHeight()
/external/skia/tools/VisualBench/
DWrappedBenchmark.h35 fOffScreen->getCanvas()->clear(SK_ColorWHITE); in onPerCanvasPreDraw()
36 fBench->perCanvasPreDraw(fOffScreen->getCanvas()); in onPerCanvasPreDraw()
40 fBench->preDraw(fOffScreen->getCanvas()); in onPreDraw()
44 fBench->postDraw(fOffScreen->getCanvas()); in onPostDraw()
48 fBench->perCanvasPostDraw(fOffScreen->getCanvas()); in onPerCanvasPostDraw()
53 fBench->draw(loops, fOffScreen->getCanvas()); in onDraw()
121 SkCanvas::LayerIter offscreenIter(fOffScreen->getCanvas(), false); in onBlitToScreen()
/external/skia/tests/
DDrawPathTest.cpp22 SkCanvas* canvas = surf->getCanvas(); in test_big_aa_rect()
102 surface->getCanvas()->drawPath(path, paint); in test_crbug131181()
136 SkCanvas* canvas = surface->getCanvas(); in test_inversepathwithclip()
175 surface->getCanvas()->drawPath(path, paint); in test_bug533()
217 surface->getCanvas()->drawPath(path, paint); in test_bigcubic()
245 SkCanvas* canvas = surface->getCanvas(); in test_halfway()
271 surface->getCanvas()->drawPath(path, paint); in test_giantaa()
320 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_simple()
335 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_actual()
DSurfaceTest.cpp119 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
162 surface->getCanvas()->clear(color); in test_canvas_peek()
164 const void* addr = surface->getCanvas()->peekPixels(&info, &rowBytes); in test_canvas_peek()
206 SkCanvas* canvas = surface->getCanvas(); in test_access_pixels()
392 const void* pixels = surface->getCanvas()->peekPixels(&info, &rowBytes); in DEF_TEST()
419 surface->getCanvas()->internal_private_accessTopLayerRenderTarget(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
457 surface->getCanvas()->getDevice_just_for_deprecated_compatibility_testing(); in get_legacy_gen_id()
524 SkCanvas* canvas = surface->getCanvas(); in test_copy_on_write()
615 SkCanvas* canvas = surface->getCanvas(); in test_writable_after_snapshot_release()
641 SkCanvas* canvas1 = surface1->getCanvas(); in test_crbug263329()
[all …]
DGrTextureMipMapInvalidationTest.cpp47 surface->getCanvas()->scale(0.2f, 0.2f); in DEF_GPUTEST_FOR_NULL_CONTEXT()
48 surface->getCanvas()->drawBitmap(bitmap, 0, 0, &paint); in DEF_GPUTEST_FOR_NULL_CONTEXT()
DImageNewShaderTest.cpp28 SkCanvas* sourceCanvas = sourceSurface->getCanvas(); in paintSource()
55 SkCanvas* destinationCanvas = destinationSurface->getCanvas(); in runShaderTest()
62 sourceSurface->getCanvas()->readPixels(rect, &bmOrig); in runShaderTest()
DSpecialSurfaceTest.cpp44 SkCanvas* canvas = surf->getCanvas(); in test_surface()
56 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface()
/external/skia/bench/
DSKPBench.cpp81 fSurfaces.top()->getCanvas()->clipRect(clip); in onPerCanvasPreDraw()
83 fSurfaces.top()->getCanvas()->setMatrix(canvas->getTotalMatrix()); in onPerCanvasPreDraw()
84 fSurfaces.top()->getCanvas()->scale(fScale, fScale); in onPerCanvasPreDraw()
138 mpd.add(fSurfaces[j]->getCanvas(), fPic, &trans); in drawMPDPicture()
144 fSurfaces[j]->getCanvas()->flush(); in drawMPDPicture()
152 fSurfaces[j]->getCanvas()->drawPicture(fPic, &trans, nullptr); in drawPicture()
156 fSurfaces[j]->getCanvas()->flush(); in drawPicture()
DMergeBench.cpp55 surface->getCanvas()->clear(0x00000000); in make_bitmap()
61 surface->getCanvas()->drawText(str, strlen(str), 15, 55, paint); in make_bitmap()
67 SkCanvas* canvas = surface->getCanvas(); in make_checkerboard()
Dnanobench.h81 SkCanvas* getCanvas() const { in getCanvas() function
85 return surface->getCanvas(); in getCanvas()
DSKPAnimationBench.cpp37 this->surfaces()[j]->getCanvas()->drawPicture(this->picture(), &trans, nullptr); in drawPicture()
41 this->surfaces()[j]->getCanvas()->flush(); in drawPicture()
/external/skia/samplecode/
DSampleFatBits.cpp36 surface->getCanvas()->clear(SK_ColorTRANSPARENT); in erase()
167 SkCanvas* canvas = fMaxSurface->getCanvas(); in copyMinToMax()
283 fMinSurface->getCanvas()->save(); in drawLine()
286 fMinSurface->getCanvas()->clipRect(r, SkRegion::kIntersect_Op, true); in drawLine()
288 fMinSurface->getCanvas()->drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY, paint); in drawLine()
290 fMinSurface->getCanvas()->restore(); in drawLine()
294 SkCanvas* max = fMaxSurface->getCanvas(); in drawLine()
318 SkCanvas* c = fMinSurface->getCanvas(); in drawRect()
323 SkCanvas* max = fMaxSurface->getCanvas(); in drawRect()
363 fMinSurface->getCanvas()->drawPath(path, paint); in drawTriangle()
[all …]
/external/skia/tools/skiaserve/
DRequest.cpp74 SkCanvas* Request::getCanvas() { in getCanvas() function in Request
80 SkCanvas* target = fSurface->getCanvas(); in getCanvas()
85 SkCanvas* target = this->getCanvas(); in drawToCanvas()
91 return writeCanvasToPng(this->getCanvas()); in drawToPng()
/external/skia/debugger/QT/
DSkDrawCommandGeometryWidget.cpp85 didRender = command->render(fSurface->getCanvas()); in updateImage()
89 fSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in updateImage()
92 fSurface->getCanvas()->flush(); in updateImage()
DSkRasterWidget.cpp45 fDebugger->draw(fSurface->getCanvas()); in paintEvent()
46 fSurface->getCanvas()->flush(); in paintEvent()
/external/skia/tools/kilobench/
Dkilobench.cpp208 SkCanvas* getCanvas() const { in getCanvas() function
212 return fSurface->getCanvas(); in getCanvas()
216 SkCanvas* canvas = this->getCanvas(); in capturePixels()
240 if (target->getCanvas() && in write_canvas_png()
241 kUnknown_SkColorType == target->getCanvas()->imageInfo().colorType()) { in write_canvas_png()
420 SkCanvas* canvas = target->getCanvas(); in time()
491 fCanvas = fTarget.getCanvas(); in AutoSetupContextBenchAndTarget()
/external/skia/src/image/
DSkSurface.cpp162 SkCanvas* SkSurface::getCanvas() { in getCanvas() function in SkSurface
186 return this->getCanvas()->peekPixels(info, rowBytes); in peekPixels()
191 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in readPixels()
DSkImage_Generator.cpp91 surface->getCanvas()->clear(0); in onNewSubset()
92 surface->getCanvas()->drawImage(this, SkIntToScalar(-subset.x()), SkIntToScalar(-subset.y()), in onNewSubset()

12345