Home
last modified time | relevance | path

Searched refs:SkCanvas (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/libs/hwui/
DSkiaCanvas.cpp43 explicit SkiaCanvas(SkCanvas* canvas) : mCanvas(canvas) { in SkiaCanvas()
48 virtual SkCanvas* asSkCanvas() override { in asSkCanvas()
59 virtual int save(SkCanvas::SaveFlags flags) override;
64 const SkPaint* paint, SkCanvas::SaveFlags flags) override;
66 int alpha, SkCanvas::SaveFlags flags) override;
106 virtual void drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount,
134 SkCanvas::SaveFlags saveFlags;
137 void recordPartialSave(SkCanvas::SaveFlags flags);
142 SkCanvas::PointMode mode);
145 SkAutoTUnref<SkCanvas> mCanvas;
[all …]
DCanvas.h43 static Canvas* create_canvas(SkCanvas* skiaCanvas);
57 virtual SkCanvas* asSkCanvas() = 0;
70 virtual int save(SkCanvas::SaveFlags flags) = 0;
75 const SkPaint* paint, SkCanvas::SaveFlags flags) = 0;
77 int alpha, SkCanvas::SaveFlags flags) = 0;
129 virtual void drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount,
DCanvasState.cpp44 SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag); in initializeSaveStack()
61 SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag); in setViewport()
DRenderNode.cpp94 SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag); in output()
434 SkCanvas::kHasAlphaLayer_SaveFlag | SkCanvas::kClipToLayer_SaveFlag); in setViewProperties()
737 int rootRestoreTo = renderer.save(SkCanvas::kMatrix_SaveFlag); in issueOperationsOf3dChildren()
781 int restoreTo = renderer.save(SkCanvas::kMatrix_SaveFlag); in issueOperationsOf3dChildren()
803 handler(new (alloc) SaveOp(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag), in issueOperationsOfProjectedChildren()
823 int restoreTo = renderer.save(SkCanvas::kMatrix_SaveFlag); in issueOperationsOfProjectedChildren()
877 handler(new (alloc) SaveOp(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag), in issueOperations()
881 SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag, restoreTo); in issueOperations()
DDisplayListCanvas.cpp96 SkCanvas* DisplayListCanvas::asSkCanvas() { in asSkCanvas()
113 int DisplayListCanvas::save(SkCanvas::SaveFlags flags) { in save()
136 const SkPaint* paint, SkCanvas::SaveFlags flags) { in saveLayer()
138 flags |= SkCanvas::kClip_SaveFlag | SkCanvas::kMatrix_SaveFlag; in saveLayer()
248 save(SkCanvas::kMatrix_SaveFlag); in drawBitmap()
269 save(SkCanvas::kMatrix_SaveFlag); in drawBitmap()
285 save(SkCanvas::kMatrix_SaveFlag); in drawBitmap()
299 save(SkCanvas::kMatrix_SaveFlag); in drawBitmap()
DDisplayListCanvas.h137 virtual SkCanvas* asSkCanvas() override;
152 virtual int save(SkCanvas::SaveFlags flags) override;
157 SkCanvas::SaveFlags flags) override;
159 int alpha, SkCanvas::SaveFlags flags) override { in saveLayerAlpha()
215 virtual void drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount, in drawVertices()
DSkiaCanvasProxy.cpp117 mCanvas->save(SkCanvas::kMatrixClip_SaveFlag); in onDrawSprite()
144 mCanvas->save(SkCanvas::kMatrixClip_SaveFlag); in willSave()
147 SkCanvas::SaveLayerStrategy SkiaCanvasProxy::willSaveLayer(const SkRect* rectPtr, in willSaveLayer()
156 return SkCanvas::kNoLayer_SaveLayerStrategy; in willSaveLayer()
338 this->drawVertices(SkCanvas::kTriangles_VertexMode, data.fVertexCount, data.fPoints, in onDrawPatch()
DSkiaCanvasProxy.h40 class ANDROID_API SkiaCanvasProxy : public SkCanvas {
102 typedef SkCanvas INHERITED;
DRenderProperties.cpp169 SkCanvas::kHasAlphaLayer_SaveFlag | SkCanvas::kClipToLayer_SaveFlag); in debugOutputProperties()
DSnapshot.cpp62 if (saveFlags & SkCanvas::kMatrix_SaveFlag) { in Snapshot()
69 if (saveFlags & SkCanvas::kClip_SaveFlag) { in Snapshot()
DDeferredDisplayList.cpp435 if (recordingComplexClip() && (saveFlags & SkCanvas::kClip_SaveFlag)) { in addSave()
646 renderer.save(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag); in flush()
DTessellationCache.h29 class SkCanvas; variable
DPathCache.h34 class SkCanvas; variable
DOpenGLRenderer.cpp525 flags |= SkCanvas::kClip_SaveFlag | SkCanvas::kMatrix_SaveFlag; in saveLayer()
586 if (!mState.currentlyIgnored() && (flags & SkCanvas::kClipToLayer_SaveFlag)) { in saveLayerDeferred()
663 const bool fboLayer = flags & SkCanvas::kClipToLayer_SaveFlag; in createLayer()
953 save(SkCanvas::kClip_SaveFlag | SkCanvas::kMatrix_SaveFlag); in composeLayerRegion()
2346 save(SkCanvas::kMatrix_SaveFlag);
DTextureCache.cpp332 SkCanvas canvas(rgbaBitmap); in uploadLoFiTexture()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfDocument.cpp63 SkCanvas* startPage(int width, int height, in startPage()
73 SkCanvas* canvas = page->mPictureRecorder->beginRecording( in startPage()
94 SkCanvas* canvas = document->beginPage(page->mWidth, page->mHeight, in write()
130 SkCanvas* canvas = document->startPage(pageWidth, pageHeight, in nativeStartPage()
/frameworks/webview/chromium/plat_support/
Dgraphics_utils.cpp41 PixelInfo(SkCanvas* canvas);
46 PixelInfo::PixelInfo(SkCanvas* canvas) { in PixelInfo()
62 SkCanvas* canvas = nativeCanvas->asSkCanvas(); in GetPixels()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp35 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap,
91 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap& bitmap, in draw()
123 SkCanvas* canvas = reinterpret_cast<Canvas*>(canvasHandle)->asSkCanvas(); in drawF()
142 SkCanvas* canvas = reinterpret_cast<Canvas*>(canvasHandle)->asSkCanvas(); in drawI()
DPicture.cpp45 SkCanvas* canvas = mRecorder->beginRecording(width, height, NULL, 0); in beginRecording()
113 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight, NULL, 0); in makePartialCopy()
DNinePatchImpl.cpp66 static void drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, in drawStretchyPatch()
100 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, in NinePatch_Draw()
DCamera.cpp99 SkCanvas* canvas = reinterpret_cast<android::Canvas*>(canvasHandle)->asSkCanvas(); in Camera_applyToCanvas()
DGraphicsJNI.h16 class SkCanvas; variable
/frameworks/minikin/sample/
Dexample_skia.cpp80 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) { in drawToSkia()
133 SkCanvas canvas(bitmap); in runMinikinTest()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp77 SkCanvas::SaveFlags flags = static_cast<SkCanvas::SaveFlags>(flagsHandle); in save()
84 SkCanvas::SaveFlags flags = static_cast<SkCanvas::SaveFlags>(flagsHandle); in saveLayer()
90 SkCanvas::SaveFlags flags = static_cast<SkCanvas::SaveFlags>(flagsHandle); in saveLayerAlpha()
315 SkCanvas::VertexMode mode = static_cast<SkCanvas::VertexMode>(modeHandle); in drawVertices()
341 canvas->save(SkCanvas::kMatrixClip_SaveFlag); in drawBitmap()
/frameworks/base/libs/input/
DSpriteController.cpp216 SkCanvas surfaceCanvas(surfaceBitmap); in doUpdateSprites()

12