Home
last modified time | relevance | path

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

12

/external/skqp/include/core/
DSkBitmap.h117 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/
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 …]
/external/skia/src/core/
DSkBitmapProcState.cpp34 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 …]
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 …]
DSkMipmapAccessor.cpp80 fUpper = levelRec.fPixmap; in SkMipmapAccessor()
89 fLower = levelRec.fPixmap; in SkMipmapAccessor()
DSkMipmap.cpp631 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()
DSkMipmap.h60 SkPixmap fPixmap; member
/external/skqp/tests/
DMipMapTest.cpp43 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/
DSkBitmapProcState.cpp34 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 …]
DSkBitmap.cpp43 , 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 …]
DSkBitmapProcState_matrixProcs.cpp90 *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 …]
DSkBitmapController.h28 const SkPixmap& pixmap() const { return fPixmap; } in pixmap()
36 SkPixmap fPixmap; variable
DSkBitmapController.cpp98 return fResultBitmap.installPixels(level.fPixmap); in processMediumRequest()
121 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes()); in State()
DSkMipMap.h50 SkPixmap fPixmap; member
/external/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 …]
/external/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 …]
/external/skqp/src/opts/
DSkBitmapProcState_opts.h102 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/
Dshowmiplevels.cpp144 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/
DCoverageBench.cpp23 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/
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()
/external/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp71 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/
DCreatePlatformGLTestContext_glx.cpp71 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/
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()
/external/skqp/src/shaders/
DSkBitmapProcShader.cpp29 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()

12