/external/skia/src/gpu/ |
D | GrGpu.cpp | 106 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 …]
|
D | GrResourceProvider.cpp | 54 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 …]
|
D | GrResourceProvider.h | 90 int mipLevelCount); 342 int mipLevelCount, 355 int mipLevelCount) const;
|
D | GrDataUtils.h | 30 SkTArray<size_t>* individualMipOffsets, int mipLevelCount);
|
/external/skqp/src/gpu/ |
D | GrGpu.cpp | 106 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()
|
D | GrGpu.h | 97 int mipLevelCount); 191 GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount); 458 const GrMipLevel texels[], int mipLevelCount) = 0; 479 const GrMipLevel texels[], int mipLevelCount) = 0;
|
D | GrResourceProvider.cpp | 65 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/ |
D | fiddle_main.cpp | 152 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/ |
D | fiddle_main.cpp | 157 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/ |
D | GrVkGpu.cpp | 385 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 …]
|
D | GrVkGpu.h | 185 int mipLevelCount) override; 208 const GrMipLevel texels[], int mipLevelCount) override; 250 GrColorType colorType, const GrMipLevel texels[], int mipLevelCount); 253 int mipLevelCount);
|
/external/skia/tests/ |
D | MipMapTest.cpp | 65 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/ |
D | MipMapTest.cpp | 65 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/ |
D | GrMtlGpu.mm | 244 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/ |
D | GrMtlGpu.mm | 149 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 …]
|
D | GrMtlGpu.h | 133 const GrMipLevel texels[], int mipLevelCount) override; 152 const GrMipLevel[], int mipLevelCount) override;
|
/external/skia/src/gpu/dawn/ |
D | GrDawnGpu.cpp | 124 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/ |
D | GrVkGpu.cpp | 417 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 …]
|
D | GrVkGpu.h | 197 int mipLevelCount, 233 const GrMipLevel texels[], int mipLevelCount, 272 GrColorType colorType, const GrMipLevel texels[], int mipLevelCount);
|
/external/skqp/src/gpu/gl/ |
D | GrGLGpu.cpp | 789 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 …]
|
D | GrGLGpu.h | 188 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/ |
D | GrMockGpu.h | 60 int mipLevelCount) override; 84 const GrMipLevel texels[], int mipLevelCount) override { in onWritePixels() argument
|
/external/skia/src/gpu/mock/ |
D | GrMockGpu.h | 71 int mipLevelCount, 109 const GrMipLevel texels[], int mipLevelCount, in onWritePixels() argument
|
/external/skia/src/gpu/d3d/ |
D | GrD3DGpu.h | 88 int mipLevelCount, 126 const GrMipLevel texels[], int mipLevelCount, in onWritePixels() argument
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.h | 212 int mipLevelCount, 250 int mipLevelCount); 264 const GrMipLevel texels[], int mipLevelCount, 401 GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount,
|