Home
last modified time | relevance | path

Searched refs:srcBitmap (Results 1 – 8 of 8) sorted by relevance

/external/skia/src/core/
DSkBitmapShader16BilerpTemplate.h28 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan() local
29 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan()
30 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan()
31 unsigned srcRB = srcBitmap.rowBytes(); in shadeSpan()
33 BILERP_BITMAP16_SHADER_PREAMBLE(srcBitmap); in shadeSpan()
36 …BILERP_BITMAP16_SHADER_TYPE* srcPixels = (const BILERP_BITMAP16_SHADER_TYPE*)srcBitmap.getPixels(); in shadeSpan()
129 BILERP_BITMAP16_SHADER_POSTAMBLE(srcBitmap); in shadeSpan()
137 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan16() local
138 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan16()
139 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan16()
[all …]
DSkBitmapShaderTemplate.h64 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan() local
65 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan()
66 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan()
67 unsigned srcRB = srcBitmap.rowBytes(); in shadeSpan()
70 …NOFILTER_BITMAP_SHADER_TYPE* srcPixels = (const NOFILTER_BITMAP_SHADER_TYPE*)srcBitmap.getPixels(); in shadeSpan()
71 NOFILTER_BITMAP_SHADER_PREAMBLE(srcBitmap, srcRB); in shadeSpan()
185 NOFILTER_BITMAP_SHADER_POSTAMBLE(srcBitmap); in shadeSpan()
208 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan16() local
209 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan16()
210 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan16()
[all …]
DARGB32_Clamp_Bilinear_BitmapShader.h72 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan() local
73 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan()
74 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan()
75 unsigned srcRB = srcBitmap.rowBytes(); in shadeSpan()
78 const SkPMColor* srcPixels = (const SkPMColor*)srcBitmap.getPixels(); in shadeSpan()
/external/chromium_org/third_party/skia/src/core/
DSkBitmapShader16BilerpTemplate.h28 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan() local
29 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan()
30 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan()
31 unsigned srcRB = srcBitmap.rowBytes(); in shadeSpan()
33 BILERP_BITMAP16_SHADER_PREAMBLE(srcBitmap); in shadeSpan()
36 …BILERP_BITMAP16_SHADER_TYPE* srcPixels = (const BILERP_BITMAP16_SHADER_TYPE*)srcBitmap.getPixels(); in shadeSpan()
129 BILERP_BITMAP16_SHADER_POSTAMBLE(srcBitmap); in shadeSpan()
137 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan16() local
138 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan16()
139 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan16()
[all …]
DSkBitmapShaderTemplate.h64 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan() local
65 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan()
66 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan()
67 unsigned srcRB = srcBitmap.rowBytes(); in shadeSpan()
70 …NOFILTER_BITMAP_SHADER_TYPE* srcPixels = (const NOFILTER_BITMAP_SHADER_TYPE*)srcBitmap.getPixels(); in shadeSpan()
71 NOFILTER_BITMAP_SHADER_PREAMBLE(srcBitmap, srcRB); in shadeSpan()
185 NOFILTER_BITMAP_SHADER_POSTAMBLE(srcBitmap); in shadeSpan()
208 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan16() local
209 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan16()
210 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan16()
[all …]
DARGB32_Clamp_Bilinear_BitmapShader.h72 const SkBitmap& srcBitmap = this->getSrcBitmap(); in shadeSpan() local
73 unsigned srcMaxX = srcBitmap.width() - 1; in shadeSpan()
74 unsigned srcMaxY = srcBitmap.height() - 1; in shadeSpan()
75 unsigned srcRB = srcBitmap.rowBytes(); in shadeSpan()
78 const SkPMColor* srcPixels = (const SkPMColor*)srcBitmap.getPixels(); in shadeSpan()
/external/skia/tests/
DDeferredCanvasTest.cpp89 SkBitmap srcBitmap; in TestDeferredCanvasWritePixelsToSurface() local
90 srcBitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); in TestDeferredCanvasWritePixelsToSurface()
91 srcBitmap.allocPixels(); in TestDeferredCanvasWritePixelsToSurface()
92 srcBitmap.eraseColor(SK_ColorGREEN); in TestDeferredCanvasWritePixelsToSurface()
130 canvas->writePixels(srcBitmap, 0, 0); in TestDeferredCanvasWritePixelsToSurface()
146 canvas->writePixels(srcBitmap, 5, 0); in TestDeferredCanvasWritePixelsToSurface()
163 canvas->writePixels(srcBitmap, 0, 0, SkCanvas::kRGBA_Unpremul_Config8888); in TestDeferredCanvasWritePixelsToSurface()
180 canvas->writePixels(srcBitmap, 5, 0, SkCanvas::kRGBA_Unpremul_Config8888); in TestDeferredCanvasWritePixelsToSurface()
202 canvas->writePixels(srcBitmap, 0, 0, SkCanvas::kRGBA_Unpremul_Config8888); in TestDeferredCanvasWritePixelsToSurface()
224 canvas->writePixels(srcBitmap, 5, 0, SkCanvas::kRGBA_Unpremul_Config8888); in TestDeferredCanvasWritePixelsToSurface()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DImageBuffer.cpp380 SkBitmap srcBitmap; in putByteArray() local
381 srcBitmap.setConfig(SkBitmap::kARGB_8888_Config, numColumns, numRows, srcBytesPerRow); in putByteArray()
382 srcBitmap.setPixels(source->data() + originY * srcBytesPerRow + originX * 4); in putByteArray()
390 context()->writePixels(srcBitmap, destX, destY, config8888); in putByteArray()