/external/skia/gm/ |
drawatlascolor.cpp | 14 // Create a square atlas of: 56 // and transparency in the atlas image 65 return SkString("draw-atlas-colors"); 76 auto atlas = make_atlas(canvas, kAtlasSize); variable 151 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, 155 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
|
drawatlas.cpp | 24 // that drawAtlas draws a subset-region of the atlas. 46 return SkString("draw-atlas"); 55 auto atlas = MakeAtlas(canvas, target); variable 92 canvas->drawAtlas(atlas.get(), xform, tex, N, nullptr, &paint); 94 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn, nullptr, &paint); 192 * This GM produces a series of pairs of images (atlas | vertices).
|
/external/skia/src/gpu/ccpr/ |
GrCCPRPathProcessor.h | 57 GrCCPRPathProcessor(GrResourceProvider*, sk_sp<GrTextureProxy> atlas, SkPath::FillType, 61 const GrTexture* atlas() const { return fAtlasAccess.peekTexture(); } function in class:GrCCPRPathProcessor
|
GrCoverageCountingPathRenderer.cpp | 204 GrCCPRAtlas* atlas = nullptr; local 235 if (atlas && !atlas->addRect(w, h, &atlasLocation)) { 236 // The atlas is out of room and can't grow any bigger. 237 auto atlasOp = atlasOpsBuilder.createIntermediateOp(atlas->drawBounds()); 238 if (auto rtc = atlas->finalize(onFlushRP, std::move(atlasOp))) { 242 op->addAtlasBatch(atlas, pathInstanceIdx); 244 atlas = nullptr; 247 if (!atlas) { 248 atlas = &fPerFlushAtlases.emplace_back(*onFlushRP->caps(), w, h) [all...] |
/external/skia/src/gpu/effects/ |
GrBitmapTextGeoProc.cpp | 34 SkDEBUGCODE(GrTexture* atlas = cte.textureSampler(0).peekTexture()); 35 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); 99 // Currently we hardcode numbers to convert atlas coordinates to normalized floating point 101 GrTextureProxy* atlas = gp.textureSampler(0).proxy(); local 102 if (atlas) { 103 b->add32(atlas->width()); 104 b->add32(atlas->height());
|
GrDistanceFieldGeoProc.cpp | 87 GrTexture* atlas = dfTexEffect.textureSampler(0).peekTexture(); variable 88 SkASSERT(atlas && SkIsPow2(atlas->width()) && SkIsPow2(atlas->height())); 93 atlas->width(), atlas->height(), 207 // Currently we hardcode numbers to convert atlas coordinates to normalized floating point 209 GrTextureProxy* atlas = gp.textureSampler(0).proxy(); local 210 if (atlas) { 211 b->add32(atlas->width()) 599 GrTexture* atlas = dfTexEffect.textureSampler(0).peekTexture(); variable 759 GrTextureProxy* atlas = gp.textureSampler(0).proxy(); local [all...] |
/external/mesa3d/src/mesa/main/ |
shared.c | 146 * Callback for deleting a bitmap atlas. Called by _mesa_HashDeleteAll(). 151 struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data; local 153 _mesa_delete_bitmap_atlas(ctx, atlas);
|
dlist.c | 644 _mesa_delete_bitmap_atlas(struct gl_context *ctx, struct gl_bitmap_atlas *atlas) 646 if (atlas->texObj) { 647 ctx->Driver.DeleteTexture(ctx, atlas->texObj); 649 free(atlas->glyphs); 659 struct gl_bitmap_atlas *atlas; local 662 atlas = _mesa_HashLookup(ctx->Shared->BitmapAtlas, listBase); 663 return atlas; 668 * Create new bitmap atlas and insert into hash table. 673 struct gl_bitmap_atlas *atlas; local 678 atlas = calloc(1, sizeof(*atlas)) 1128 struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data; local 9227 struct gl_bitmap_atlas *atlas = lookup_bitmap_atlas(ctx, list); local 9282 struct gl_bitmap_atlas *atlas = lookup_bitmap_atlas(ctx, base); local 9450 struct gl_bitmap_atlas *atlas; local [all...] |
/external/skia/experimental/GLFWTest/ |
glfw_main.cpp | 79 sk_sp<SkImage> atlas; local 87 atlas.reset(SkImage::NewFromEncoded(imageData.get())); 88 if (!atlas) { 97 SkScalar anchorX = atlas->width()*0.5f; 98 SkScalar anchorY = atlas->height()*0.5f; 105 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height()); 111 tex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, atlas->width(), atlas->height()); 161 canvas->drawAtlas(atlas, xform, tex, nullptr, kGrid*kGrid+1, SkXfermode::kSrcOver_Mode [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
SkiaPipeline.cpp | 187 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas(); local 189 atlas->prepareForDraw(grContext); 191 vd->updateCache(atlas, grContext);
|
/frameworks/base/libs/hwui/ |
VectorDrawable.cpp | 495 void Tree::updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext* context) { 503 auto atlasEntry = atlas->requestNewEntry(scaledWidth, scaledHeight, context); 507 mCache.setAtlas(atlas, atlasEntry.key); 544 sp<skiapipeline::VectorDrawableAtlas> atlas = mAtlas.promote(); local 545 if (atlas.get() && mAtlasKey != INVALID_ATLAS_KEY) { 546 auto atlasEntry = atlas->getEntry(mAtlasKey); 573 // frame will be cached into the atlas.
|
/external/skia/samplecode/ |
SampleLitAtlas.cpp | 102 canvas->drawBitmap(fAtlas, 0, 0); // just to see the atlas 213 // Create the mixed diffuse & normal atlas 224 SkBitmap atlas; local 225 atlas.allocN32Pixels(kAtlasWidth, kAtlasHeight); 230 *atlas.getAddr32(x, y) = SK_ColorTRANSPARENT; 233 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0x88, 0x88, 0xFF); 246 *atlas.getAddr32(x, y) = SkPreMultiplyARGB(0, 0, 0, 0); 248 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0xFF, 0, 0); 253 sk_tool_utils::create_hemi_normal_map(&atlas, 262 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0, 0xFF, 0); [all...] |
/external/skia/src/core/ |
SkLiteDL.cpp | 459 DrawAtlas(const SkImage* atlas, int count, SkBlendMode xfermode, 461 : atlas(sk_ref_sp(atlas)), count(count), xfermode(xfermode), has_colors(has_colors) { 465 sk_sp<const SkImage> atlas; member in struct:__anon30901::final 477 c->drawAtlas(atlas.get(), xforms, texs, colors, count, xfermode, 664 void SkLiteDL::drawAtlas(const SkImage* atlas, const SkRSXform xforms[], const SkRect texs[], 672 atlas, count, xfermode, cull, paint, colors != nullptr);
|
SkPicturePlayback.cpp | 230 const SkImage* atlas = fPictureData->getImage(reader); local 247 canvas->drawAtlas(atlas, xform, tex, colors, count, mode, cull, paint);
|
/external/skia/src/effects/ |
SkTableColorFilter.cpp | 334 const GrTextureStripAtlas* atlas() const { return fAtlas; } function in class:ColorTableEffect 345 GrTextureStripAtlas* atlas, int row, unsigned flags); 375 if (cte.atlas()) { 376 SkScalar yDelta = cte.atlas()->getNormalizedTexelHeight(); 377 rgbaYValues[3] = cte.atlas()->getYOffset(cte.atlasRow()) + SK_ScalarHalf * yDelta; 451 GrTextureStripAtlas* atlas = GrTextureStripAtlas::GetAtlas(desc); local 452 int row = atlas->lockRow(bitmap); 455 atlas = nullptr; 459 proxy = atlas->asTextureProxyRef(); 466 return sk_sp<GrFragmentProcessor>(new ColorTableEffect(std::move(proxy), atlas, row, flags)) [all...] |
/external/skia/src/gpu/ops/ |
GrSmallPathRenderer.cpp | 144 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, 148 return Helper::FactoryHelper<SmallPathOp>(std::move(paint), shape, viewMatrix, atlas, 154 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, ShapeCache* shapeCache, 165 // only use distance fields on desktop and Android framework to save space in the atlas 184 fAtlas = atlas; 227 GrDrawOpAtlas* atlas = fAtlas; variable 237 this->color(), this->viewMatrix(), atlas->getProxy(), params, flags, 254 GrBitmapTextGeoProc::Make(this->color(), atlas->getProxy(), params, 321 if (nullptr == shapeData || !atlas->hasID(shapeData->fID)) { 333 atlas, [all...] |