/external/skia/tests/ |
MipMapTest.cpp | 45 REPORTER_ASSERT(reporter, level.fPixmap.addr()); 46 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0); 47 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0); 48 REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4); 50 if (prevLevel.fPixmap.addr()) { 51 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width()); 52 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height()) [all...] |
/external/skia/src/opts/ |
SkBitmapProcState_opts_mips_dsp.cpp | 21 const SkPMColor* SK_RESTRICT table = s.fPixmap.ctable()->readColors(); 22 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fPixmap.addr(); 23 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fPixmap.rowBytes()); 25 if (1 == s.fPixmap.width()) { 247 switch (fPixmap.colorType()) {
|
SkBitmapProcState_opts_SSE2.cpp | 19 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); 22 const char* srcAddr = static_cast<const char*>(s.fPixmap.addr()); 23 size_t rb = s.fPixmap.rowBytes(); 125 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); 128 const char* srcAddr = static_cast<const char*>(s.fPixmap.addr()); 129 size_t rb = s.fPixmap.rowBytes(); 252 const unsigned maxX = s.fPixmap.width() - 1; 258 const unsigned maxY = s.fPixmap.height() - 1; 373 const unsigned maxX = s.fPixmap.width() - 1; 375 const unsigned maxY = s.fPixmap.height() - 1 [all...] |
SkBitmapProcState_matrix_neon.h | 38 const unsigned maxX = s.fPixmap.width() - 1; 42 const unsigned maxY = s.fPixmap.height() - 1; 124 int maxX = s.fPixmap.width() - 1; 125 int maxY = s.fPixmap.height() - 1; 189 int maxX = s.fPixmap.width() - 1; 190 int maxY = s.fPixmap.height() - 1; 295 const unsigned maxX = s.fPixmap.width() - 1; 303 const unsigned maxY = s.fPixmap.height() - 1; 366 unsigned maxX = s.fPixmap.width() - 1; 367 unsigned maxY = s.fPixmap.height() - 1 [all...] |
SkBitmapProcState_opts_SSSE3.cpp | 398 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); 406 static_cast<const uint8_t*>(s.fPixmap.addr()); 407 const size_t rb = s.fPixmap.rowBytes(); 590 SkASSERT(kN32_SkColorType == s.fPixmap.colorType()); 598 static_cast<const uint8_t*>(s.fPixmap.addr()); 599 const size_t rb = s.fPixmap.rowBytes();
|
/external/skia/src/core/ |
SkBitmapProcState_sample.h | 34 const char* SK_RESTRICT srcAddr = (const char*)s.fPixmap.addr(); 35 size_t rb = s.fPixmap.rowBytes(); 42 SkASSERT((XY >> 16) < (unsigned)s.fPixmap.height() && 43 (XY & 0xFFFF) < (unsigned)s.fPixmap.width()); 48 SkASSERT((XY >> 16) < (unsigned)s.fPixmap.height() && 49 (XY & 0xFFFF) < (unsigned)s.fPixmap.width()); 55 SkASSERT((XY >> 16) < (unsigned)s.fPixmap.height() && 56 (XY & 0xFFFF) < (unsigned)s.fPixmap.width()); 77 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fPixmap.addr(); 81 SkASSERT((unsigned)xy[0] < (unsigned)s.fPixmap.height()) [all...] |
SkBitmapController.h | 27 const SkPixmap& pixmap() const { return fPixmap; } 32 SkPixmap fPixmap;
|
SkBitmapProcState.cpp | 132 fPixmap.reset(); 150 fPixmap = fBMState->pixmap(); 153 SkASSERT(fPixmap.addr()); 167 fInvMatrix.postIDiv(fPixmap.width(), fPixmap.height()); 182 ? just_trans_clamp(forward, fPixmap) 213 if (fPixmap.width() == origW && fPixmap.height() == origH) { 222 !valid_for_filtering(fPixmap.width() | fPixmap.height()) [all...] |
SkBitmapProcState_matrix_template.h | 22 const unsigned maxX = s.fPixmap.width() - 1; 26 const unsigned maxY = s.fPixmap.height() - 1; 86 int maxX = s.fPixmap.width() - 1; 87 int maxY = s.fPixmap.height() - 1; 101 int maxX = s.fPixmap.width() - 1; 102 int maxY = s.fPixmap.height() - 1;
|
SkBitmapProcState_shaderproc.h | 25 const unsigned maxX = s.fPixmap.width() - 1; 36 const unsigned maxY = s.fPixmap.height() - 1; 42 const char* SK_RESTRICT srcAddr = (const char*)s.fPixmap.addr(); 43 size_t rb = s.fPixmap.rowBytes();
|
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()->readColors() 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...] |
SkMipMap.h | 31 SkPixmap fPixmap;
|
SkBitmapProcState_matrix.h | 58 const unsigned maxX = s.fPixmap.width() - 1; 66 const unsigned maxY = s.fPixmap.height() - 1; 104 unsigned maxX = s.fPixmap.width() - 1; 105 unsigned maxY = s.fPixmap.height() - 1; 121 unsigned maxX = s.fPixmap.width() - 1; 122 unsigned maxY = s.fPixmap.height() - 1;
|
SkBitmapController.cpp | 30 if (nullptr == state->fPixmap.addr()) { 192 return fResultBitmap.installPixels(level.fPixmap); 216 // fResultBitmap.getPixels() may be null, but our caller knows to check fPixmap.addr() 218 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes(),
|
SkBitmapProcState_matrixProcs.cpp | 332 **xy = s.fIntTileProcY(mapper.intY(), s.fPixmap.height()); 343 const int width = s.fPixmap.width(); 391 const int width = s.fPixmap.width(); 431 const int width = s.fPixmap.width(); 518 fFilterOneX = SK_Fixed1 / fPixmap.width(); 519 fFilterOneY = SK_Fixed1 / fPixmap.height();
|
SkBitmapProcShader.cpp | 114 if (fState->fPixmap.isOpaque() && (255 == this->getPaintAlpha())) { 118 if (1 == fState->fPixmap.height() && only_scale_and_translate(this->getTotalInverse())) { 153 SkASSERT(state.fPixmap.addr());
|
SkLightingShader.cpp | 431 const SkPixmap& pixmap = fDiffuseState->fPixmap; 493 SkASSERT(fDiffuseState->fPixmap.addr()); 494 SkASSERT(fNormalState->fPixmap.addr());
|
SkMipMap.cpp | 303 levels[i].fPixmap = SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); 307 const SkPixmap& dstPM = levels[i].fPixmap;
|
SkBitmapProcState.h | 53 SkPixmap fPixmap;
|
SkPixmap.cpp | 20 fPixmap = pm;
|
/external/skia/bench/ |
CoverageBench.cpp | 22 SkAutoPixmapStorage fPixmap; 35 fPixmap.alloc(SkImageInfo::MakeA8(500, 500)); 40 fDraw.fDst = fPixmap;
|
/external/skia/gm/ |
showmiplevels.cpp | 154 SkBitmap bm = func(prevPM, level.fPixmap); 157 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { 161 x += level.fPixmap.width() + 4; 163 y += level.fPixmap.height() + 4; 166 prevPM = level.fPixmap; 263 bm.installPixels(level.fPixmap); 266 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { 270 x += level.fPixmap.width() + 4 [all...] |
/external/skia/src/gpu/gl/glx/ |
SkCreatePlatformGLContext_glx.cpp | 61 Pixmap fPixmap; 68 , fPixmap(0) 139 fPixmap = XCreatePixmap(fDisplay, RootWindow(fDisplay, vi->screen), 10, 10, vi->depth); 141 if (!fPixmap) { 147 fGlxPixmap = glXCreateGLXPixmap(fDisplay, vi, fPixmap); 310 if (fPixmap) { 311 XFreePixmap(fDisplay, fPixmap); 312 fPixmap = 0;
|
/external/skia/include/core/ |
SkPixmap.h | 255 : fUnlockProc(unlock), fUnlockContext(ctx), fPixmap(pm), fIsLocked(true) 264 return fPixmap; 291 SkPixmap fPixmap;
|