Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/include/core/
DSkBitmap.h109 const SkPixmap& pixmap() const { return fPixmap; } in pixmap()
115 const SkImageInfo& info() const { return fPixmap.info(); } in info()
125 int width() const { return fPixmap.width(); } in width()
134 int height() const { return fPixmap.height(); } in height()
144 SkColorType colorType() const { return fPixmap.colorType(); } in colorType()
152 SkAlphaType alphaType() const { return fPixmap.alphaType(); } in alphaType()
160 SkColorSpace* colorSpace() const { return fPixmap.colorSpace(); } in colorSpace()
170 sk_sp<SkColorSpace> refColorSpace() const { return fPixmap.info().refColorSpace(); } in refColorSpace()
177 int bytesPerPixel() const { return fPixmap.info().bytesPerPixel(); } in bytesPerPixel()
184 int rowBytesAsPixels() const { return fPixmap.rowBytesAsPixels(); } in rowBytesAsPixels()
[all …]
/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()
/third_party/flutter/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()
171 fPixmap.reset(); in init()
181 fPixmap = fBMState->pixmap(); in init()
187 SkASSERT(fPixmap.addr()); in init()
[all …]
DSkBitmap.cpp44 , fPixmap (src.fPixmap) in SkBitmap()
53 , fPixmap (std::move(other.fPixmap)) in SkBitmap()
57 other.fPixmap.reset(); in SkBitmap()
66 fPixmap = src.fPixmap; in operator =()
76 fPixmap = std::move(other.fPixmap); in operator =()
79 other.fPixmap.reset(); in operator =()
93 fPixmap.reset(); in reset()
104 *bounds = fPixmap.bounds(); in getBounds()
138 fPixmap.reset(info.makeAlphaType(newAT), nullptr, SkToU32(rowBytes)); in setInfo()
150 auto newInfo = fPixmap.info().makeAlphaType(newAlphaType); in setAlphaType()
[all …]
DSkBitmapProcState_matrixProcs.cpp91 *xy++ = tile(mapper.fixedY(), s.fPixmap.height() - 1); in nofilter_scale()
95 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale()
153 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale()
159 const unsigned maxY = s.fPixmap.height() - 1; in filter_scale()
409 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale_neon()
413 const unsigned maxY = s.fPixmap.height() - 1; in nofilter_scale_neon()
511 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale_neon()
519 const unsigned maxY = s.fPixmap.height() - 1; in filter_scale_neon()
651 *xy++ = int_clamp(mapper.intY(), s.fPixmap.height()); in clampx_nofilter_trans()
654 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.cpp82 return fResultBitmap.installPixels(level.fPixmap); in processMediumRequest()
105 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes()); in State()
DSkMipMap.h50 SkPixmap fPixmap; member
/third_party/flutter/skia/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 …]
/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/flutter/skia/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()
/third_party/flutter/skia/gm/
Dshowmiplevels.cpp150 SkBitmap bm = func(prevPM, level.fPixmap); in drawLevels()
153 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { in drawLevels()
157 x += level.fPixmap.width() + 4; in drawLevels()
159 y += level.fPixmap.height() + 4; in drawLevels()
162 prevPM = level.fPixmap; in drawLevels()
259 bm.installPixels(level.fPixmap); in drawLevels()
262 if (level.fPixmap.width() <= 2 || level.fPixmap.height() <= 2) { in drawLevels()
266 x += level.fPixmap.width() + 4; in drawLevels()
268 y += level.fPixmap.height() + 4; in drawLevels()
Dasyncrescaleandread.cpp34 SkPixmap fPixmap; in do_read_and_scale() member
38 SkAssertResult(bmp.peekPixels(&context.fPixmap)); in do_read_and_scale()
43 context->fPixmap.reset(); in do_read_and_scale()
47 SkRectMemcpy(context->fPixmap.writable_addr(), context->fPixmap.rowBytes(), data, rowBytes, in do_read_and_scale()
48 context->fPixmap.info().minRowBytes(), context->fPixmap.height()); in do_read_and_scale()
/third_party/flutter/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp71 Pixmap fPixmap; member in __anonff0f76b00111::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()
/third_party/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp71 Pixmap fPixmap; member in __anonf2a0987b0111::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/flutter/skia/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()
/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/flutter/skia/src/shaders/
DSkBitmapProcShader.cpp28 if (fInfo->fPixmap.isOpaque() && (255 == this->getPaintAlpha())) { in BitmapProcInfoContext()
32 if (1 == fInfo->fPixmap.height() && only_scale_and_translate(this->getTotalInverse())) { in BitmapProcInfoContext()
69 SkASSERT(state.fPixmap.addr()); in shadeSpan()

12