Home
last modified time | relevance | path

Searched refs:fPixmap (Results 1 – 24 of 24) sorted by relevance

/external/skia/tests/
DMipMapTest.cpp45 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/
DSkBitmapProcState_sample.h34 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 …]
DSkBitmapProcState.cpp132 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 …]
DSkBitmapProcState_procs.h91 #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 …]
DSkBitmapProcState_matrix_template.h22 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()
DSkBitmapProcState_matrix.h58 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()
DSkBitmapProcState_shaderproc.h25 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()
DSkBitmapController.h27 const SkPixmap& pixmap() const { return fPixmap; } in pixmap()
32 SkPixmap fPixmap;
DSkBitmapController.cpp30 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()
DSkBitmapProcState_matrixProcs.cpp332 **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()
DSkBitmapProcShader.cpp114 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()
DSkMipMap.h31 SkPixmap fPixmap; member
DSkLightingShader.cpp431 const SkPixmap& pixmap = fDiffuseState->fPixmap; in LightingShaderContext()
493 SkASSERT(fDiffuseState->fPixmap.addr()); in shadeSpan()
494 SkASSERT(fNormalState->fPixmap.addr()); in shadeSpan()
DSkMipMap.cpp303 levels[i].fPixmap = SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); in Build()
307 const SkPixmap& dstPM = levels[i].fPixmap; in Build()
DSkBitmapProcState.h53 SkPixmap fPixmap; member
DSkPixmap.cpp20 fPixmap = pm; in reset()
/external/skia/src/opts/
DSkBitmapProcState_opts_mips_dsp.cpp21 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()
DSkBitmapProcState_opts_SSE2.cpp19 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 …]
DSkBitmapProcState_matrix_neon.h38 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 …]
DSkBitmapProcState_opts_SSSE3.cpp398 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/
DSkCreatePlatformGLContext_glx.cpp61 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/
Dshowmiplevels.cpp154 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/
DCoverageBench.cpp22 SkAutoPixmapStorage fPixmap; member in DrawPathBench
35 fPixmap.alloc(SkImageInfo::MakeA8(500, 500)); in DrawPathBench()
40 fDraw.fDst = fPixmap; in DrawPathBench()
/external/skia/include/core/
DSkPixmap.h255 : fUnlockProc(unlock), fUnlockContext(ctx), fPixmap(pm), fIsLocked(true) in SkAutoPixmapUnlock()
264 return fPixmap; in pixmap()
291 SkPixmap fPixmap; variable