/external/skia/tests/ |
D | MipMapTest.cpp | 45 REPORTER_ASSERT(reporter, level.fPixmap.addr()); in DEF_TEST() 46 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0); in DEF_TEST() 47 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0); in DEF_TEST() 48 … REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4); in DEF_TEST() 50 if (prevLevel.fPixmap.addr()) { in DEF_TEST() 51 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width()); in DEF_TEST() 52 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height()); in DEF_TEST() 73 REPORTER_ASSERT(reporter, level.fPixmap.addr()); in test_mipmap_generation() 79 REPORTER_ASSERT(reporter, level.fPixmap.width() == currentWidth); in test_mipmap_generation() 80 REPORTER_ASSERT(reporter, level.fPixmap.height() == currentHeight); in test_mipmap_generation()
|
/external/skia/src/core/ |
D | SkBitmapProcState_sample.h | 34 const char* SK_RESTRICT srcAddr = (const char*)s.fPixmap.addr(); in MAKENAME() 35 size_t rb = s.fPixmap.rowBytes(); in MAKENAME() 42 SkASSERT((XY >> 16) < (unsigned)s.fPixmap.height() && in MAKENAME() 43 (XY & 0xFFFF) < (unsigned)s.fPixmap.width()); in MAKENAME() 48 SkASSERT((XY >> 16) < (unsigned)s.fPixmap.height() && in MAKENAME() 49 (XY & 0xFFFF) < (unsigned)s.fPixmap.width()); in MAKENAME() 55 SkASSERT((XY >> 16) < (unsigned)s.fPixmap.height() && in MAKENAME() 56 (XY & 0xFFFF) < (unsigned)s.fPixmap.width()); in MAKENAME() 77 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fPixmap.addr(); in MAKENAME() 81 SkASSERT((unsigned)xy[0] < (unsigned)s.fPixmap.height()); in MAKENAME() [all …]
|
D | SkBitmapProcState.cpp | 132 fPixmap.reset(); in chooseProcs() 150 fPixmap = fBMState->pixmap(); in chooseProcs() 153 SkASSERT(fPixmap.addr()); in chooseProcs() 167 fInvMatrix.postIDiv(fPixmap.width(), fPixmap.height()); in chooseProcs() 182 ? just_trans_clamp(forward, fPixmap) in chooseProcs() 213 if (fPixmap.width() == origW && fPixmap.height() == origH) { in chooseProcs() 222 !valid_for_filtering(fPixmap.width() | fPixmap.height())) in chooseProcs() 241 const SkAlphaType at = fPixmap.alphaType(); in chooseScanlineProcs() 260 switch (fPixmap.colorType()) { in chooseScanlineProcs() 386 const int maxX = s.fPixmap.width() - 1; in Clamp_S32_D32_nofilter_trans_shaderproc() [all …]
|
D | SkBitmapProcState_procs.h | 91 #define CHECKSTATE(state) SkASSERT(4 == state.fPixmap.info().bytesPerPixel()); \ 102 #define CHECKSTATE(state) SkASSERT(4 == state.fPixmap.info().bytesPerPixel()); \ 120 #define CHECKSTATE(state) SkASSERT(kRGB_565_SkColorType == state.fPixmap.colorType()); \ 135 #define CHECKSTATE(state) SkASSERT(kRGB_565_SkColorType == state.fPixmap.colorType()); \ 149 #define CHECKSTATE(state) SkASSERT(kIndex_8_SkColorType == state.fPixmap.colorType()); \ 151 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fPixmap.ctable()->readCo… 162 #define CHECKSTATE(state) SkASSERT(kIndex_8_SkColorType == state.fPixmap.colorType()); \ 165 … const SkPMColor* SK_RESTRICT table = state.fPixmap.ctable()->readColors() 178 #define CHECKSTATE(state) SkASSERT(kARGB_4444_SkColorType == state.fPixmap.colorType()); \ 193 #define CHECKSTATE(state) SkASSERT(kARGB_4444_SkColorType == state.fPixmap.colorType()); \ [all …]
|
D | SkBitmapProcState_matrix_template.h | 22 const unsigned maxX = s.fPixmap.width() - 1; in NoFilterProc_Scale() 26 const unsigned maxY = s.fPixmap.height() - 1; in NoFilterProc_Scale() 86 int maxX = s.fPixmap.width() - 1; in NoFilterProc_Affine() 87 int maxY = s.fPixmap.height() - 1; in NoFilterProc_Affine() 101 int maxX = s.fPixmap.width() - 1; in NoFilterProc_Persp() 102 int maxY = s.fPixmap.height() - 1; in NoFilterProc_Persp()
|
D | SkBitmapProcState_matrix.h | 58 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_FILTER_NAME() 66 const unsigned maxY = s.fPixmap.height() - 1; in SCALE_FILTER_NAME() 104 unsigned maxX = s.fPixmap.width() - 1; in AFFINE_FILTER_NAME() 105 unsigned maxY = s.fPixmap.height() - 1; in AFFINE_FILTER_NAME() 121 unsigned maxX = s.fPixmap.width() - 1; in PERSP_FILTER_NAME() 122 unsigned maxY = s.fPixmap.height() - 1; in PERSP_FILTER_NAME()
|
D | SkBitmapProcState_shaderproc.h | 25 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_FILTER_NAME() 36 const unsigned maxY = s.fPixmap.height() - 1; in SCALE_FILTER_NAME() 42 const char* SK_RESTRICT srcAddr = (const char*)s.fPixmap.addr(); in SCALE_FILTER_NAME() 43 size_t rb = s.fPixmap.rowBytes(); in SCALE_FILTER_NAME()
|
D | SkBitmapController.h | 27 const SkPixmap& pixmap() const { return fPixmap; } in pixmap() 32 SkPixmap fPixmap;
|
D | SkBitmapController.cpp | 30 if (nullptr == state->fPixmap.addr()) { in requestBitmap() 192 return fResultBitmap.installPixels(level.fPixmap); in processMediumRequest() 218 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes(), in SkDefaultBitmapControllerState()
|
D | SkBitmapProcState_matrixProcs.cpp | 332 **xy = s.fIntTileProcY(mapper.intY(), s.fPixmap.height()); in nofilter_trans_preamble() 343 const int width = s.fPixmap.width(); in clampx_nofilter_trans() 391 const int width = s.fPixmap.width(); in repeatx_nofilter_trans() 431 const int width = s.fPixmap.width(); in mirrorx_nofilter_trans() 518 fFilterOneX = SK_Fixed1 / fPixmap.width(); in chooseMatrixProc() 519 fFilterOneY = SK_Fixed1 / fPixmap.height(); in chooseMatrixProc()
|
D | SkBitmapProcShader.cpp | 114 if (fState->fPixmap.isOpaque() && (255 == this->getPaintAlpha())) { in BitmapProcShaderContext() 118 if (1 == fState->fPixmap.height() && only_scale_and_translate(this->getTotalInverse())) { in BitmapProcShaderContext() 153 SkASSERT(state.fPixmap.addr()); in shadeSpan()
|
D | SkMipMap.h | 31 SkPixmap fPixmap; member
|
D | SkLightingShader.cpp | 431 const SkPixmap& pixmap = fDiffuseState->fPixmap; in LightingShaderContext() 493 SkASSERT(fDiffuseState->fPixmap.addr()); in shadeSpan() 494 SkASSERT(fNormalState->fPixmap.addr()); in shadeSpan()
|
D | SkMipMap.cpp | 303 levels[i].fPixmap = SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); in Build() 307 const SkPixmap& dstPM = levels[i].fPixmap; in Build()
|
D | SkBitmapProcState.h | 53 SkPixmap fPixmap; member
|
D | SkPixmap.cpp | 20 fPixmap = pm; in reset()
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts_mips_dsp.cpp | 21 const SkPMColor* SK_RESTRICT table = s.fPixmap.ctable()->readColors(); in SI8_opaque_D32_nofilter_DX_mips_dsp() 22 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fPixmap.addr(); in SI8_opaque_D32_nofilter_DX_mips_dsp() 23 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fPixmap.rowBytes()); in SI8_opaque_D32_nofilter_DX_mips_dsp() 25 if (1 == s.fPixmap.width()) { in SI8_opaque_D32_nofilter_DX_mips_dsp() 247 switch (fPixmap.colorType()) { in platformProcs()
|
D | SkBitmapProcState_opts_SSE2.cpp | 19 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_opaque_D32_filter_DX_SSE2() 22 const char* srcAddr = static_cast<const char*>(s.fPixmap.addr()); in S32_opaque_D32_filter_DX_SSE2() 23 size_t rb = s.fPixmap.rowBytes(); in S32_opaque_D32_filter_DX_SSE2() 125 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_alpha_D32_filter_DX_SSE2() 128 const char* srcAddr = static_cast<const char*>(s.fPixmap.addr()); in S32_alpha_D32_filter_DX_SSE2() 129 size_t rb = s.fPixmap.rowBytes(); in S32_alpha_D32_filter_DX_SSE2() 252 const unsigned maxX = s.fPixmap.width() - 1; in ClampX_ClampY_filter_scale_SSE2() 258 const unsigned maxY = s.fPixmap.height() - 1; in ClampX_ClampY_filter_scale_SSE2() 373 const unsigned maxX = s.fPixmap.width() - 1; in ClampX_ClampY_nofilter_scale_SSE2() 375 const unsigned maxY = s.fPixmap.height() - 1; in ClampX_ClampY_nofilter_scale_SSE2() [all …]
|
D | SkBitmapProcState_matrix_neon.h | 38 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_NOFILTER_NAME() 42 const unsigned maxY = s.fPixmap.height() - 1; in SCALE_NOFILTER_NAME() 124 int maxX = s.fPixmap.width() - 1; in AFFINE_NOFILTER_NAME() 125 int maxY = s.fPixmap.height() - 1; in AFFINE_NOFILTER_NAME() 189 int maxX = s.fPixmap.width() - 1; in PERSP_NOFILTER_NAME() 190 int maxY = s.fPixmap.height() - 1; in PERSP_NOFILTER_NAME() 295 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_FILTER_NAME() 303 const unsigned maxY = s.fPixmap.height() - 1; in SCALE_FILTER_NAME() 366 unsigned maxX = s.fPixmap.width() - 1; in AFFINE_FILTER_NAME() 367 unsigned maxY = s.fPixmap.height() - 1; in AFFINE_FILTER_NAME() [all …]
|
D | SkBitmapProcState_opts_SSSE3.cpp | 398 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_generic_D32_filter_DX_SSSE3() 406 static_cast<const uint8_t*>(s.fPixmap.addr()); in S32_generic_D32_filter_DX_SSSE3() 407 const size_t rb = s.fPixmap.rowBytes(); in S32_generic_D32_filter_DX_SSSE3() 590 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); in S32_generic_D32_filter_DXDY_SSSE3() 598 static_cast<const uint8_t*>(s.fPixmap.addr()); in S32_generic_D32_filter_DXDY_SSSE3() 599 const size_t rb = s.fPixmap.rowBytes(); in S32_generic_D32_filter_DXDY_SSSE3()
|
/external/skia/src/gpu/gl/glx/ |
D | SkCreatePlatformGLContext_glx.cpp | 61 Pixmap fPixmap; member in __anon40f88ee10111::GLXGLContext 68 , fPixmap(0) in GLXGLContext() 139 fPixmap = XCreatePixmap(fDisplay, RootWindow(fDisplay, vi->screen), 10, 10, vi->depth); in GLXGLContext() 141 if (!fPixmap) { in GLXGLContext() 147 fGlxPixmap = glXCreateGLXPixmap(fDisplay, vi, fPixmap); in GLXGLContext() 310 if (fPixmap) { in destroyGLContext() 311 XFreePixmap(fDisplay, fPixmap); in destroyGLContext() 312 fPixmap = 0; in destroyGLContext()
|
/external/skia/gm/ |
D | showmiplevels.cpp | 154 SkBitmap bm = func(prevPM, level.fPixmap); in drawLevels() 157 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { in drawLevels() 161 x += level.fPixmap.width() + 4; in drawLevels() 163 y += level.fPixmap.height() + 4; in drawLevels() 166 prevPM = level.fPixmap; in drawLevels() 263 bm.installPixels(level.fPixmap); in drawLevels() 266 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { in drawLevels() 270 x += level.fPixmap.width() + 4; in drawLevels() 272 y += level.fPixmap.height() + 4; in drawLevels()
|
/external/skia/bench/ |
D | CoverageBench.cpp | 22 SkAutoPixmapStorage fPixmap; member in DrawPathBench 35 fPixmap.alloc(SkImageInfo::MakeA8(500, 500)); in DrawPathBench() 40 fDraw.fDst = fPixmap; in DrawPathBench()
|
/external/skia/include/core/ |
D | SkPixmap.h | 255 : fUnlockProc(unlock), fUnlockContext(ctx), fPixmap(pm), fIsLocked(true) in SkAutoPixmapUnlock() 264 return fPixmap; in pixmap() 291 SkPixmap fPixmap; variable
|