Home
last modified time | relevance | path

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

/third_party/skia/include/core/
DSkBitmap.h124 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 …]
/third_party/skia/src/core/
DSkBitmapProcState.cpp33 const unsigned maxX = s.fPixmap.width() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
38 const unsigned maxY = s.fPixmap.height() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
43 const SkPMColor* src = s.fPixmap.addr32(0, dstY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
82 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_nofilter_DX()
87 SkASSERT(y < (unsigned)s.fPixmap.height()); in S32_alpha_D32_nofilter_DX()
89 auto row = (const SkPMColor*)( (const char*)s.fPixmap.addr() + y * s.fPixmap.rowBytes() ); in S32_alpha_D32_nofilter_DX()
91 if (1 == s.fPixmap.width()) { in S32_alpha_D32_nofilter_DX()
125 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_nofilter_DXDY()
128 auto src = (const char*)s.fPixmap.addr(); in S32_alpha_D32_nofilter_DXDY()
129 size_t rb = s.fPixmap.rowBytes(); in S32_alpha_D32_nofilter_DXDY()
[all …]
DSkBitmap.cpp44 , 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 …]
DSkBitmapProcState_matrixProcs.cpp83 *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 …]
DSkMipmap.cpp634 new (&levels[i].fPixmap) SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); in Build()
638 const SkPixmap& dstPM = levels[i].fPixmap; in Build()
762 levelPtr->fPixmap.setColorSpace(fCS); in extractLevel()
777 if (fLevels[0].fPixmap. width() != std::max(1, dimension. width() >> 1) || in validForRootLevel()
778 fLevels[0].fPixmap.height() != std::max(1, dimension.height() >> 1)) { in validForRootLevel()
783 if (fLevels[i].fPixmap.colorType() != root.colorType() || in validForRootLevel()
784 fLevels[i].fPixmap.alphaType() != root.alphaType()) { in validForRootLevel()
818 levelPtr->fPixmap.setColorSpace(fCS); in getLevel()
853 buffer.writeDataAsByteArray(encode_to_data(level.fPixmap).get()); in serialize()
DSkMipmapAccessor.cpp80 fUpper = levelRec.fPixmap; in SkMipmapAccessor()
89 fLower = levelRec.fPixmap; in SkMipmapAccessor()
DSkMipmap.h60 SkPixmap fPixmap; member
DSkBitmapProcState.h51 SkPixmap fPixmap; member
/third_party/skia/tests/
DMipMapTest.cpp44 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 …]
/third_party/skia/src/opts/
DSkBitmapProcState_opts.h46 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 …]
/third_party/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp71 Pixmap fPixmap; member in __anon6a37eadd0111::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()
/third_party/skia/bench/
DCoverageBench.cpp24 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()
/third_party/skia/src/shaders/
DSkBitmapProcShader.cpp23 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()
/third_party/skia/tools/gpu/
DManagedBackendTexture.cpp100 levels.push_back(level.fPixmap); in MakeFromPixmap()
/third_party/skia/src/gpu/
DGrProxyProvider.cpp407 texels[i].fPixels = generatedMipLevel.fPixmap.addr(); in createMippedProxyFromBitmap()
408 texels[i].fRowBytes = generatedMipLevel.fPixmap.rowBytes(); in createMippedProxyFromBitmap()
410 SkASSERT(generatedMipLevel.fPixmap.colorType() == bitmap.colorType()); in createMippedProxyFromBitmap()
/third_party/skia/tools/
DDDLPromiseImageHelper.cpp53 pixmaps[i+1] = mipLevel.fPixmap; in normalMipLevels()
/third_party/skia/src/image/
DSkImage.cpp699 pm = level.fPixmap; in level()