/external/skia/src/core/ |
D | SkConfig8888.cpp | 81 template <bool OUT_PM, int OUT_A_IDX, int OUT_R_IDX, int OUT_G_IDX, int OUT_B_IDX, SkCanvas::Config… 84 case SkCanvas::kNative_Premul_Config8888: in convert_pixel() 88 case SkCanvas::kNative_Unpremul_Config8888: in convert_pixel() 92 case SkCanvas::kBGRA_Premul_Config8888: in convert_pixel() 96 case SkCanvas::kBGRA_Unpremul_Config8888: in convert_pixel() 100 case SkCanvas::kRGBA_Premul_Config8888: in convert_pixel() 104 case SkCanvas::kRGBA_Unpremul_Config8888: in convert_pixel() 115 template <SkCanvas::Config8888 OUT_CFG, SkCanvas::Config8888 IN_CFG> 118 case SkCanvas::kNative_Premul_Config8888: in convert_pixel() 121 case SkCanvas::kNative_Unpremul_Config8888: in convert_pixel() [all …]
|
D | SkCanvas.cpp | 29 SK_DEFINE_INST_COUNT(SkCanvas) 123 void SkCanvas::predrawNotify() { in predrawNotify() 145 DeviceCM(SkDevice* device, int x, int y, const SkPaint* paint, SkCanvas* canvas) in DeviceCM() 213 class SkCanvas::MCRec { 231 if (flags & SkCanvas::kMatrix_SaveFlag) { in MCRec() 238 if (flags & SkCanvas::kClip_SaveFlag) { in MCRec() 275 SkDrawIter(SkCanvas* canvas, bool skipEmptyClips = true) { in SkDrawIter() 324 SkCanvas* fCanvas; 336 AutoDrawLooper(SkCanvas* canvas, const SkPaint& paint, in AutoDrawLooper() 351 SkCanvas::kARGB_ClipLayer_SaveFlag, true); in AutoDrawLooper() [all …]
|
D | SkConfig8888.h | 18 SkCanvas::Config8888 dstConfig, 21 SkCanvas::Config8888 srcConfig, 28 uint32_t SkPackConfig8888(SkCanvas::Config8888 config, 46 SkCanvas::Config8888 dstConfig8888, in SkCopyBitmapToConfig8888() 55 …88Pixels(dstPixels, dstRowBytes, dstConfig8888, srcPixels, srcRowBytes, SkCanvas::kNative_Premul_C… in SkCopyBitmapToConfig8888() 65 SkCanvas::Config8888 srcConfig8888) { in SkCopyConfig8888ToBitmap() 73 …SkConvertConfig8888Pixels(dstPixels, dstRowBytes, SkCanvas::kNative_Premul_Config8888, srcPixels, … in SkCopyConfig8888ToBitmap()
|
/external/skia/legacy/src/core/ |
D | SkConfig8888.cpp | 80 template <bool OUT_PM, int OUT_A_IDX, int OUT_R_IDX, int OUT_G_IDX, int OUT_B_IDX, SkCanvas::Config… 83 case SkCanvas::kNative_Premul_Config8888: in convert_pixel() 87 case SkCanvas::kNative_Unpremul_Config8888: in convert_pixel() 91 case SkCanvas::kBGRA_Premul_Config8888: in convert_pixel() 95 case SkCanvas::kBGRA_Unpremul_Config8888: in convert_pixel() 99 case SkCanvas::kRGBA_Premul_Config8888: in convert_pixel() 103 case SkCanvas::kRGBA_Unpremul_Config8888: in convert_pixel() 114 template <SkCanvas::Config8888 OUT_CFG, SkCanvas::Config8888 IN_CFG> 117 case SkCanvas::kNative_Premul_Config8888: in convert_pixel() 120 case SkCanvas::kNative_Unpremul_Config8888: in convert_pixel() [all …]
|
D | SkCanvas.cpp | 52 static SkCanvas::EdgeType paint2EdgeType(const SkPaint* paint) { in paint2EdgeType() 54 SkCanvas::kAA_EdgeType : SkCanvas::kBW_EdgeType; in paint2EdgeType() 154 class SkCanvas::MCRec { 172 if (flags & SkCanvas::kMatrix_SaveFlag) { in MCRec() 179 if (flags & SkCanvas::kClip_SaveFlag) { in MCRec() 216 SkDrawIter(SkCanvas* canvas, bool skipEmptyClips = true) { in SkDrawIter() 268 SkCanvas* fCanvas; 280 AutoDrawLooper(SkCanvas* canvas, const SkPaint& paint) : fOrigPaint(paint) { in AutoDrawLooper() 306 SkCanvas* fCanvas; 400 SkDevice* SkCanvas::init(SkDevice* device) { in init() [all …]
|
D | SkConfig8888.h | 18 SkCanvas::Config8888 dstConfig, 21 SkCanvas::Config8888 srcConfig, 28 uint32_t SkPackConfig8888(SkCanvas::Config8888 config, 42 SkCanvas::Config8888 dstConfig8888, 52 SkCanvas::Config8888 srcConfig8888); 63 SkCanvas::Config8888 dstConfig8888, in SkCopyBitmapToConfig8888() 72 …88Pixels(dstPixels, dstRowBytes, dstConfig8888, srcPixels, srcRowBytes, SkCanvas::kNative_Premul_C… in SkCopyBitmapToConfig8888() 78 SkCanvas::Config8888 srcConfig8888) { in SkCopyConfig8888ToBitmap() 86 …SkConvertConfig8888Pixels(dstPixels, dstRowBytes, SkCanvas::kNative_Premul_Config8888, srcPixels, … in SkCopyConfig8888ToBitmap()
|
D | SkDevice.cpp | 117 SkCanvas::Config8888 config8888) { in readPixels() 163 const SkCanvas::Config8888 SkDevice::kPMColorAlias = 164 SkCanvas::kBGRA_Premul_Config8888; 167 const SkCanvas::Config8888 SkDevice::kPMColorAlias = 168 SkCanvas::kRGBA_Premul_Config8888; 170 const SkCanvas::Config8888 SkDevice::kPMColorAlias = 171 (SkCanvas::Config8888) -1; 176 const SkCanvas::Config8888 SkDevice::kPMColorAlias = 177 SkCanvas::kBGRA_Premul_Config8888; 180 const SkCanvas::Config8888 SkDevice::kPMColorAlias = [all …]
|
D | SkShape.cpp | 29 void SkShape::draw(SkCanvas* canvas) { in draw() 35 void SkShape::drawXY(SkCanvas* canvas, SkScalar dx, SkScalar dy) { in drawXY() 36 int saveCount = canvas->save(SkCanvas::kMatrix_SaveFlag); in drawXY() 42 void SkShape::drawMatrix(SkCanvas* canvas, const SkMatrix& matrix) { in drawMatrix() 43 int saveCount = canvas->save(SkCanvas::kMatrix_SaveFlag); in drawMatrix() 75 void SkShape::onDraw(SkCanvas*) {} in onDraw() argument
|
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
D | InstrumentedPlatformCanvas.h | 35 class InstrumentedPlatformCanvas : public SkCanvas { 53 return SkCanvas::save(flags); 60 return SkCanvas::saveLayer(bounds, paint, flags); in saveLayer() 66 SkCanvas::restore(); in restore() 72 return SkCanvas::translate(dx, dy); in translate() 78 return SkCanvas::scale(sx, sy); in scale() 84 return SkCanvas::rotate(degrees); in rotate() 90 return SkCanvas::skew(sx, sy); in skew() 96 return SkCanvas::concat(matrix); in concat() 102 SkCanvas::setMatrix(matrix); in setMatrix() [all …]
|
/external/skia/legacy/src/pipe/ |
D | SkGPipeRead.cpp | 124 static void clipPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipPath_rp() 131 static void clipRegion_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRegion_rp() 138 static void clipRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRect_rp() 145 static void setMatrix_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in setMatrix_rp() 152 static void concat_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in concat_rp() 159 static void scale_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in scale_rp() 165 static void skew_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in skew_rp() 171 static void rotate_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in rotate_rp() 176 static void translate_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in translate_rp() 184 static void save_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in save_rp() [all …]
|
/external/skia/tests/ |
D | WritePixelsTest.cpp | 57 bool config8888IsPremul(SkCanvas::Config8888 config8888) { in config8888IsPremul() 59 case SkCanvas::kNative_Premul_Config8888: in config8888IsPremul() 60 case SkCanvas::kBGRA_Premul_Config8888: in config8888IsPremul() 61 case SkCanvas::kRGBA_Premul_Config8888: in config8888IsPremul() 63 case SkCanvas::kNative_Unpremul_Config8888: in config8888IsPremul() 64 case SkCanvas::kBGRA_Unpremul_Config8888: in config8888IsPremul() 65 case SkCanvas::kRGBA_Unpremul_Config8888: in config8888IsPremul() 74 uint32_t packConfig8888(SkCanvas::Config8888 config8888, in packConfig8888() 79 case SkCanvas::kNative_Premul_Config8888: in packConfig8888() 80 case SkCanvas::kNative_Unpremul_Config8888: in packConfig8888() [all …]
|
D | CanvasTest.cpp | 67 class Canvas2CanvasClipVisitor : public SkCanvas::ClipVisitor { 69 Canvas2CanvasClipVisitor(SkCanvas* target) : fTarget(target) {} in Canvas2CanvasClipVisitor() 79 SkCanvas* fTarget; 82 static void test_clipVisitor(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_clipVisitor() 87 SkCanvas c(bm); in test_clipVisitor() 170 virtual void draw(SkCanvas*, skiatest::Reporter*) = 0; 254 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \ 265 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \ 273 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter*, \ 280 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter* reporter, \ [all …]
|
D | ReadPixelsTest.cpp | 64 SkPMColor convertConfig8888ToPMColor(SkCanvas::Config8888 config8888, in convertConfig8888ToPMColor() 71 case SkCanvas::kNative_Premul_Config8888: in convertConfig8888ToPMColor() 73 case SkCanvas::kNative_Unpremul_Config8888: in convertConfig8888ToPMColor() 80 case SkCanvas::kBGRA_Unpremul_Config8888: in convertConfig8888ToPMColor() 82 case SkCanvas::kBGRA_Premul_Config8888: in convertConfig8888ToPMColor() 88 case SkCanvas::kRGBA_Unpremul_Config8888: in convertConfig8888ToPMColor() 90 case SkCanvas::kRGBA_Premul_Config8888: in convertConfig8888ToPMColor() 108 void fillCanvas(SkCanvas* canvas) { in fillCanvas() 174 SkCanvas::Config8888 config8888) { in checkRead() 323 SkCanvas canvas(device); in ReadPixelsTest() [all …]
|
D | PremulAlphaRoundTripTest.cpp | 21 void fillCanvas(SkCanvas* canvas, SkCanvas::Config8888 unpremulConfig) { in fillCanvas() 36 static const SkCanvas::Config8888 gUnpremulConfigs[] = { 37 SkCanvas::kNative_Unpremul_Config8888, 44 SkCanvas::kBGRA_Unpremul_Config8888, 46 SkCanvas::kRGBA_Unpremul_Config8888, 69 SkCanvas canvas(device); in PremulAlphaRoundTripTest()
|
/external/skia/src/pipe/ |
D | SkGPipeRead.cpp | 219 static void clipPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipPath_rp() 227 static void clipRegion_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRegion_rp() 234 static void clipRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRect_rp() 241 static void clipRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRRect_rp() 251 static void setMatrix_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in setMatrix_rp() 258 static void concat_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in concat_rp() 265 static void scale_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in scale_rp() 271 static void skew_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in skew_rp() 277 static void rotate_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in rotate_rp() 282 static void translate_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in translate_rp() [all …]
|
/external/skia/gm/ |
D | aaclip.cpp | 13 static void test_giant_dash(SkCanvas* canvas) { in test_giant_dash() 43 static void test_grad(SkCanvas* canvas) { in test_grad() 56 static SkCanvas* MakeCanvas(const SkIRect& bounds) { in MakeCanvas() 62 SkCanvas* canvas = new SkCanvas(bm); in MakeCanvas() 68 static void GetBitmap(const SkCanvas* canvas, SkBitmap* bm) { in GetBitmap() 73 static void compare_canvas(const SkCanvas* a, const SkCanvas* b) { in compare_canvas() 97 static void drawRectAsPath(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in drawRectAsPath() 110 SkAutoTUnref<SkCanvas> path_canvas(MakeCanvas(bounds)); in test_maskFromPath() 113 SkAutoTUnref<SkCanvas> rect_canvas(MakeCanvas(bounds)); in test_maskFromPath() 142 static void draw (SkCanvas* canvas, SkRect& target, int x, int y) { in draw() [all …]
|
D | imagefiltersbase.cpp | 64 static void draw_paint(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_paint() 74 static void draw_line(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_line() 82 static void draw_rect(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_rect() 91 static void draw_path(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_path() 99 static void draw_text(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_text() 109 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_bitmap() 120 SkCanvas c(bm); in draw_bitmap() 126 static void draw_sprite(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_sprite() 137 SkCanvas c(bm); in draw_sprite() 161 void draw_frame(SkCanvas* canvas, const SkRect& r) { in draw_frame() [all …]
|
D | srcmode.cpp | 35 typedef void (*Proc)(SkCanvas*, const SkPaint&); 37 static void draw_hair(SkCanvas* canvas, const SkPaint& paint) { in draw_hair() 43 static void draw_thick(SkCanvas* canvas, const SkPaint& paint) { in draw_thick() 49 static void draw_rect(SkCanvas* canvas, const SkPaint& paint) { in draw_rect() 53 static void draw_oval(SkCanvas* canvas, const SkPaint& paint) { in draw_oval() 57 static void draw_text(SkCanvas* canvas, const SkPaint& paint) { in draw_text() 79 void drawContent(SkCanvas* canvas) { in drawContent() 118 static SkSurface* compat_surface(SkCanvas* canvas, const SkISize& size, in compat_surface() 137 virtual void onDraw(SkCanvas* canvas) { in onDraw()
|
D | gm.h | 45 void draw(SkCanvas*); 46 void drawBackground(SkCanvas*); 47 void drawContent(SkCanvas*); 76 void drawSizeBounds(SkCanvas*, SkColor); 91 virtual void onDraw(SkCanvas*) = 0; 92 virtual void onDrawBackground(SkCanvas*);
|
/external/skia/src/image/ |
D | SkSurface_Base.h | 24 virtual SkCanvas* onNewCanvas() = 0; 45 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*); 54 virtual void onCopyOnWrite(SkImage* cachedImage, SkCanvas*) = 0; 56 inline SkCanvas* getCachedCanvas(); 63 SkCanvas* fCachedCanvas; 66 void aboutToDraw(SkCanvas*); 67 friend class SkCanvas; variable
|
D | SkSurface_Picture.cpp | 22 virtual SkCanvas* onNewCanvas() SK_OVERRIDE; 25 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, 27 virtual void onCopyOnWrite(SkImage*, SkCanvas*) SK_OVERRIDE; 46 SkCanvas* SkSurface_Picture::onNewCanvas() { in onNewCanvas() 50 SkCanvas* canvas = fPicture->beginRecording(this->width(), this->height()); in onNewCanvas() 71 void SkSurface_Picture::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, in onDraw() 79 void SkSurface_Picture::onCopyOnWrite(SkImage* cachedImage, SkCanvas*) { in onCopyOnWrite() argument
|
/external/skia/bench/ |
D | RectBench.cpp | 58 virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) { in drawThisRect() 63 virtual void onDraw(SkCanvas* canvas) { in onDraw() 114 virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) { in drawThisRect() 124 virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) { in drawThisRect() 132 SkCanvas::PointMode fMode; 135 PointsBench(void* param, SkCanvas::PointMode mode, const char* name) : in PointsBench() 141 virtual void onDraw(SkCanvas* canvas) { in onDraw() 178 virtual void onDraw(SkCanvas* canvas) { in onDraw() 211 SkCanvas::PointMode fMode; 214 BlitMaskBench(void* param, SkCanvas::PointMode mode, in BlitMaskBench() [all …]
|
/external/skia/legacy/include/core/ |
D | SkPicture.h | 15 class SkCanvas; variable 65 SkCanvas* beginRecording(int width, int height, uint32_t recordFlags = 0); 70 SkCanvas* getRecordingCanvas() const; 82 void draw(SkCanvas* surface); 128 SkCanvas* getRecordingCanvas() const { return fCanvas; } in getRecordingCanvas() 132 SkCanvas* fCanvas;
|
D | SkShape.h | 13 class SkCanvas; variable 22 void draw(SkCanvas*); 27 void drawXY(SkCanvas*, SkScalar dx, SkScalar dy); 32 void drawMatrix(SkCanvas*, const SkMatrix&); 44 virtual void onDraw(SkCanvas*);
|
/external/skia/include/core/ |
D | SkPicture.h | 18 class SkCanvas; variable 106 SkCanvas* beginRecording(int width, int height, uint32_t recordFlags = 0); 111 SkCanvas* getRecordingCanvas() const; 123 void draw(SkCanvas* surface); 199 SkCanvas* getRecordingCanvas() const { return fCanvas; } in getRecordingCanvas() 203 SkCanvas* fCanvas;
|