/external/skqp/include/core/ |
D | SkBitmap.h | 117 const SkPixmap& pixmap() const { return fPixmap; } in pixmap() 123 const SkImageInfo& info() const { return fPixmap.info(); } in info() 133 int width() const { return fPixmap.width(); } in width() 142 int height() const { return fPixmap.height(); } in height() 152 SkColorType colorType() const { return fPixmap.colorType(); } in colorType() 160 SkAlphaType alphaType() const { return fPixmap.alphaType(); } in alphaType() 168 SkColorSpace* colorSpace() const { return fPixmap.colorSpace(); } in colorSpace() 178 sk_sp<SkColorSpace> refColorSpace() const { return fPixmap.info().refColorSpace(); } in refColorSpace() 185 int bytesPerPixel() const { return fPixmap.info().bytesPerPixel(); } in bytesPerPixel() 192 int rowBytesAsPixels() const { return fPixmap.rowBytesAsPixels(); } in rowBytesAsPixels() [all …]
|
/external/skia/include/core/ |
D | SkBitmap.h | 124 const SkPixmap& pixmap() const { return fPixmap; } in pixmap() 130 const SkImageInfo& info() const { return fPixmap.info(); } in info() 140 int width() const { return fPixmap.width(); } in width() 149 int height() const { return fPixmap.height(); } in height() 151 SkColorType colorType() const { return fPixmap.colorType(); } in colorType() 153 SkAlphaType alphaType() const { return fPixmap.alphaType(); } in alphaType() 161 SkColorSpace* colorSpace() const { return fPixmap.colorSpace(); } in colorSpace() 171 sk_sp<SkColorSpace> refColorSpace() const { return fPixmap.info().refColorSpace(); } in refColorSpace() 178 int bytesPerPixel() const { return fPixmap.info().bytesPerPixel(); } in bytesPerPixel() 185 int rowBytesAsPixels() const { return fPixmap.rowBytesAsPixels(); } in rowBytesAsPixels() [all …]
|
/external/skia/src/core/ |
D | SkBitmapProcState.cpp | 34 const unsigned maxX = s.fPixmap.width() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() 39 const unsigned maxY = s.fPixmap.height() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() 44 const SkPMColor* src = s.fPixmap.addr32(0, dstY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() 83 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_nofilter_DX() 88 SkASSERT(y < (unsigned)s.fPixmap.height()); in S32_alpha_D32_nofilter_DX() 90 auto row = (const SkPMColor*)( (const char*)s.fPixmap.addr() + y * s.fPixmap.rowBytes() ); in S32_alpha_D32_nofilter_DX() 92 if (1 == s.fPixmap.width()) { in S32_alpha_D32_nofilter_DX() 126 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_nofilter_DXDY() 129 auto src = (const char*)s.fPixmap.addr(); in S32_alpha_D32_nofilter_DXDY() 130 size_t rb = s.fPixmap.rowBytes(); in S32_alpha_D32_nofilter_DXDY() [all …]
|
D | SkBitmap.cpp | 44 , fPixmap (src.fPixmap) in SkBitmap() 53 , fPixmap (std::move(other.fPixmap)) in SkBitmap() 57 other.fPixmap.reset(); in SkBitmap() 65 fPixmap = src.fPixmap; in operator =() 75 fPixmap = std::move(other.fPixmap); in operator =() 78 other.fPixmap.reset(); in operator =() 91 fPixmap.reset(); in reset() 102 *bounds = fPixmap.bounds(); in getBounds() 136 fPixmap.reset(info.makeAlphaType(newAT), nullptr, SkToU32(rowBytes)); in setInfo() 148 auto newInfo = fPixmap.info().makeAlphaType(newAlphaType); in setAlphaType() [all …]
|
D | SkBitmapProcState_matrixProcs.cpp | 83 *xy++ = tiley(mapper.fixedY(), s.fPixmap.height() - 1); in nofilter_scale() 87 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale() 131 int maxX = s.fPixmap.width () - 1, in nofilter_affine() 132 maxY = s.fPixmap.height() - 1; in nofilter_affine() 170 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale() 175 const unsigned maxY = s.fPixmap.height() - 1; in filter_scale() 216 unsigned maxX = s.fPixmap.width () - 1, in filter_affine() 217 maxY = s.fPixmap.height() - 1; in filter_affine() 323 *xy++ = tiley(mapper.intY(), s.fPixmap.height()); in clampx_nofilter_trans() 326 const int width = s.fPixmap.width(); in clampx_nofilter_trans() [all …]
|
D | SkMipmapAccessor.cpp | 80 fUpper = levelRec.fPixmap; in SkMipmapAccessor() 89 fLower = levelRec.fPixmap; in SkMipmapAccessor()
|
D | SkMipmap.cpp | 631 new (&levels[i].fPixmap) SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); in Build() 635 const SkPixmap& dstPM = levels[i].fPixmap; in Build() 759 levelPtr->fPixmap.setColorSpace(fCS); in extractLevel() 774 const SkPixmap& pm = fLevels[0].fPixmap; in validForRootLevel() 781 const SkPixmap& pm = fLevels[0].fPixmap; in validForRootLevel() 816 levelPtr->fPixmap.setColorSpace(fCS); in getLevel() 851 buffer.writeDataAsByteArray(encode_to_data(level.fPixmap).get()); in serialize()
|
D | SkMipmap.h | 60 SkPixmap fPixmap; member
|
/external/skqp/tests/ |
D | MipMapTest.cpp | 43 REPORTER_ASSERT(reporter, level.fPixmap.addr()); in DEF_TEST() 44 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0); in DEF_TEST() 45 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0); in DEF_TEST() 46 … REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4); in DEF_TEST() 48 if (prevLevel.fPixmap.addr()) { in DEF_TEST() 49 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width()); in DEF_TEST() 50 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height()); in DEF_TEST() 72 REPORTER_ASSERT(reporter, level.fPixmap.addr()); in test_mipmap_generation() 74 REPORTER_ASSERT(reporter, level.fPixmap.width() == size.width()); in test_mipmap_generation() 75 REPORTER_ASSERT(reporter, level.fPixmap.height() == size.height()); in test_mipmap_generation() [all …]
|
/external/skqp/src/core/ |
D | SkBitmapProcState.cpp | 34 const unsigned maxX = s.fPixmap.width() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() 39 const unsigned maxY = s.fPixmap.height() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() 44 const SkPMColor* src = s.fPixmap.addr32(0, dstY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() 83 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_nofilter_DX() 88 SkASSERT(y < (unsigned)s.fPixmap.height()); in S32_alpha_D32_nofilter_DX() 90 auto row = (const SkPMColor*)( (const char*)s.fPixmap.addr() + y * s.fPixmap.rowBytes() ); in S32_alpha_D32_nofilter_DX() 92 if (1 == s.fPixmap.width()) { in S32_alpha_D32_nofilter_DX() 172 fPixmap.reset(); in init() 182 fPixmap = fBMState->pixmap(); in init() 188 SkASSERT(fPixmap.addr()); in init() [all …]
|
D | SkBitmap.cpp | 43 , fPixmap (src.fPixmap) in SkBitmap() 52 , fPixmap (std::move(other.fPixmap)) in SkBitmap() 56 other.fPixmap.reset(); in SkBitmap() 65 fPixmap = src.fPixmap; in operator =() 75 fPixmap = std::move(other.fPixmap); in operator =() 78 other.fPixmap.reset(); in operator =() 92 fPixmap.reset(); in reset() 103 *bounds = fPixmap.bounds(); in getBounds() 137 fPixmap.reset(info.makeAlphaType(newAT), nullptr, SkToU32(rowBytes)); in setInfo() 149 auto newInfo = fPixmap.info().makeAlphaType(newAlphaType); in setAlphaType() [all …]
|
D | SkBitmapProcState_matrixProcs.cpp | 90 *xy++ = tile(mapper.fixedY(), s.fPixmap.height() - 1); in nofilter_scale() 94 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale() 152 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale() 158 const unsigned maxY = s.fPixmap.height() - 1; in filter_scale() 408 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale_neon() 412 const unsigned maxY = s.fPixmap.height() - 1; in nofilter_scale_neon() 510 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale_neon() 518 const unsigned maxY = s.fPixmap.height() - 1; in filter_scale_neon() 650 *xy++ = int_clamp(mapper.intY(), s.fPixmap.height()); in clampx_nofilter_trans() 653 const int width = s.fPixmap.width(); in clampx_nofilter_trans() [all …]
|
D | SkBitmapController.h | 28 const SkPixmap& pixmap() const { return fPixmap; } in pixmap() 36 SkPixmap fPixmap; variable
|
D | SkBitmapController.cpp | 98 return fResultBitmap.installPixels(level.fPixmap); in processMediumRequest() 121 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes()); in State()
|
D | SkMipMap.h | 50 SkPixmap fPixmap; member
|
/external/skia/tests/ |
D | MipMapTest.cpp | 44 REPORTER_ASSERT(reporter, level.fPixmap.addr()); in DEF_TEST() 45 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0); in DEF_TEST() 46 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0); in DEF_TEST() 47 … REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4); in DEF_TEST() 49 if (prevLevel.fPixmap.addr()) { in DEF_TEST() 50 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width()); in DEF_TEST() 51 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height()); in DEF_TEST() 73 REPORTER_ASSERT(reporter, level.fPixmap.addr()); in test_mipmap_generation() 75 REPORTER_ASSERT(reporter, level.fPixmap.width() == size.width()); in test_mipmap_generation() 76 REPORTER_ASSERT(reporter, level.fPixmap.height() == size.height()); in test_mipmap_generation() [all …]
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts.h | 46 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_alpha_D32_filter_DX() 53 const uint32_t* row0 = s.fPixmap.addr32(0,y0); in S32_alpha_D32_filter_DX() 54 const uint32_t* row1 = s.fPixmap.addr32(0,y1); in S32_alpha_D32_filter_DX() 178 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_alpha_D32_filter_DX() 240 auto row0 = (const uint32_t*)((const uint8_t*)s.fPixmap.addr() + y0 * s.fPixmap.rowBytes()), in S32_alpha_D32_filter_DX() 241 row1 = (const uint32_t*)((const uint8_t*)s.fPixmap.addr() + y1 * s.fPixmap.rowBytes()); in S32_alpha_D32_filter_DX() 317 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_alpha_D32_filter_DX() 323 auto row0 = (const uint32_t*)( (const char*)s.fPixmap.addr() + y0 * s.fPixmap.rowBytes() ), in S32_alpha_D32_filter_DX() 324 row1 = (const uint32_t*)( (const char*)s.fPixmap.addr() + y1 * s.fPixmap.rowBytes() ); in S32_alpha_D32_filter_DX() 479 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_filter_DX() [all …]
|
/external/skqp/src/opts/ |
D | SkBitmapProcState_opts.h | 102 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_alpha_D32_filter_DX() 118 auto row0 = (const uint32_t*)((const uint8_t*)s.fPixmap.addr() + y0 * s.fPixmap.rowBytes()), in S32_alpha_D32_filter_DX() 119 row1 = (const uint32_t*)((const uint8_t*)s.fPixmap.addr() + y1 * s.fPixmap.rowBytes()); in S32_alpha_D32_filter_DX() 193 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_alpha_D32_filter_DX() 199 auto row0 = (const uint32_t*)( (const char*)s.fPixmap.addr() + y0 * s.fPixmap.rowBytes() ), in S32_alpha_D32_filter_DX() 200 row1 = (const uint32_t*)( (const char*)s.fPixmap.addr() + y1 * s.fPixmap.rowBytes() ); in S32_alpha_D32_filter_DX() 344 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_filter_DX() 350 auto row0 = (const uint32_t*)( (const char*)s.fPixmap.addr() + y0 * s.fPixmap.rowBytes() ), in S32_alpha_D32_filter_DX() 351 row1 = (const uint32_t*)( (const char*)s.fPixmap.addr() + y1 * s.fPixmap.rowBytes() ); in S32_alpha_D32_filter_DX()
|
/external/skqp/gm/ |
D | showmiplevels.cpp | 144 SkBitmap bm = func(prevPM, level.fPixmap); in drawLevels() 147 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { in drawLevels() 151 x += level.fPixmap.width() + 4; in drawLevels() 153 y += level.fPixmap.height() + 4; in drawLevels() 156 prevPM = level.fPixmap; in drawLevels() 253 bm.installPixels(level.fPixmap); in drawLevels() 256 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { in drawLevels() 260 x += level.fPixmap.width() + 4; in drawLevels() 262 y += level.fPixmap.height() + 4; in drawLevels()
|
/external/skqp/bench/ |
D | CoverageBench.cpp | 23 SkAutoPixmapStorage fPixmap; member in DrawPathBench 36 fPixmap.alloc(SkImageInfo::MakeA8(500, 500)); in DrawPathBench() 40 fPixmap.erase(0); in DrawPathBench() 46 fDraw.fDst = fPixmap; in DrawPathBench()
|
/external/skia/bench/ |
D | CoverageBench.cpp | 24 SkAutoPixmapStorage fPixmap; member in DrawPathBench 38 fPixmap.alloc(SkImageInfo::MakeA8(500, 500)); in DrawPathBench() 42 fPixmap.erase(0); in DrawPathBench() 47 fDraw.fDst = fPixmap; in DrawPathBench()
|
/external/skia/tools/gpu/gl/glx/ |
D | CreatePlatformGLTestContext_glx.cpp | 71 Pixmap fPixmap; member in __anon6190a0d20111::GLXGLTestContext 108 , fPixmap(0) in GLXGLTestContext() 186 fPixmap = XCreatePixmap(fDisplay, RootWindow(fDisplay, vi->screen), 10, 10, vi->depth); in GLXGLTestContext() 188 if (!fPixmap) { in GLXGLTestContext() 194 fGlxPixmap = glXCreateGLXPixmap(fDisplay, vi, fPixmap); in GLXGLTestContext() 287 if (fPixmap) { in destroyGLContext() 288 XFreePixmap(fDisplay, fPixmap); in destroyGLContext() 289 fPixmap = 0; in destroyGLContext()
|
/external/skqp/tools/gpu/gl/glx/ |
D | CreatePlatformGLTestContext_glx.cpp | 71 Pixmap fPixmap; member in __anonb45612490111::GLXGLTestContext 108 , fPixmap(0) in GLXGLTestContext() 186 fPixmap = XCreatePixmap(fDisplay, RootWindow(fDisplay, vi->screen), 10, 10, vi->depth); in GLXGLTestContext() 188 if (!fPixmap) { in GLXGLTestContext() 194 fGlxPixmap = glXCreateGLXPixmap(fDisplay, vi, fPixmap); in GLXGLTestContext() 280 if (fPixmap) { in destroyGLContext() 281 XFreePixmap(fDisplay, fPixmap); in destroyGLContext() 282 fPixmap = 0; in destroyGLContext()
|
/external/skia/src/shaders/ |
D | SkBitmapProcShader.cpp | 23 if (fState->fPixmap.isOpaque() && (255 == this->getPaintAlpha())) { in BitmapProcShaderContext() 32 if (1 == fState->fPixmap.height() && only_scale_and_translate(this->getTotalInverse())) { in BitmapProcShaderContext() 52 SkASSERT(state.fPixmap.addr()); in shadeSpan()
|
/external/skqp/src/shaders/ |
D | SkBitmapProcShader.cpp | 29 if (fInfo->fPixmap.isOpaque() && (255 == this->getPaintAlpha())) { in BitmapProcInfoContext() 33 if (1 == fInfo->fPixmap.height() && only_scale_and_translate(this->getTotalInverse())) { in BitmapProcInfoContext() 70 SkASSERT(state.fPixmap.addr()); in shadeSpan()
|