Home
last modified time | relevance | path

Searched refs:mipLevelCount (Results 1 – 25 of 43) sorted by relevance

12

/external/skia/src/gpu/
DGrGpu.cpp106 const GrMipLevel* texels, int mipLevelCount, const GrCaps* caps) { in validate_texel_levels() argument
107 SkASSERT(mipLevelCount > 0); in validate_texel_levels()
113 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; ++currentMipLevel) { in validate_texel_levels()
131 if (currentMipLevel != mipLevelCount - 1) { in validate_texel_levels()
140 if (mipLevelCount != 1 && (w != 1 || h != 1)) { in validate_texel_levels()
147 return levelsWithPixelsCnt == 1 || levelsWithPixelsCnt == mipLevelCount; in validate_texel_levels()
156 int mipLevelCount, in createTextureCommon() argument
163 GrMipMapped mipMapped = mipLevelCount > 1 ? GrMipMapped::kYes : GrMipMapped::kNo; in createTextureCommon()
182 mipLevelCount, in createTextureCommon()
206 int mipLevelCount = 1; in createTexture() local
[all …]
DGrResourceProvider.cpp54 int mipLevelCount) { in createTexture() argument
57 SkASSERT(mipLevelCount > 0); in createTexture()
63 GrMipMapped mipMapped = mipLevelCount > 1 ? GrMipMapped::kYes : GrMipMapped::kNo; in createTexture()
69 bool hasPixels = mipLevelCount && texels[0].fPixels; in createTexture()
76 return this->writePixels(std::move(scratch), colorType, dimensions, texels, mipLevelCount); in createTexture()
82 tempColorType = this->prepareLevels(format, colorType, dimensions, texels, mipLevelCount, in createTexture()
90 mipLevelCount); in createTexture()
593 int mipLevelCount, in prepareLevels() argument
596 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in prepareLevels()
604 tempLevels->reset(mipLevelCount); in prepareLevels()
[all …]
DGrResourceProvider.h90 int mipLevelCount);
342 int mipLevelCount,
355 int mipLevelCount) const;
DGrDataUtils.h30 SkTArray<size_t>* individualMipOffsets, int mipLevelCount);
/external/skqp/src/gpu/
DGrGpu.cpp106 const GrMipLevel texels[], int mipLevelCount) { in createTexture() argument
110 GrMipMapped mipMapped = mipLevelCount > 1 ? GrMipMapped::kYes : GrMipMapped::kNo; in createTexture()
122 if (mipLevelCount && (desc.fFlags & kPerformInitialClear_GrSurfaceFlag)) { in createTexture()
131 sk_sp<GrTexture> tex = this->onCreateTexture(desc, budgeted, texels, mipLevelCount); in createTexture()
137 if (mipLevelCount) { in createTexture()
269 GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount) { in writePixels() argument
276 if (1 == mipLevelCount) { in writePixels()
288 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; currentMipLevel++) { in writePixels()
296 mipLevelCount)) { in writePixels()
298 this->didWriteToSurface(surface, kTopLeft_GrSurfaceOrigin, &rect, mipLevelCount); in writePixels()
DGrGpu.h97 int mipLevelCount);
191 GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount);
458 const GrMipLevel texels[], int mipLevelCount) = 0;
479 const GrMipLevel texels[], int mipLevelCount) = 0;
DGrResourceProvider.cpp65 const GrMipLevel texels[], int mipLevelCount) { in createTexture() argument
68 SkASSERT(mipLevelCount > 0); in createTexture()
74 GrMipMapped mipMapped = mipLevelCount > 1 ? GrMipMapped::kYes : GrMipMapped::kNo; in createTexture()
79 return fGpu->createTexture(desc, budgeted, texels, mipLevelCount); in createTexture()
/external/skqp/tools/fiddle/
Dfiddle_main.cpp152 int mipLevelCount = GrMipMapped::kYes == options.fMipMapping in setup_backend_objects() local
155 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects()
160 for (int i = 1; i < mipLevelCount; i++) { in setup_backend_objects()
166 mipLevelCount); in setup_backend_objects()
207 int mipLevelCount = GrMipMapped::kYes == options.fOffScreenMipMapping in setup_backend_objects() local
210 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects()
215 for (int i = 1; i < mipLevelCount; i++) { in setup_backend_objects()
221 texels.get(), mipLevelCount); in setup_backend_objects()
/external/skia/tools/fiddle/
Dfiddle_main.cpp157 int mipLevelCount = GrMipMapped::kYes == options.fMipMapping in setup_backend_objects() local
160 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects()
165 for (int i = 1; i < mipLevelCount; i++) { in setup_backend_objects()
172 SkBudgeted::kNo, GrProtected::kNo, texels.get(), mipLevelCount); in setup_backend_objects()
213 int mipLevelCount = in setup_backend_objects() local
217 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects()
222 for (int i = 1; i < mipLevelCount; i++) { in setup_backend_objects()
230 mipLevelCount); in setup_backend_objects()
/external/skqp/src/gpu/vk/
DGrVkGpu.cpp385 int mipLevelCount) { in onWritePixels() argument
392 if (!mipLevelCount || !texels[0].fPixels) { in onWritePixels()
400 if (mipLevelCount > 1) { in onWritePixels()
416 SkASSERT(mipLevelCount <= vkTex->texturePriv().maxMipMapLevel() + 1); in onWritePixels()
418 mipLevelCount); in onWritePixels()
593 int mipLevelCount) { in uploadTexDataOptimal() argument
596 SkASSERT(1 == mipLevelCount || in uploadTexDataOptimal()
601 SkASSERT(1 == mipLevelCount || mipLevelCount == (tex->texturePriv().maxMipMapLevel() + 1)); in uploadTexDataOptimal()
626 mipLevelCount = 1; in uploadTexDataOptimal()
637 texelsShallowCopy.reset(mipLevelCount); in uploadTexDataOptimal()
[all …]
DGrVkGpu.h185 int mipLevelCount) override;
208 const GrMipLevel texels[], int mipLevelCount) override;
250 GrColorType colorType, const GrMipLevel texels[], int mipLevelCount);
253 int mipLevelCount);
/external/skia/tests/
DMipMapTest.cpp65 const int mipLevelCount = mm->countLevels(); in test_mipmap_generation() local
66 REPORTER_ASSERT(reporter, mipLevelCount == expectedMipLevelCount); in test_mipmap_generation()
67 REPORTER_ASSERT(reporter, mipLevelCount == SkMipMap::ComputeLevelCount(width, height)); in test_mipmap_generation()
68 for (int i = 0; i < mipLevelCount; ++i) { in test_mipmap_generation()
/external/skqp/tests/
DMipMapTest.cpp65 const int mipLevelCount = mm->countLevels(); in test_mipmap_generation() local
66 REPORTER_ASSERT(reporter, mipLevelCount == expectedMipLevelCount); in test_mipmap_generation()
67 REPORTER_ASSERT(reporter, mipLevelCount == SkMipMap::ComputeLevelCount(width, height)); in test_mipmap_generation()
68 for (int i = 0; i < mipLevelCount; ++i) { in test_mipmap_generation()
/external/skia/src/gpu/mtl/
DGrMtlGpu.mm244 int mipLevelCount) {
247 SkASSERT(1 == mipLevelCount ||
252 SkASSERT(1 == mipLevelCount || mipLevelCount == (tex->texturePriv().maxMipMapLevel() + 1));
267 SkASSERT(1 == mipLevelCount || mipLevelCount == (int)mtlTexture.mipmapLevelCount);
269 if (1 == mipLevelCount && !texels[0].fPixels) {
273 for (int i = 0; i < mipLevelCount; ++i) {
282 SkTArray<size_t> individualMipOffsets(mipLevelCount);
284 bpp, {width, height}, &individualMipOffsets, mipLevelCount);
301 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; currentMipLevel++) {
303 SkASSERT(1 == mipLevelCount || currentHeight == layerHeight);
[all …]
/external/skqp/src/gpu/mtl/
DGrMtlGpu.mm149 int mipLevelCount) {
164 SkASSERT(1 == mipLevelCount || mipLevelCount == (int)mtlTexture.mipmapLevelCount);
167 transferDesc.mipmapLevelCount = mipLevelCount;
187 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; currentMipLevel++) {
213 if (mipLevelCount < (int) tex->mtlTexture().mipmapLevelCount) {
239 const GrMipLevel texels[], int mipLevelCount) {
240 int mipLevels = !mipLevelCount ? 1 : mipLevelCount;
301 if (mipLevelCount && texels[0].fPixels) {
303 mipLevelCount)) {
750 int mipLevelCount) {
[all …]
DGrMtlGpu.h133 const GrMipLevel texels[], int mipLevelCount) override;
152 const GrMipLevel[], int mipLevelCount) override;
/external/skia/src/gpu/dawn/
DGrDawnGpu.cpp124 const GrMipLevel texels[], int mipLevelCount, in onWritePixels() argument
130 texture->upload(srcColorType, texels, mipLevelCount, in onWritePixels()
157 int mipLevelCount, in onCreateTexture() argument
166 mipLevelCount > 1 ? GrMipMapsStatus::kDirty : GrMipMapsStatus::kNotAllocated; in onCreateTexture()
169 budgeted, mipLevelCount, mipMapsStatus); in onCreateTexture()
299 desc.mipLevelCount = numMipLevels; in onCreateBackendTexture()
316 for (uint32_t i = 0; i < desc.mipLevelCount; i++) { in onCreateBackendTexture()
354 info.fLevelCount = desc.mipLevelCount; in onCreateBackendTexture()
414 info.fLevelCount = desc.mipLevelCount; in createTestingOnlyBackendRenderTarget()
/external/skia/src/gpu/vk/
DGrVkGpu.cpp417 const GrMipLevel texels[], int mipLevelCount, in onWritePixels() argument
425 if (!mipLevelCount || !texels[0].fPixels) { in onWritePixels()
433 if (mipLevelCount > 1) { in onWritePixels()
451 SkASSERT(mipLevelCount <= vkTex->texturePriv().maxMipMapLevel() + 1); in onWritePixels()
453 mipLevelCount); in onWritePixels()
745 int mipLevelCount) { in uploadTexDataOptimal() argument
748 SkASSERT(1 == mipLevelCount || in uploadTexDataOptimal()
753 SkASSERT(1 == mipLevelCount || mipLevelCount == (tex->texturePriv().maxMipMapLevel() + 1)); in uploadTexDataOptimal()
772 mipLevelCount = 1; in uploadTexDataOptimal()
783 texelsShallowCopy.reset(mipLevelCount); in uploadTexDataOptimal()
[all …]
DGrVkGpu.h197 int mipLevelCount,
233 const GrMipLevel texels[], int mipLevelCount,
272 GrColorType colorType, const GrMipLevel texels[], int mipLevelCount);
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp789 int mipLevelCount) { in onWritePixels() argument
810 mipLevelCount); in onWritePixels()
950 const GrMipLevel texels[], int mipLevelCount, in allocate_and_populate_texture() argument
960 useTexStorage &= mipLevelCount > 1; in allocate_and_populate_texture()
965 TexStorage2D(target, SkTMax(mipLevelCount, 1), internalFormatForTexStorage, in allocate_and_populate_texture()
971 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; currentMipLevel++) { in allocate_and_populate_texture()
993 if (!mipLevelCount) { in allocate_and_populate_texture()
1008 for (int currentMipLevel = 0; currentMipLevel < mipLevelCount; currentMipLevel++) { in allocate_and_populate_texture()
1051 const GrMipLevel texels[], int mipLevelCount, in allocate_and_populate_compressed_texture() argument
1062 useTexStorage &= mipLevelCount > 1; in allocate_and_populate_compressed_texture()
[all …]
DGrGLGpu.h188 const GrMipLevel texels[], int mipLevelCount) override;
213 int mipLevelCount, GrMipMapsStatus* mipMapsStatus);
233 const GrMipLevel texels[], int mipLevelCount) override;
384 GrPixelConfig dataConfig, const GrMipLevel texels[], int mipLevelCount,
391 const GrMipLevel texels[], int mipLevelCount,
/external/skqp/src/gpu/mock/
DGrMockGpu.h60 int mipLevelCount) override;
84 const GrMipLevel texels[], int mipLevelCount) override { in onWritePixels() argument
/external/skia/src/gpu/mock/
DGrMockGpu.h71 int mipLevelCount,
109 const GrMipLevel texels[], int mipLevelCount, in onWritePixels() argument
/external/skia/src/gpu/d3d/
DGrD3DGpu.h88 int mipLevelCount,
126 const GrMipLevel texels[], int mipLevelCount, in onWritePixels() argument
/external/skia/src/gpu/gl/
DGrGLGpu.h212 int mipLevelCount,
250 int mipLevelCount);
264 const GrMipLevel texels[], int mipLevelCount,
401 GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount,

12